aboutsummaryrefslogtreecommitdiffstats
path: root/templates/user
diff options
context:
space:
mode:
authorJimmy Praet <jimmy.praet@telenet.be>2021-01-03 18:29:12 +0100
committerGitHub <noreply@github.com>2021-01-03 18:29:12 +0100
commit9cc5a89b8c8654e3e40686323572e69300807629 (patch)
treea946a850a693d5038a1f5d9ffd33e53f8e7877e0 /templates/user
parent44ff1d6a1e20694b678ba53b0f1e03e9c7c5b8a6 (diff)
downloadgitea-9cc5a89b8c8654e3e40686323572e69300807629.tar.gz
gitea-9cc5a89b8c8654e3e40686323572e69300807629.zip
Issue and pull request filters on organization dashboard #14052 (#14072)
Diffstat (limited to 'templates/user')
-rw-r--r--templates/user/dashboard/issues.tmpl26
1 files changed, 12 insertions, 14 deletions
diff --git a/templates/user/dashboard/issues.tmpl b/templates/user/dashboard/issues.tmpl
index b8625ec2c1..62428dce42 100644
--- a/templates/user/dashboard/issues.tmpl
+++ b/templates/user/dashboard/issues.tmpl
@@ -9,20 +9,18 @@
{{.i18n.Tr "home.issues.in_your_repos"}}
<strong class="ui right">{{CountFmt .IssueStats.YourRepositoriesCount}}</strong>
</a>
- {{if not .ContextUser.IsOrganization}}
- <a class="{{if eq .ViewType "assigned"}}ui basic blue button{{end}} item" href="{{.Link}}?type=assigned&repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort={{$.SortType}}&state={{.State}}">
- {{.i18n.Tr "repo.issues.filter_type.assigned_to_you"}}
- <strong class="ui right">{{CountFmt .IssueStats.AssignCount}}</strong>
- </a>
- <a class="{{if eq .ViewType "created_by"}}ui basic blue button{{end}} item" href="{{.Link}}?type=created_by&repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort={{$.SortType}}&state={{.State}}">
- {{.i18n.Tr "repo.issues.filter_type.created_by_you"}}
- <strong class="ui right">{{CountFmt .IssueStats.CreateCount}}</strong>
- </a>
- <a class="{{if eq .ViewType "mentioned"}}ui basic blue button{{end}} item" href="{{.Link}}?type=mentioned&repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort={{$.SortType}}&state={{.State}}">
- {{.i18n.Tr "repo.issues.filter_type.mentioning_you"}}
- <strong class="ui right">{{CountFmt .IssueStats.MentionCount}}</strong>
- </a>
- {{end}}
+ <a class="{{if eq .ViewType "assigned"}}ui basic blue button{{end}} item" href="{{.Link}}?type=assigned&repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort={{$.SortType}}&state={{.State}}">
+ {{.i18n.Tr "repo.issues.filter_type.assigned_to_you"}}
+ <strong class="ui right">{{CountFmt .IssueStats.AssignCount}}</strong>
+ </a>
+ <a class="{{if eq .ViewType "created_by"}}ui basic blue button{{end}} item" href="{{.Link}}?type=created_by&repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort={{$.SortType}}&state={{.State}}">
+ {{.i18n.Tr "repo.issues.filter_type.created_by_you"}}
+ <strong class="ui right">{{CountFmt .IssueStats.CreateCount}}</strong>
+ </a>
+ <a class="{{if eq .ViewType "mentioned"}}ui basic blue button{{end}} item" href="{{.Link}}?type=mentioned&repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort={{$.SortType}}&state={{.State}}">
+ {{.i18n.Tr "repo.issues.filter_type.mentioning_you"}}
+ <strong class="ui right">{{CountFmt .IssueStats.MentionCount}}</strong>
+ </a>
<div class="ui divider"></div>
<a class="{{if not $.RepoIDs}}ui basic blue button{{end}} repo name item" href="{{$.Link}}?type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&q={{$.Keyword}}">
<span class="text truncate">All</span>