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