2017-10-15 04:47:39 +05:30
|
|
|
{{template "base/head" .}}
|
2023-02-02 04:26:10 +05:30
|
|
|
<div role="main" aria-label="{{.Title}}" class="page-content repository commits">
|
2017-10-15 04:47:39 +05:30
|
|
|
{{template "repo/header" .}}
|
|
|
|
<div class="ui container">
|
2023-06-18 16:01:42 +05:30
|
|
|
<h2 class="ui header activity-header">
|
|
|
|
<span>{{DateTime "long" .DateFrom}} - {{DateTime "long" .DateUntil}}</span>
|
|
|
|
<!-- Period -->
|
|
|
|
<div class="ui floating dropdown jump filter">
|
|
|
|
<div class="ui basic compact button">
|
|
|
|
<span class="text">
|
|
|
|
{{.locale.Tr "repo.activity.period.filter_label"}} <strong>{{.PeriodText}}</strong>
|
|
|
|
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="menu">
|
|
|
|
<a class="{{if eq .Period "daily"}}active {{end}}item" href="{{$.RepoLink}}/activity/daily">{{.locale.Tr "repo.activity.period.daily"}}</a>
|
|
|
|
<a class="{{if eq .Period "halfweekly"}}active {{end}}item" href="{{$.RepoLink}}/activity/halfweekly">{{.locale.Tr "repo.activity.period.halfweekly"}}</a>
|
|
|
|
<a class="{{if eq .Period "weekly"}}active {{end}}item" href="{{$.RepoLink}}/activity/weekly">{{.locale.Tr "repo.activity.period.weekly"}}</a>
|
|
|
|
<a class="{{if eq .Period "monthly"}}active {{end}}item" href="{{$.RepoLink}}/activity/monthly">{{.locale.Tr "repo.activity.period.monthly"}}</a>
|
|
|
|
<a class="{{if eq .Period "quarterly"}}active {{end}}item" href="{{$.RepoLink}}/activity/quarterly">{{.locale.Tr "repo.activity.period.quarterly"}}</a>
|
|
|
|
<a class="{{if eq .Period "semiyearly"}}active {{end}}item" href="{{$.RepoLink}}/activity/semiyearly">{{.locale.Tr "repo.activity.period.semiyearly"}}</a>
|
|
|
|
<a class="{{if eq .Period "yearly"}}active {{end}}item" href="{{$.RepoLink}}/activity/yearly">{{.locale.Tr "repo.activity.period.yearly"}}</a>
|
2017-10-15 04:47:39 +05:30
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</h2>
|
|
|
|
<div class="ui divider"></div>
|
|
|
|
|
2018-11-28 16:56:14 +05:30
|
|
|
{{if (or (.Permission.CanRead $.UnitTypeIssues) (.Permission.CanRead $.UnitTypePullRequests))}}
|
2022-06-28 02:28:46 +05:30
|
|
|
<h4 class="ui top attached header">{{.locale.Tr "repo.activity.overview"}}</h4>
|
2017-10-15 04:47:39 +05:30
|
|
|
<div class="ui attached segment two column grid">
|
2018-11-28 16:56:14 +05:30
|
|
|
{{if .Permission.CanRead $.UnitTypePullRequests}}
|
2017-10-15 04:47:39 +05:30
|
|
|
<div class="column">
|
|
|
|
{{if gt .Activity.ActivePRCount 0}}
|
2017-10-22 01:37:06 +05:30
|
|
|
<div class="stats-table">
|
2018-04-16 10:56:53 +05:30
|
|
|
<a href="#merged-pull-requests" class="table-cell tiny background purple" style="width: {{.Activity.MergedPRPerc}}{{if ne .Activity.MergedPRPerc 0}}%{{end}}"></a>
|
2017-10-15 04:47:39 +05:30
|
|
|
<a href="#proposed-pull-requests" class="table-cell tiny background green"></a>
|
|
|
|
</div>
|
2018-04-16 10:56:53 +05:30
|
|
|
{{else}}
|
|
|
|
<div class="stats-table">
|
|
|
|
<a class="table-cell tiny background light grey"></a>
|
|
|
|
</div>
|
2017-10-15 04:47:39 +05:30
|
|
|
{{end}}
|
2022-08-26 03:25:52 +05:30
|
|
|
{{.locale.TrN .Activity.ActivePRCount "repo.activity.active_prs_count_1" "repo.activity.active_prs_count_n" .Activity.ActivePRCount | Safe}}
|
2017-10-15 04:47:39 +05:30
|
|
|
</div>
|
|
|
|
{{end}}
|
2018-11-28 16:56:14 +05:30
|
|
|
{{if .Permission.CanRead $.UnitTypeIssues}}
|
2017-10-15 04:47:39 +05:30
|
|
|
<div class="column">
|
|
|
|
{{if gt .Activity.ActiveIssueCount 0}}
|
2017-10-22 01:37:06 +05:30
|
|
|
<div class="stats-table">
|
2018-04-16 10:56:53 +05:30
|
|
|
<a href="#closed-issues" class="table-cell tiny background red" style="width: {{.Activity.ClosedIssuePerc}}{{if ne .Activity.ClosedIssuePerc 0}}%{{end}}"></a>
|
2017-10-15 04:47:39 +05:30
|
|
|
<a href="#new-issues" class="table-cell tiny background green"></a>
|
|
|
|
</div>
|
2018-04-16 10:56:53 +05:30
|
|
|
{{else}}
|
|
|
|
<div class="stats-table">
|
|
|
|
<a class="table-cell tiny background light grey"></a>
|
|
|
|
</div>
|
2017-10-15 04:47:39 +05:30
|
|
|
{{end}}
|
2022-08-26 03:25:52 +05:30
|
|
|
{{.locale.TrN .Activity.ActiveIssueCount "repo.activity.active_issues_count_1" "repo.activity.active_issues_count_n" .Activity.ActiveIssueCount | Safe}}
|
2017-10-15 04:47:39 +05:30
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
<div class="ui attached segment horizontal segments">
|
2018-11-28 16:56:14 +05:30
|
|
|
{{if .Permission.CanRead $.UnitTypePullRequests}}
|
2017-10-15 04:47:39 +05:30
|
|
|
<a href="#merged-pull-requests" class="ui attached segment text center">
|
2020-09-12 01:49:00 +05:30
|
|
|
<span class="text purple">{{svg "octicon-git-pull-request"}}</span> <strong>{{.Activity.MergedPRCount}}</strong><br>
|
2022-06-28 02:28:46 +05:30
|
|
|
{{.locale.TrN .Activity.MergedPRCount "repo.activity.merged_prs_count_1" "repo.activity.merged_prs_count_n"}}
|
2017-10-15 04:47:39 +05:30
|
|
|
</a>
|
|
|
|
<a href="#proposed-pull-requests" class="ui attached segment text center">
|
2020-09-12 01:49:00 +05:30
|
|
|
<span class="text green">{{svg "octicon-git-branch"}}</span> <strong>{{.Activity.OpenedPRCount}}</strong><br>
|
2022-06-28 02:28:46 +05:30
|
|
|
{{.locale.TrN .Activity.OpenedPRCount "repo.activity.opened_prs_count_1" "repo.activity.opened_prs_count_n"}}
|
2017-10-15 04:47:39 +05:30
|
|
|
</a>
|
|
|
|
{{end}}
|
2018-11-28 16:56:14 +05:30
|
|
|
{{if .Permission.CanRead $.UnitTypeIssues}}
|
2017-10-15 04:47:39 +05:30
|
|
|
<a href="#closed-issues" class="ui attached segment text center">
|
2020-09-12 01:49:00 +05:30
|
|
|
<span class="text red">{{svg "octicon-issue-closed"}}</span> <strong>{{.Activity.ClosedIssueCount}}</strong><br>
|
2022-06-28 02:28:46 +05:30
|
|
|
{{.locale.TrN .Activity.ClosedIssueCount "repo.activity.closed_issues_count_1" "repo.activity.closed_issues_count_n"}}
|
2017-10-15 04:47:39 +05:30
|
|
|
</a>
|
|
|
|
<a href="#new-issues" class="ui attached segment text center">
|
2020-09-12 01:49:00 +05:30
|
|
|
<span class="text green">{{svg "octicon-issue-opened"}}</span> <strong>{{.Activity.OpenedIssueCount}}</strong><br>
|
2022-06-28 02:28:46 +05:30
|
|
|
{{.locale.TrN .Activity.OpenedIssueCount "repo.activity.new_issues_count_1" "repo.activity.new_issues_count_n"}}
|
2017-10-15 04:47:39 +05:30
|
|
|
</a>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
|
2019-05-04 18:09:03 +05:30
|
|
|
{{if .Permission.CanRead $.UnitTypeCode}}
|
|
|
|
{{if eq .Activity.Code.CommitCountInAllBranches 0}}
|
|
|
|
<div class="ui center aligned segment">
|
2022-08-26 03:25:52 +05:30
|
|
|
<h4 class="ui header">{{.locale.Tr "repo.activity.no_git_activity"}}</h4>
|
2019-05-04 18:09:03 +05:30
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
{{if gt .Activity.Code.CommitCountInAllBranches 0}}
|
|
|
|
<div class="ui attached segment horizontal segments">
|
|
|
|
<div class="ui attached segment text">
|
2022-08-26 03:25:52 +05:30
|
|
|
{{.locale.Tr "repo.activity.git_stats_exclude_merges"}}
|
2022-06-28 02:28:46 +05:30
|
|
|
<strong>{{.locale.TrN .Activity.Code.AuthorCount "repo.activity.git_stats_author_1" "repo.activity.git_stats_author_n" .Activity.Code.AuthorCount}}</strong>
|
|
|
|
{{.locale.TrN .Activity.Code.AuthorCount "repo.activity.git_stats_pushed_1" "repo.activity.git_stats_pushed_n"}}
|
|
|
|
<strong>{{.locale.TrN .Activity.Code.CommitCount "repo.activity.git_stats_commit_1" "repo.activity.git_stats_commit_n" .Activity.Code.CommitCount}}</strong>
|
2022-08-26 03:25:52 +05:30
|
|
|
{{.locale.Tr "repo.activity.git_stats_push_to_branch" .Repository.DefaultBranch}}
|
2022-06-28 02:28:46 +05:30
|
|
|
<strong>{{.locale.TrN .Activity.Code.CommitCountInAllBranches "repo.activity.git_stats_commit_1" "repo.activity.git_stats_commit_n" .Activity.Code.CommitCountInAllBranches}}</strong>
|
2022-08-26 03:25:52 +05:30
|
|
|
{{.locale.Tr "repo.activity.git_stats_push_to_all_branches"}}
|
|
|
|
{{.locale.Tr "repo.activity.git_stats_on_default_branch" .Repository.DefaultBranch}}
|
2022-06-28 02:28:46 +05:30
|
|
|
<strong>{{.locale.TrN .Activity.Code.ChangedFiles "repo.activity.git_stats_file_1" "repo.activity.git_stats_file_n" .Activity.Code.ChangedFiles}}</strong>
|
|
|
|
{{.locale.TrN .Activity.Code.ChangedFiles "repo.activity.git_stats_files_changed_1" "repo.activity.git_stats_files_changed_n"}}
|
2022-08-26 03:25:52 +05:30
|
|
|
{{.locale.Tr "repo.activity.git_stats_additions"}}
|
2022-06-28 02:28:46 +05:30
|
|
|
<strong class="text green">{{.locale.TrN .Activity.Code.Additions "repo.activity.git_stats_addition_1" "repo.activity.git_stats_addition_n" .Activity.Code.Additions}}</strong>
|
2022-08-26 03:25:52 +05:30
|
|
|
{{.locale.Tr "repo.activity.git_stats_and_deletions"}}
|
2022-06-28 02:28:46 +05:30
|
|
|
<strong class="text red">{{.locale.TrN .Activity.Code.Deletions "repo.activity.git_stats_deletion_1" "repo.activity.git_stats_deletion_n" .Activity.Code.Deletions}}</strong>.
|
2019-05-04 18:09:03 +05:30
|
|
|
</div>
|
2021-10-15 08:05:26 +05:30
|
|
|
<div class="ui attached segment">
|
|
|
|
<div id="repo-activity-top-authors-chart"></div>
|
2020-01-20 15:37:30 +05:30
|
|
|
</div>
|
2019-05-04 18:09:03 +05:30
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
|
2017-10-15 04:47:39 +05:30
|
|
|
{{if gt .Activity.PublishedReleaseCount 0}}
|
|
|
|
<h4 class="ui horizontal divider header" id="published-releases">
|
2020-09-12 01:49:00 +05:30
|
|
|
<span class="text">{{svg "octicon-tag"}}</span>
|
2022-06-28 02:28:46 +05:30
|
|
|
{{.locale.Tr "repo.activity.title.releases_published_by"
|
|
|
|
(.locale.TrN .Activity.PublishedReleaseCount "repo.activity.title.releases_1" "repo.activity.title.releases_n" .Activity.PublishedReleaseCount)
|
|
|
|
(.locale.TrN .Activity.PublishedReleaseAuthorCount "repo.activity.title.user_1" "repo.activity.title.user_n" .Activity.PublishedReleaseAuthorCount)
|
2022-01-02 09:03:57 +05:30
|
|
|
}}
|
2017-10-15 04:47:39 +05:30
|
|
|
</h4>
|
|
|
|
<div class="list">
|
|
|
|
{{range .Activity.PublishedReleases}}
|
|
|
|
<p class="desc">
|
2022-06-28 02:28:46 +05:30
|
|
|
<span class="ui green label">{{$.locale.Tr "repo.activity.published_release_label"}}</span>
|
2017-10-15 04:47:39 +05:30
|
|
|
{{.TagName}}
|
|
|
|
{{if not .IsTag}}
|
2023-03-06 03:29:05 +05:30
|
|
|
<a class="title" href="{{$.RepoLink}}/src/{{.TagName | PathEscapeSegments}}">{{.Title | RenderEmoji $.Context}}</a>
|
2017-10-15 04:47:39 +05:30
|
|
|
{{end}}
|
2022-06-28 02:28:46 +05:30
|
|
|
{{TimeSinceUnix .CreatedUnix $.locale}}
|
2017-10-15 04:47:39 +05:30
|
|
|
</p>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{if gt .Activity.MergedPRCount 0}}
|
|
|
|
<h4 class="ui horizontal divider header" id="merged-pull-requests">
|
2020-09-12 01:49:00 +05:30
|
|
|
<span class="text">{{svg "octicon-git-pull-request"}}</span>
|
2022-06-28 02:28:46 +05:30
|
|
|
{{.locale.Tr "repo.activity.title.prs_merged_by"
|
|
|
|
(.locale.TrN .Activity.MergedPRCount "repo.activity.title.prs_1" "repo.activity.title.prs_n" .Activity.MergedPRCount)
|
|
|
|
(.locale.TrN .Activity.MergedPRAuthorCount "repo.activity.title.user_1" "repo.activity.title.user_n" .Activity.MergedPRAuthorCount)
|
2022-01-02 09:03:57 +05:30
|
|
|
}}
|
2017-10-15 04:47:39 +05:30
|
|
|
</h4>
|
|
|
|
<div class="list">
|
|
|
|
{{range .Activity.MergedPRs}}
|
|
|
|
<p class="desc">
|
2022-06-28 02:28:46 +05:30
|
|
|
<span class="ui purple label">{{$.locale.Tr "repo.activity.merged_prs_label"}}</span>
|
2023-03-06 03:29:05 +05:30
|
|
|
#{{.Index}} <a class="title" href="{{$.RepoLink}}/pulls/{{.Index}}">{{.Issue.Title | RenderEmoji $.Context}}</a>
|
2022-06-28 02:28:46 +05:30
|
|
|
{{TimeSinceUnix .MergedUnix $.locale}}
|
2017-10-15 04:47:39 +05:30
|
|
|
</p>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{if gt .Activity.OpenedPRCount 0}}
|
|
|
|
<h4 class="ui horizontal divider header" id="proposed-pull-requests">
|
2020-09-12 01:49:00 +05:30
|
|
|
<span class="text">{{svg "octicon-git-branch"}}</span>
|
2022-06-28 02:28:46 +05:30
|
|
|
{{.locale.Tr "repo.activity.title.prs_opened_by"
|
|
|
|
(.locale.TrN .Activity.OpenedPRCount "repo.activity.title.prs_1" "repo.activity.title.prs_n" .Activity.OpenedPRCount)
|
|
|
|
(.locale.TrN .Activity.OpenedPRAuthorCount "repo.activity.title.user_1" "repo.activity.title.user_n" .Activity.OpenedPRAuthorCount)
|
2022-01-02 09:03:57 +05:30
|
|
|
}}
|
2017-10-15 04:47:39 +05:30
|
|
|
</h4>
|
|
|
|
<div class="list">
|
|
|
|
{{range .Activity.OpenedPRs}}
|
|
|
|
<p class="desc">
|
2022-06-28 02:28:46 +05:30
|
|
|
<span class="ui green label">{{$.locale.Tr "repo.activity.opened_prs_label"}}</span>
|
2023-03-06 03:29:05 +05:30
|
|
|
#{{.Index}} <a class="title" href="{{$.RepoLink}}/pulls/{{.Index}}">{{.Issue.Title | RenderEmoji $.Context}}</a>
|
2022-06-28 02:28:46 +05:30
|
|
|
{{TimeSinceUnix .Issue.CreatedUnix $.locale}}
|
2017-10-15 04:47:39 +05:30
|
|
|
</p>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{if gt .Activity.ClosedIssueCount 0}}
|
|
|
|
<h4 class="ui horizontal divider header" id="closed-issues">
|
2020-09-12 01:49:00 +05:30
|
|
|
<span class="text">{{svg "octicon-issue-closed"}}</span>
|
2022-06-28 02:28:46 +05:30
|
|
|
{{.locale.Tr "repo.activity.title.issues_closed_from"
|
|
|
|
(.locale.TrN .Activity.ClosedIssueCount "repo.activity.title.issues_1" "repo.activity.title.issues_n" .Activity.ClosedIssueCount)
|
|
|
|
(.locale.TrN .Activity.ClosedIssueAuthorCount "repo.activity.title.user_1" "repo.activity.title.user_n" .Activity.ClosedIssueAuthorCount)
|
2022-01-02 09:03:57 +05:30
|
|
|
}}
|
2017-10-15 04:47:39 +05:30
|
|
|
</h4>
|
|
|
|
<div class="list">
|
|
|
|
{{range .Activity.ClosedIssues}}
|
|
|
|
<p class="desc">
|
2022-06-28 02:28:46 +05:30
|
|
|
<span class="ui red label">{{$.locale.Tr "repo.activity.closed_issue_label"}}</span>
|
2023-03-06 03:29:05 +05:30
|
|
|
#{{.Index}} <a class="title" href="{{$.RepoLink}}/issues/{{.Index}}">{{.Title | RenderEmoji $.Context}}</a>
|
2022-06-28 02:28:46 +05:30
|
|
|
{{TimeSinceUnix .ClosedUnix $.locale}}
|
2017-10-15 04:47:39 +05:30
|
|
|
</p>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{if gt .Activity.OpenedIssueCount 0}}
|
|
|
|
<h4 class="ui horizontal divider header" id="new-issues">
|
2020-09-12 01:49:00 +05:30
|
|
|
<span class="text">{{svg "octicon-issue-opened"}}</span>
|
2022-06-28 02:28:46 +05:30
|
|
|
{{.locale.Tr "repo.activity.title.issues_created_by"
|
|
|
|
(.locale.TrN .Activity.OpenedIssueCount "repo.activity.title.issues_1" "repo.activity.title.issues_n" .Activity.OpenedIssueCount)
|
|
|
|
(.locale.TrN .Activity.OpenedIssueAuthorCount "repo.activity.title.user_1" "repo.activity.title.user_n" .Activity.OpenedIssueAuthorCount)
|
2022-01-02 09:03:57 +05:30
|
|
|
}}
|
2017-10-15 04:47:39 +05:30
|
|
|
</h4>
|
|
|
|
<div class="list">
|
|
|
|
{{range .Activity.OpenedIssues}}
|
|
|
|
<p class="desc">
|
2022-06-28 02:28:46 +05:30
|
|
|
<span class="ui green label">{{$.locale.Tr "repo.activity.new_issue_label"}}</span>
|
2023-03-06 03:29:05 +05:30
|
|
|
#{{.Index}} <a class="title" href="{{$.RepoLink}}/issues/{{.Index}}">{{.Title | RenderEmoji $.Context}}</a>
|
2022-06-28 02:28:46 +05:30
|
|
|
{{TimeSinceUnix .CreatedUnix $.locale}}
|
2017-10-15 04:47:39 +05:30
|
|
|
</p>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{if gt .Activity.UnresolvedIssueCount 0}}
|
|
|
|
<h4 class="ui horizontal divider header" id="unresolved-conversations">
|
2020-09-12 01:49:00 +05:30
|
|
|
<span class="text">{{svg "octicon-comment-discussion"}}</span>
|
2022-06-28 02:28:46 +05:30
|
|
|
{{.locale.TrN .Activity.UnresolvedIssueCount "repo.activity.title.unresolved_conv_1" "repo.activity.title.unresolved_conv_n" .Activity.UnresolvedIssueCount}}
|
2017-10-15 04:47:39 +05:30
|
|
|
</h4>
|
|
|
|
<div class="text center desc">
|
2022-06-28 02:28:46 +05:30
|
|
|
{{.locale.Tr "repo.activity.unresolved_conv_desc"}}
|
2017-10-15 04:47:39 +05:30
|
|
|
</div>
|
|
|
|
<div class="list">
|
|
|
|
{{range .Activity.UnresolvedIssues}}
|
|
|
|
<p class="desc">
|
2022-06-28 02:28:46 +05:30
|
|
|
<span class="ui green label">{{$.locale.Tr "repo.activity.unresolved_conv_label"}}</span>
|
2017-10-15 04:47:39 +05:30
|
|
|
#{{.Index}}
|
|
|
|
{{if .IsPull}}
|
2023-03-06 03:29:05 +05:30
|
|
|
<a class="title" href="{{$.RepoLink}}/pulls/{{.Index}}">{{.Title | RenderEmoji $.Context}}</a>
|
2017-10-15 04:47:39 +05:30
|
|
|
{{else}}
|
2023-03-06 03:29:05 +05:30
|
|
|
<a class="title" href="{{$.RepoLink}}/issues/{{.Index}}">{{.Title | RenderEmoji $.Context}}</a>
|
2017-10-15 04:47:39 +05:30
|
|
|
{{end}}
|
2022-06-28 02:28:46 +05:30
|
|
|
{{TimeSinceUnix .UpdatedUnix $.locale}}
|
2017-10-15 04:47:39 +05:30
|
|
|
</p>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{template "base/footer" .}}
|