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