|
5 | 5 | <div class="ui stackable grid">
|
6 | 6 | <div class="four wide column">
|
7 | 7 | <div class="ui secondary vertical filter menu gt-bg-transparent">
|
8 |
| - <a class="{{if eq .ViewType "your_repositories"}}ui basic primary button{{end}} item" href="{{.Link}}?type=your_repositories&repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort={{$.SortType}}&state={{.State}}"> |
| 8 | + <a class="{{if eq .ViewType "your_repositories"}}active{{end}} item" href="{{.Link}}?type=your_repositories&repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort={{$.SortType}}&state={{.State}}"> |
9 | 9 | {{.locale.Tr "home.issues.in_your_repos"}}
|
10 | 10 | <strong class="ui right">{{CountFmt .IssueStats.YourRepositoriesCount}}</strong>
|
11 | 11 | </a>
|
12 |
| - <a class="{{if eq .ViewType "assigned"}}ui basic primary button{{end}} item" href="{{.Link}}?type=assigned&repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort={{$.SortType}}&state={{.State}}"> |
| 12 | + <a class="{{if eq .ViewType "assigned"}}active{{end}} item" href="{{.Link}}?type=assigned&repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort={{$.SortType}}&state={{.State}}"> |
13 | 13 | {{.locale.Tr "repo.issues.filter_type.assigned_to_you"}}
|
14 | 14 | <strong class="ui right">{{CountFmt .IssueStats.AssignCount}}</strong>
|
15 | 15 | </a>
|
16 |
| - <a class="{{if eq .ViewType "created_by"}}ui basic primary button{{end}} item" href="{{.Link}}?type=created_by&repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort={{$.SortType}}&state={{.State}}"> |
| 16 | + <a class="{{if eq .ViewType "created_by"}}active{{end}} item" href="{{.Link}}?type=created_by&repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort={{$.SortType}}&state={{.State}}"> |
17 | 17 | {{.locale.Tr "repo.issues.filter_type.created_by_you"}}
|
18 | 18 | <strong class="ui right">{{CountFmt .IssueStats.CreateCount}}</strong>
|
19 | 19 | </a>
|
20 | 20 | {{if .PageIsPulls}}
|
21 |
| - <a class="{{if eq .ViewType "review_requested"}}ui basic primary button{{end}} item" href="{{.Link}}?type=review_requested&repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort={{$.SortType}}&state={{.State}}"> |
| 21 | + <a class="{{if eq .ViewType "review_requested"}}active{{end}} item" href="{{.Link}}?type=review_requested&repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort={{$.SortType}}&state={{.State}}"> |
22 | 22 | {{.locale.Tr "repo.issues.filter_type.review_requested"}}
|
23 | 23 | <strong class="ui right">{{CountFmt .IssueStats.ReviewRequestedCount}}</strong>
|
24 | 24 | </a>
|
25 |
| - <a class="{{if eq .ViewType "reviewed_by"}}ui basic primary button{{end}} item" href="{{.Link}}?type=reviewed_by&repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort={{$.SortType}}&state={{.State}}"> |
| 25 | + <a class="{{if eq .ViewType "reviewed_by"}}active{{end}} item" href="{{.Link}}?type=reviewed_by&repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort={{$.SortType}}&state={{.State}}"> |
26 | 26 | {{.locale.Tr "repo.issues.filter_type.reviewed_by_you"}}
|
27 | 27 | <strong class="ui right">{{CountFmt .IssueStats.ReviewedCount}}</strong>
|
28 | 28 | </a>
|
29 | 29 | {{end}}
|
30 |
| - <a class="{{if eq .ViewType "mentioned"}}ui basic primary button{{end}} item" href="{{.Link}}?type=mentioned&repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort={{$.SortType}}&state={{.State}}"> |
| 30 | + <a class="{{if eq .ViewType "mentioned"}}active{{end}} item" href="{{.Link}}?type=mentioned&repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort={{$.SortType}}&state={{.State}}"> |
31 | 31 | {{.locale.Tr "repo.issues.filter_type.mentioning_you"}}
|
32 | 32 | <strong class="ui right">{{CountFmt .IssueStats.MentionCount}}</strong>
|
33 | 33 | </a>
|
34 | 34 | <div class="ui divider"></div>
|
35 |
| - <a class="{{if not $.RepoIDs}}ui basic primary button{{end}} repo name item" href="{{$.Link}}?type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&q={{$.Keyword}}"> |
| 35 | + <a class="{{if not $.RepoIDs}}active{{end}} repo name item" href="{{$.Link}}?type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&q={{$.Keyword}}"> |
36 | 36 | <span class="text truncate">All</span>
|
37 | 37 | <span>{{CountFmt .TotalIssueCount}}</span>
|
38 | 38 | </a>
|
39 | 39 | {{range .Repos}}
|
40 | 40 | {{with $Repo := .}}
|
41 |
| - <a class="{{range $.RepoIDs}}{{if eq . $Repo.ID}}ui basic primary button{{end}}{{end}} repo name item" href="{{$.Link}}?type={{$.ViewType}}&repos=[ |
| 41 | + <a class="{{range $.RepoIDs}}{{if eq . $Repo.ID}}active{{end}}{{end}} repo name item" href="{{$.Link}}?type={{$.ViewType}}&repos=[ |
42 | 42 | {{- with $include := true -}}
|
43 | 43 | {{- range $.RepoIDs -}}
|
44 | 44 | {{- if eq . $Repo.ID -}}
|
|
0 commit comments