2015-07-23 23:50:05 +03:00
{{ template "base/head" . }}
2023-04-07 03:11:02 +03:00
< div role = "main" aria-label = " {{ .Title }} " class = "page-content repository issue-list" >
2015-07-23 23:50:05 +03:00
{{ template "repo/header" . }}
2015-08-09 17:45:38 +03:00
< div class = "ui container" >
2023-05-25 16:17:19 +03:00
{{ if .PinnedIssues }}
< div id = "issue-pins" {{ if .IsRepoAdmin }} data-is-repo-admin {{ end }} >
{{ range .PinnedIssues }}
2023-08-12 13:30:28 +03:00
< div class = "issue-card gt-word-break {{ if $.IsRepoAdmin }} gt-cursor-grab {{ end }} " data-move-url = " {{ $.Link }} /move_pin" data-issue-id = " {{ .ID }} " >
{{ template "repo/issue/card" ( dict "Issue" . "Page" $ "isPinnedIssueCard" true ) }}
2023-05-25 16:17:19 +03:00
< / div >
{{ end }}
< / div >
{{ end }}
2023-04-30 06:33:25 +03:00
< div class = "list-header" >
{{ template "repo/issue/navbar" . }}
{{ template "repo/issue/search" . }}
2019-01-23 21:58:38 +03:00
{{ if not .Repository.IsArchived }}
2023-04-30 06:33:25 +03:00
{{ if .PageIsIssueList }}
2023-09-25 16:15:51 +03:00
< a class = "ui small primary button issue-list-new" href = " {{ .RepoLink }} /issues/new {{ if .NewIssueChooseTemplate }} /choose {{ end }} " > {{ ctx .Locale.Tr "repo.issues.new" }} </ a >
2023-04-30 06:33:25 +03:00
{{ else }}
2023-09-25 16:15:51 +03:00
< 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 >
2023-04-30 06:33:25 +03:00
{{ end }}
2019-06-29 12:18:49 +03:00
{{ else }}
{{ if not .PageIsIssueList }}
2023-09-25 16:15:51 +03:00
< 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 >
2019-06-29 12:18:49 +03:00
{{ end }}
2019-01-23 21:58:38 +03:00
{{ end }}
2015-07-23 23:50:05 +03:00
< / div >
2015-08-15 06:24:41 +03:00
2023-07-13 23:00:38 +03:00
{{ template "repo/issue/filters" . }}
2023-04-30 18:51:20 +03:00
< div id = "issue-actions" class = "issue-list-toolbar gt-hidden" >
< div class = "issue-list-toolbar-left" >
2020-11-29 18:52:11 +03:00
{{ template "repo/issue/openclose" . }}
2015-08-15 07:07:08 +03:00
< / div >
2023-04-30 18:51:20 +03:00
< div class = "issue-list-toolbar-right" >
2023-10-02 05:56:48 +03:00
{{ template "repo/issue/filter_actions" . }}
2015-07-23 23:50:05 +03:00
< / div >
< / div >
2023-04-07 17:39:08 +03:00
{{ template "shared/issuelist" dict "." . "listType" "repo" }}
2015-07-23 23:50:05 +03:00
< / div >
2014-03-25 19:00:26 +04:00
< / div >
2015-07-30 23:14:52 +03:00
{{ template "base/footer" . }}