code.gitea.io/gitea@v1.22.3/templates/repo/issue/list.tmpl (about) 1 {{template "base/head" .}} 2 <div role="main" aria-label="{{.Title}}" class="page-content repository issue-list"> 3 {{template "repo/header" .}} 4 <div class="ui container"> 5 {{template "base/alert" .}} 6 7 {{if .PinnedIssues}} 8 <div id="issue-pins" {{if .IsRepoAdmin}}data-is-repo-admin{{end}}> 9 {{range .PinnedIssues}} 10 <div class="issue-card gt-word-break {{if $.IsRepoAdmin}}tw-cursor-grab{{end}}" data-move-url="{{$.Link}}/move_pin" data-issue-id="{{.ID}}"> 11 {{template "repo/issue/card" (dict "Issue" . "Page" $ "isPinnedIssueCard" true)}} 12 </div> 13 {{end}} 14 </div> 15 {{end}} 16 17 <div class="list-header"> 18 {{template "repo/issue/navbar" .}} 19 {{template "repo/issue/search" .}} 20 {{if not .Repository.IsArchived}} 21 {{if .PageIsIssueList}} 22 <a class="ui small primary button issue-list-new" href="{{.RepoLink}}/issues/new{{if .NewIssueChooseTemplate}}/choose{{end}}">{{ctx.Locale.Tr "repo.issues.new"}}</a> 23 {{else}} 24 <a class="ui small primary button new-pr-button issue-list-new{{if not .PullRequestCtx.Allowed}} disabled{{end}}" href="{{if .PullRequestCtx.Allowed}}{{.Repository.Link}}/compare/{{.Repository.DefaultBranch | PathEscapeSegments}}...{{if ne .Repository.Owner.Name .PullRequestCtx.BaseRepo.Owner.Name}}{{PathEscape .Repository.Owner.Name}}:{{end}}{{.Repository.DefaultBranch | PathEscapeSegments}}{{end}}">{{ctx.Locale.Tr "repo.pulls.new"}}</a> 25 {{end}} 26 {{else}} 27 {{if not .PageIsIssueList}} 28 <a class="ui small primary small button issue-list-new{{if not .PullRequestCtx.Allowed}} disabled{{end}}" href="{{if .PullRequestCtx.Allowed}}{{.PullRequestCtx.BaseRepo.Link}}/compare/{{.PullRequestCtx.BaseRepo.DefaultBranch | PathEscapeSegments}}...{{if ne .Repository.Owner.Name .PullRequestCtx.BaseRepo.Owner.Name}}{{PathEscape .Repository.Owner.Name}}:{{end}}{{.Repository.DefaultBranch | PathEscapeSegments}}{{end}}">{{ctx.Locale.Tr "action.compare_commits_general"}}</a> 29 {{end}} 30 {{end}} 31 </div> 32 33 {{template "repo/issue/filters" .}} 34 35 <div id="issue-actions" class="issue-list-toolbar tw-hidden"> 36 <div class="issue-list-toolbar-left"> 37 {{template "repo/issue/openclose" .}} 38 <!-- Total Tracked Time --> 39 {{if .TotalTrackedTime}} 40 <div class="ui compact tiny secondary menu"> 41 <span class="item" data-tooltip-content='{{ctx.Locale.Tr "tracked_time_summary"}}'> 42 {{svg "octicon-clock"}} 43 {{.TotalTrackedTime | Sec2Time}} 44 </span> 45 </div> 46 {{end}} 47 </div> 48 <div class="issue-list-toolbar-right"> 49 {{template "repo/issue/filter_actions" .}} 50 </div> 51 </div> 52 {{template "shared/issuelist" dict "." . "listType" "repo"}} 53 </div> 54 </div> 55 {{template "base/footer" .}}