Files

60 lines
2.5 KiB
Handlebars
Raw Permalink Normal View History

2015-07-24 04:50:05 +08:00
{{template "base/head" .}}
<div role="main" aria-label="{{.Title}}" class="page-content repository issue-list">
2015-07-24 04:50:05 +08:00
{{template "repo/header" .}}
2015-08-09 22:45:38 +08:00
<div class="ui container">
2024-03-21 23:07:35 +08:00
{{template "base/alert" .}}
2023-05-25 15:17:19 +02:00
{{template "repo/code/recently_pushed_new_branches" dict "RecentBranchesPromptData" .RecentBranchesPromptData}}
2023-05-25 15:17:19 +02:00
{{if .PinnedIssues}}
<div id="issue-pins" {{if .IsRepoAdmin}}data-is-repo-admin{{end}}>
{{range .PinnedIssues}}
<div class="issue-card tw-break-anywhere {{if $.IsRepoAdmin}}tw-cursor-grab{{end}}" data-move-url="{{$.Link}}/move_pin" data-issue-id="{{.ID}}">
2023-08-12 12:30:28 +02:00
{{template "repo/issue/card" (dict "Issue" . "Page" $ "isPinnedIssueCard" true)}}
2023-05-25 15:17:19 +02:00
</div>
{{end}}
</div>
{{end}}
<div class="list-header flex-text-block">
{{template "repo/issue/search" .}}
<a class="ui small button" href="{{.RepoLink}}/labels">{{ctx.Locale.Tr "repo.labels"}}</a>
<a class="ui small button" href="{{.RepoLink}}/milestones">{{ctx.Locale.Tr "repo.milestones"}}</a>
2019-01-23 19:58:38 +01:00
{{if not .Repository.IsArchived}}
{{if .PageIsIssueList}}
<a class="ui small primary button issue-list-new" href="{{.RepoLink}}/issues/new{{if .NewIssueChooseTemplate}}/choose{{end}}">{{ctx.Locale.Tr "repo.issues.new"}}</a>
{{else}}
<a class="ui small primary button new-pr-button issue-list-new {{if not .PullRequestCtx.CanCreateNewPull}}disabled{{end}}" href="{{.PullRequestCtx.MakeDefaultCompareLink .Repository.DefaultBranch}}">{{ctx.Locale.Tr "repo.pulls.new"}}</a>
{{end}}
{{else}}
{{/* archived, view compare page only */}}
{{if not .PageIsIssueList}}
<a class="ui small primary small button issue-list-new" href="{{.PullRequestCtx.MakeDefaultCompareLink .Repository.DefaultBranch}}">{{ctx.Locale.Tr "action.compare_commits_general"}}</a>
{{end}}
2019-01-23 19:58:38 +01:00
{{end}}
2015-07-24 04:50:05 +08:00
</div>
2015-08-15 11:24:41 +08:00
{{template "repo/issue/filters" .}}
2023-04-30 23:51:20 +08:00
2024-03-24 19:23:38 +01:00
<div id="issue-actions" class="issue-list-toolbar tw-hidden">
2023-04-30 23:51:20 +08:00
<div class="issue-list-toolbar-left">
2020-11-29 16:52:11 +01:00
{{template "repo/issue/openclose" .}}
<!-- Total Tracked Time -->
{{if .TotalTrackedTime}}
<div class="ui compact tiny secondary menu">
<span class="item" data-tooltip-content='{{ctx.Locale.Tr "tracked_time_summary"}}'>
{{svg "octicon-clock"}}
{{.TotalTrackedTime | Sec2Hour}}
</span>
</div>
{{end}}
2015-08-15 12:07:08 +08:00
</div>
2023-04-30 23:51:20 +08:00
<div class="issue-list-toolbar-right">
{{template "repo/issue/filter_actions" .}}
2015-07-24 04:50:05 +08:00
</div>
</div>
{{template "shared/issuelist" dict "." . "listType" "repo"}}
2015-07-24 04:50:05 +08:00
</div>
2014-03-25 23:00:26 +08:00
</div>
{{template "base/footer" .}}