|
5 | 5 | <div class="ui stackable grid">
|
6 | 6 | <div class="four wide column">
|
7 | 7 | <div class="ui secondary vertical filter menu">
|
8 |
| - <a class="{{if eq .ViewType "your_repositories"}}ui basic blue button{{end}} item" href="{{.Link}}?type=your_repositories&repo={{.RepoID}}&sort={{$.SortType}}&state={{.State}}"> |
| 8 | + <a class="item" href="{{.Link}}?type=your_repositories&repo={{.RepoID}}&sort={{$.SortType}}&state={{.State}}"> |
9 | 9 | {{.i18n.Tr "home.issues.in_your_repos"}}
|
10 | 10 | <strong class="ui right">{{.Total}}</strong>
|
11 | 11 | </a>
|
12 | 12 | <div class="ui divider"></div>
|
13 | 13 | {{range .Repos}}
|
14 |
| - <a class="{{if eq $.RepoID .ID}}ui basic blue button{{end}} repo name item" href="{{$.Link}}?type={{$.ViewType}}{{if not (eq $.RepoID .ID)}}&repo={{.ID}}{{end}}&sort={{$.SortType}}&state={{$.State}}" title="{{.FullName}}"> |
| 14 | + <a class="{{if eq $.RepoID .ID}}ui basic blue button{{end}} repo name item" href="{{$.Link}}?sort={{$.SortType}}{{if not (eq $.RepoID .ID)}}&repo={{.ID}}{{end}}&state={{$.State}}" title="{{.FullName}}"> |
15 | 15 | <span class="text truncate">{{.FullName}}</span>
|
16 | 16 | <div class="floating ui {{if $.IsShowClosed}}red{{else}}green{{end}} label">{{index $.Counts .ID}}</div>
|
17 | 17 | </a>
|
|
20 | 20 | </div>
|
21 | 21 | <div class="twelve wide column content">
|
22 | 22 | <div class="ui tiny basic status buttons">
|
23 |
| - <a class="ui {{if not .IsShowClosed}}green active{{end}} basic button" href="{{.Link}}?type={{$.ViewType}}&repo={{.RepoID}}&sort={{$.SortType}}&state=open"> |
| 23 | + <a class="ui {{if not .IsShowClosed}}green active{{end}} basic button" href="{{.Link}}?repo={{.RepoID}}&sort={{$.SortType}}&state=open"> |
24 | 24 | <i class="octicon octicon-issue-opened"></i>
|
25 | 25 | {{.i18n.Tr "repo.milestones.open_tab" .MilestoneStats.OpenCount}}
|
26 | 26 | </a>
|
27 |
| - <a class="ui {{if .IsShowClosed}}red active{{end}} basic button" href="{{.Link}}?type={{$.ViewType}}&repo={{.RepoID}}&sort={{$.SortType}}&state=closed"> |
| 27 | + <a class="ui {{if .IsShowClosed}}red active{{end}} basic button" href="{{.Link}}?repo={{.RepoID}}&sort={{$.SortType}}&state=closed"> |
28 | 28 | <i class="octicon octicon-issue-closed"></i>
|
29 | 29 | {{.i18n.Tr "repo.milestones.close_tab" .MilestoneStats.ClosedCount}}
|
30 | 30 | </a>
|
|
37 | 37 | <i class="dropdown icon"></i>
|
38 | 38 | </span>
|
39 | 39 | <div class="menu">
|
40 |
| - <a class="{{if or (eq .SortType "closestduedate") (not .SortType)}}active{{end}} item" href="{{$.Link}}?type={{$.ViewType}}&repo={{.RepoID}}&sort=closestduedate&state={{$.State}}">{{.i18n.Tr "repo.milestones.filter_sort.closest_due_date"}}</a> |
41 |
| - <a class="{{if eq .SortType "furthestduedate"}}active{{end}} item" href="{{$.Link}}?type={{$.ViewType}}&repo={{.RepoID}}&sort=furthestduedate&state={{$.State}}">{{.i18n.Tr "repo.milestones.filter_sort.furthest_due_date"}}</a> |
42 |
| - <a class="{{if eq .SortType "leastcomplete"}}active{{end}} item" href="{{$.Link}}?type={{$.ViewType}}&repo={{.RepoID}}&sort=leastcomplete&state={{$.State}}">{{.i18n.Tr "repo.milestones.filter_sort.least_complete"}}</a> |
43 |
| - <a class="{{if eq .SortType "mostcomplete"}}active{{end}} item" href="{{$.Link}}?type={{$.ViewType}}&repo={{.RepoID}}&sort=mostcomplete&state={{$.State}}">{{.i18n.Tr "repo.milestones.filter_sort.most_complete"}}</a> |
44 |
| - <a class="{{if eq .SortType "mostissues"}}active{{end}} item" href="{{$.Link}}?type={{$.ViewType}}&repo={{.RepoID}}&sort=mostissues&state={{$.State}}">{{.i18n.Tr "repo.milestones.filter_sort.most_issues"}}</a> |
45 |
| - <a class="{{if eq .SortType "leastissues"}}active{{end}} item" href="{{$.Link}}?type={{$.ViewType}}&repo={{.RepoID}}&sort=leastissues&state={{$.State}}">{{.i18n.Tr "repo.milestones.filter_sort.least_issues"}}</a> |
| 40 | + <a class="{{if or (eq .SortType "closestduedate") (not .SortType)}}active{{end}} item" href="{{$.Link}}?repo={{.RepoID}}&sort=closestduedate&state={{$.State}}">{{.i18n.Tr "repo.milestones.filter_sort.closest_due_date"}}</a> |
| 41 | + <a class="{{if eq .SortType "furthestduedate"}}active{{end}} item" href="{{$.Link}}?repo={{.RepoID}}&sort=furthestduedate&state={{$.State}}">{{.i18n.Tr "repo.milestones.filter_sort.furthest_due_date"}}</a> |
| 42 | + <a class="{{if eq .SortType "leastcomplete"}}active{{end}} item" href="{{$.Link}}?repo={{.RepoID}}&sort=leastcomplete&state={{$.State}}">{{.i18n.Tr "repo.milestones.filter_sort.least_complete"}}</a> |
| 43 | + <a class="{{if eq .SortType "mostcomplete"}}active{{end}} item" href="{{$.Link}}?repo={{.RepoID}}&sort=mostcomplete&state={{$.State}}">{{.i18n.Tr "repo.milestones.filter_sort.most_complete"}}</a> |
| 44 | + <a class="{{if eq .SortType "mostissues"}}active{{end}} item" href="{{$.Link}}?repo={{.RepoID}}&sort=mostissues&state={{$.State}}">{{.i18n.Tr "repo.milestones.filter_sort.most_issues"}}</a> |
| 45 | + <a class="{{if eq .SortType "leastissues"}}active{{end}} item" href="{{$.Link}}?repo={{.RepoID}}&sort=leastissues&state={{$.State}}">{{.i18n.Tr "repo.milestones.filter_sort.least_issues"}}</a> |
46 | 46 | </div>
|
47 | 47 | </div>
|
48 | 48 | </div>
|
|
75 | 75 | {{if .TotalTrackedTime}}<i class="octicon octicon-clock"></i> {{.TotalTrackedTime|Sec2Time}}{{end}}
|
76 | 76 | </span>
|
77 | 77 | </div>
|
| 78 | + {{if and (or $.CanWriteIssues $.CanWritePulls) (not $.Repository.IsArchived)}} |
| 79 | + <div class="ui right operate"> |
| 80 | + <a href="{{$.Link}}/{{.ID}}/edit" data-id={{.ID}} data-title={{.Name}}><i class="octicon octicon-pencil"></i> {{$.i18n.Tr "repo.issues.label_edit"}}</a> |
| 81 | + {{if .IsClosed}} |
| 82 | + <a href="{{$.Link}}/{{.ID}}/open" data-id={{.ID}} data-title={{.Name}}><i class="octicon octicon-check"></i> {{$.i18n.Tr "repo.milestones.open"}}</a> |
| 83 | + {{else}} |
| 84 | + <a href="{{$.Link}}/{{.ID}}/close" data-id={{.ID}} data-title={{.Name}}><i class="octicon octicon-x"></i> {{$.i18n.Tr "repo.milestones.close"}}</a> |
| 85 | + {{end}} |
| 86 | + <a class="delete-button" href="#" data-url="{{$.RepoLink}}/milestones/delete" data-id="{{.ID}}"><i class="octicon octicon-trashcan"></i> {{$.i18n.Tr "repo.issues.label_delete"}}</a> |
| 87 | + </div> |
| 88 | + {{end}} |
78 | 89 | {{if .Content}}
|
79 | 90 | <div class="content">
|
80 | 91 | {{.RenderedContent|Str2html}}
|
|
0 commit comments