You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/templates/repo
Şahin Akkaya 21331be30c
Implement contributors graph (#27882)
Continuation of https://github.com/go-gitea/gitea/pull/25439. Fixes #847

Before:
<img width="1296" alt="image"
src="https://github.com/go-gitea/gitea/assets/32161460/24571ac8-b254-43c9-b178-97340f0dc8a9">

----
After:
<img width="1296" alt="image"
src="https://github.com/go-gitea/gitea/assets/32161460/c60b2459-9d10-4d42-8d83-d5ef0f45bf94">

---
#### Overview
This is the implementation of a requested feature: Contributors graph
(#847)

It makes Activity page a multi-tab page and adds a new tab called
Contributors. Contributors tab shows the contribution graphs over time
since the repository existed. It also shows per user contribution graphs
for top 100 contributors. Top 100 is calculated based on the selected
contribution type (commits, additions or deletions).

---
#### Demo
(The demo is a bit old but still a good example to show off the main
features)

<video src="https://github.com/go-gitea/gitea/assets/32161460/9f68103f-8145-4cc2-94bc-5546daae7014" controls width="320" height="240">
  <a href="https://github.com/go-gitea/gitea/assets/32161460/9f68103f-8145-4cc2-94bc-5546daae7014">Download</a>
</video>


#### Features:

- Select contribution type (commits, additions or deletions)
- See overall and per user contribution graphs for the selected
contribution type
- Zoom and pan on graphs to see them in detail
- See top 100 contributors based on the selected contribution type and
selected time range
- Go directly to users' profile by clicking their name if they are
registered gitea users
- Cache the results so that when the same repository is visited again
fetching data will be faster


---------

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: hiifong <i@hiif.ong>
Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: yp05327 <576951401@qq.com>
1 year ago
..
actions Fix the runs will not be displayed bug when the main branch have no workflows but other branches have (#28359) 1 year ago
branch Rework markup link rendering (#26745) 1 year ago
cite Update JS and PY dependencies (#27501) 1 year ago
code Fix more "locale" usages (#27259) 1 year ago
diff Improve user experience for outdated comments (#29050) 1 year ago
editor Refactor locale&string&template related code (#29165) 1 year ago
find Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago
graph Rework markup link rendering (#26745) 1 year ago
issue Fix can not select team reviewers when reviewers is empty (#29174) 1 year ago
migrate Fix duplicate ID when deleting repo (#28520) 1 year ago
projects Use full width for project boards (#28225) 1 year ago
pulls Add `Hide/Show all checks` button to commit status check (#26284) 1 year ago
release Hide code links on release page if user cannot read code (#29064) 1 year ago
settings Change webhook-type in create-view (#29114) 1 year ago
tag Fix more "locale" usages (#27259) 1 year ago
wiki Fix more "locale" usages (#27259) 1 year ago
activity.tmpl Implement contributors graph (#27882) 1 year ago
blame.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago
branch_dropdown.tmpl Rework spellchecking, add `lint-spell` (#29106) 1 year ago
clone_buttons.tmpl Fix more "locale" usages (#27259) 1 year ago
clone_script.tmpl Rework button coloring, add focus and active colors (#24507) 2 years ago
commit_load_branches_and_tags.tmpl Wrap contained tags and branches again (#29021) 1 year ago
commit_page.tmpl Update JS and PY dependencies, build for `es2020` browsers (#28977) 1 year ago
commit_status.tmpl Restore warning commit status (#27504) 1 year ago
commit_statuses.tmpl Add `Hide/Show all checks` button to commit status check (#26284) 1 year ago
commits.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago
commits_list.tmpl Show `View at this point in history` for every commit (#29122) 1 year ago
commits_list_small.tmpl Rework markup link rendering (#26745) 1 year ago
commits_table.tmpl Fix more "locale" usages (#27259) 1 year ago
contributors.tmpl Implement contributors graph (#27882) 1 year ago
create.tmpl Add support for sha256 repositories (#23894) 1 year ago
create_helper.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago
empty.tmpl Fix more "locale" usages (#27259) 1 year ago
file_info.tmpl Show in Web UI if file is vendored and generated (#28620) 1 year ago
forks.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago
graph.tmpl Fix more "locale" usages (#27259) 1 year ago
header.tmpl Tweak repo header (#29134) 1 year ago
home.tmpl Add word-break to repo description in home page (#27924) 1 year ago
icon.tmpl Tweak repo header (#29134) 1 year ago
latest_commit.tmpl Show latest commit for file (#28067) 1 year ago
navbar.tmpl Implement contributors graph (#27882) 1 year ago
packages.tmpl Fix inconsistent user profile layout across tabs (#25625) 2 years ago
pulse.tmpl Implement contributors graph (#27882) 1 year ago
release_tag_header.tmpl Improve RSS feed icons (#28368) 1 year ago
search.tmpl Fix 500 error of searching commits (#28576) 1 year ago
search_name.tmpl Clean template/helper.go (#23922) 2 years ago
shabox_badge.tmpl cleanup locale function usage (#27227) 1 year ago
star_unstar.tmpl Don't do a full page load when clicking `Watch` or `Star` (#29001) 1 year ago
sub_menu.tmpl Enable followCursor for language stats bar (#27713) 1 year ago
unicode_escape_prompt.tmpl Fix incorrect button CSS usages (#29015) 1 year ago
upload.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago
user_cards.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago
view_file.tmpl Fix incorrect button CSS usages (#29015) 1 year ago
view_list.tmpl Show latest commit for file (#28067) 1 year ago
watch_unwatch.tmpl Don't do a full page load when clicking `Watch` or `Star` (#29001) 1 year ago
watchers.tmpl Fix user-cards format (#24428) 2 years ago