|
1 |
| - {{if .CanWriteProjects}} |
2 |
| - <div class="gt-tr"> |
3 |
| - <a class="ui small green button" href="{{$.Link}}/new">{{.locale.Tr "repo.projects.new"}}</a> |
4 |
| - </div> |
5 |
| - <div class="divider"></div> |
6 |
| - {{end}} |
| 1 | +{{if .CanWriteProjects}} |
| 2 | + <div class="gt-tr"> |
| 3 | + <a class="ui small green button" href="{{$.Link}}/new">{{.locale.Tr "repo.projects.new"}}</a> |
| 4 | + </div> |
| 5 | + <div class="divider"></div> |
| 6 | +{{end}} |
7 | 7 |
|
8 |
| - {{template "base/alert" .}} |
9 |
| - <div class="small-menu-items ui compact tiny menu"> |
10 |
| - <a class="item{{if not .IsShowClosed}} active{{end}}" href="{{$.Link}}?state=open"> |
11 |
| - {{svg "octicon-project-symlink" 16 "gt-mr-3"}} |
12 |
| - {{.locale.PrettyNumber .OpenCount}} {{.locale.Tr "repo.issues.open_title"}} |
13 |
| - </a> |
14 |
| - <a class="item{{if .IsShowClosed}} active{{end}}" href="{{$.Link}}?state=closed"> |
15 |
| - {{svg "octicon-check" 16 "gt-mr-3"}} |
16 |
| - {{.locale.PrettyNumber .ClosedCount}} {{.locale.Tr "repo.issues.closed_title"}} |
17 |
| - </a> |
18 |
| - </div> |
| 8 | +{{template "base/alert" .}} |
| 9 | +<div class="small-menu-items ui compact tiny menu"> |
| 10 | + <a class="item{{if not .IsShowClosed}} active{{end}}" href="{{$.Link}}?state=open"> |
| 11 | + {{svg "octicon-project-symlink" 16 "gt-mr-3"}} |
| 12 | + {{.locale.PrettyNumber .OpenCount}} {{.locale.Tr "repo.issues.open_title"}} |
| 13 | + </a> |
| 14 | + <a class="item{{if .IsShowClosed}} active{{end}}" href="{{$.Link}}?state=closed"> |
| 15 | + {{svg "octicon-check" 16 "gt-mr-3"}} |
| 16 | + {{.locale.PrettyNumber .ClosedCount}} {{.locale.Tr "repo.issues.closed_title"}} |
| 17 | + </a> |
| 18 | +</div> |
19 | 19 |
|
20 |
| - <div class="ui right floated secondary filter menu"> |
21 |
| - <!-- Sort --> |
22 |
| - <div class="ui dropdown type jump item"> |
23 |
| - <span class="text"> |
24 |
| - {{.locale.Tr "repo.issues.filter_sort"}} |
25 |
| - {{svg "octicon-triangle-down" 14 "dropdown icon"}} |
26 |
| - </span> |
27 |
| - <div class="menu"> |
28 |
| - <a class="{{if eq .SortType "oldest"}}active {{end}}item" href="{{$.Link}}?q={{$.Keyword}}&sort=oldest&state={{$.State}}">{{.locale.Tr "repo.issues.filter_sort.oldest"}}</a> |
29 |
| - <a class="{{if eq .SortType "recentupdate"}}active {{end}}item" href="{{$.Link}}?q={{$.Keyword}}&sort=recentupdate&state={{$.State}}">{{.locale.Tr "repo.issues.filter_sort.recentupdate"}}</a> |
30 |
| - <a class="{{if eq .SortType "leastupdate"}}active {{end}}item" href="{{$.Link}}?q={{$.Keyword}}&sort=leastupdate&state={{$.State}}">{{.locale.Tr "repo.issues.filter_sort.leastupdate"}}</a> |
31 |
| - </div> |
32 |
| - </div> |
| 20 | +<div class="ui right floated secondary filter menu"> |
| 21 | + <!-- Sort --> |
| 22 | + <div class="ui dropdown type jump item"> |
| 23 | + <span class="text"> |
| 24 | + {{.locale.Tr "repo.issues.filter_sort"}} |
| 25 | + {{svg "octicon-triangle-down" 14 "dropdown icon"}} |
| 26 | + </span> |
| 27 | + <div class="menu"> |
| 28 | + <a class="{{if eq .SortType "oldest"}}active {{end}}item" href="{{$.Link}}?q={{$.Keyword}}&sort=oldest&state={{$.State}}">{{.locale.Tr "repo.issues.filter_sort.oldest"}}</a> |
| 29 | + <a class="{{if eq .SortType "recentupdate"}}active {{end}}item" href="{{$.Link}}?q={{$.Keyword}}&sort=recentupdate&state={{$.State}}">{{.locale.Tr "repo.issues.filter_sort.recentupdate"}}</a> |
| 30 | + <a class="{{if eq .SortType "leastupdate"}}active {{end}}item" href="{{$.Link}}?q={{$.Keyword}}&sort=leastupdate&state={{$.State}}">{{.locale.Tr "repo.issues.filter_sort.leastupdate"}}</a> |
33 | 31 | </div>
|
34 |
| - <div class="milestone-list"> |
35 |
| - {{range .Projects}} |
36 |
| - <li class="milestone-card"> |
37 |
| - <h3 class="flex-text-block gt-m-0"> |
38 |
| - {{svg .IconName 16}} |
39 |
| - <a class="muted" href="{{.Link}}">{{.Title}}</a> |
40 |
| - </h3> |
41 |
| - <div class="milestone-toolbar"> |
42 |
| - <div class="group"> |
43 |
| - <div class="flex-text-block"> |
44 |
| - {{svg "octicon-issue-opened" 14}} |
45 |
| - {{$.locale.PrettyNumber .NumOpenIssues}} {{$.locale.Tr "repo.issues.open_title"}} |
46 |
| - </div> |
47 |
| - <div class="flex-text-block"> |
48 |
| - {{svg "octicon-check" 14}} |
49 |
| - {{$.locale.PrettyNumber .NumClosedIssues}} {{$.locale.Tr "repo.issues.closed_title"}} |
50 |
| - </div> |
51 |
| - </div> |
52 |
| - {{if and $.CanWriteProjects (not $.Repository.IsArchived)}} |
53 |
| - <div class="group"> |
54 |
| - <a class="flex-text-inline" href="{{.Link}}/edit">{{svg "octicon-pencil" 14}}{{$.locale.Tr "repo.issues.label_edit"}}</a> |
55 |
| - {{if .IsClosed}} |
56 |
| - <a class="link-action flex-text-inline" href data-url="{{.Link}}/open">{{svg "octicon-check" 14}}{{$.locale.Tr "repo.projects.open"}}</a> |
57 |
| - {{else}} |
58 |
| - <a class="link-action flex-text-inline" href data-url="{{.Link}}/close">{{svg "octicon-skip" 14}}{{$.locale.Tr "repo.projects.close"}}</a> |
59 |
| - {{end}} |
60 |
| - <a class="delete-button flex-text-inline" href="#" data-url="{{.Link}}/delete">{{svg "octicon-trash" 14}}{{$.locale.Tr "repo.issues.label_delete"}}</a> |
61 |
| - </div> |
62 |
| - {{end}} |
| 32 | + </div> |
| 33 | +</div> |
| 34 | +<div class="milestone-list"> |
| 35 | + {{range .Projects}} |
| 36 | + <li class="milestone-card"> |
| 37 | + <h3 class="flex-text-block gt-m-0"> |
| 38 | + {{svg .IconName 16}} |
| 39 | + <a class="muted" href="{{.Link}}">{{.Title}}</a> |
| 40 | + </h3> |
| 41 | + <div class="milestone-toolbar"> |
| 42 | + <div class="group"> |
| 43 | + <div class="flex-text-block"> |
| 44 | + {{svg "octicon-issue-opened" 14}} |
| 45 | + {{$.locale.PrettyNumber .NumOpenIssues}} {{$.locale.Tr "repo.issues.open_title"}} |
63 | 46 | </div>
|
64 |
| - {{if .Description}} |
65 |
| - <div class="content"> |
66 |
| - {{.RenderedContent|Str2html}} |
| 47 | + <div class="flex-text-block"> |
| 48 | + {{svg "octicon-check" 14}} |
| 49 | + {{$.locale.PrettyNumber .NumClosedIssues}} {{$.locale.Tr "repo.issues.closed_title"}} |
67 | 50 | </div>
|
| 51 | + </div> |
| 52 | + {{if and $.CanWriteProjects (not $.Repository.IsArchived)}} |
| 53 | + <div class="group"> |
| 54 | + <a class="flex-text-inline" href="{{.Link}}/edit">{{svg "octicon-pencil" 14}}{{$.locale.Tr "repo.issues.label_edit"}}</a> |
| 55 | + {{if .IsClosed}} |
| 56 | + <a class="link-action flex-text-inline" href data-url="{{.Link}}/open">{{svg "octicon-check" 14}}{{$.locale.Tr "repo.projects.open"}}</a> |
| 57 | + {{else}} |
| 58 | + <a class="link-action flex-text-inline" href data-url="{{.Link}}/close">{{svg "octicon-skip" 14}}{{$.locale.Tr "repo.projects.close"}}</a> |
68 | 59 | {{end}}
|
69 |
| - </li> |
| 60 | + <a class="delete-button flex-text-inline" href="#" data-url="{{.Link}}/delete">{{svg "octicon-trash" 14}}{{$.locale.Tr "repo.issues.label_delete"}}</a> |
| 61 | + </div> |
| 62 | + {{end}} |
| 63 | + </div> |
| 64 | + {{if .Description}} |
| 65 | + <div class="content"> |
| 66 | + {{.RenderedContent|Str2html}} |
| 67 | + </div> |
70 | 68 | {{end}}
|
| 69 | + </li> |
| 70 | + {{end}} |
71 | 71 |
|
72 |
| - {{template "base/paginate" .}} |
73 |
| - </div> |
| 72 | + {{template "base/paginate" .}} |
| 73 | +</div> |
74 | 74 |
|
75 | 75 | {{if $.CanWriteProjects}}
|
76 | 76 | <div class="ui g-modal-confirm delete modal">
|
|
0 commit comments