Commit 7cefd457fd
Verified · cmc
Layout: unified · split
internal/web/templates/issue.html +3 −3
| @@ -50,7 +50,7 @@ | |||
| 50 | <div class="grp"> | 50 | <div class="grp"> |
| 51 | <h2>Labels</h2> | 51 | <h2>Labels</h2> |
| 52 | {{if .Issue.Labels}}<p class="row">{{range .Issue.Labels}}<a class="chip label" style="{{index $.LabelColors .}}" href="/{{$.Repo.OwnerName}}/{{$.Repo.Name}}/issues?label={{.}}">{{.}}</a> {{end}}</p> | 52 | {{if .Issue.Labels}}<p class="row">{{range .Issue.Labels}}<a class="chip label" style="{{index $.LabelColors .}}" href="/{{$.Repo.OwnerName}}/{{$.Repo.Name}}/issues?label={{.}}">{{.}}</a> {{end}}</p> |
| 53 | {{else}}<p class="none">None yet</p>{{end}} | 53 | {{else}}<p class="none">none yet</p>{{end}} |
| 54 | {{if .CanWrite}} | 54 | {{if .CanWrite}} |
| 55 | <form method="post" action="{{$base}}/label" class="actions"> | 55 | <form method="post" action="{{$base}}/label" class="actions"> |
| 56 | <input type="text" name="add" aria-label="Add labels" placeholder="add, space-separated"> | 56 | <input type="text" name="add" aria-label="Add labels" placeholder="add, space-separated"> |
| @@ -62,7 +62,7 @@ | |||
| 62 | <div class="grp"> | 62 | <div class="grp"> |
| 63 | <h2>Assignees</h2> | 63 | <h2>Assignees</h2> |
| 64 | {{if .Issue.Assignees}}<p class="row">{{range .Issue.Assignees}}<a href="/{{.}}">{{.}}</a> {{end}}</p> | 64 | {{if .Issue.Assignees}}<p class="row">{{range .Issue.Assignees}}<a href="/{{.}}">{{.}}</a> {{end}}</p> |
| 65 | {{else}}<p class="none">Nobody yet</p>{{end}} | 65 | {{else}}<p class="none">nobody yet</p>{{end}} |
| 66 | {{if .CanWrite}} | 66 | {{if .CanWrite}} |
| 67 | <form method="post" action="{{$base}}/assign" class="actions"> | 67 | <form method="post" action="{{$base}}/assign" class="actions"> |
| 68 | <input type="text" name="add" aria-label="Add assignees" placeholder="add, space-separated"> | 68 | <input type="text" name="add" aria-label="Add assignees" placeholder="add, space-separated"> |
| @@ -74,7 +74,7 @@ | |||
| 74 | <div class="grp"> | 74 | <div class="grp"> |
| 75 | <h2>Milestone</h2> | 75 | <h2>Milestone</h2> |
| 76 | {{if .Issue.Milestone}}<p class="row"><a href="/{{.Repo.OwnerName}}/{{.Repo.Name}}/milestones">{{.Issue.Milestone}}</a></p> | 76 | {{if .Issue.Milestone}}<p class="row"><a href="/{{.Repo.OwnerName}}/{{.Repo.Name}}/milestones">{{.Issue.Milestone}}</a></p> |
| 77 | {{else}}<p class="none">None</p>{{end}} | 77 | {{else}}<p class="none">none yet</p>{{end}} |
| 78 | {{if .CanWrite}} | 78 | {{if .CanWrite}} |
| 79 | <form method="post" action="{{$base}}/milestone" class="actions"> | 79 | <form method="post" action="{{$base}}/milestone" class="actions"> |
| 80 | <label class="none" for="milestone">Set milestone</label> | 80 | <label class="none" for="milestone">Set milestone</label> |
internal/web/templates/mr.html +2 −2
| @@ -129,7 +129,7 @@ | |||
| 129 | <div class="grp"> | 129 | <div class="grp"> |
| 130 | <h2>Reviewers</h2> | 130 | <h2>Reviewers</h2> |
| 131 | {{if .MR.ReviewRequests}}<p class="row">{{range .MR.ReviewRequests}}<a href="/{{.}}">{{.}}</a> {{end}}</p> | 131 | {{if .MR.ReviewRequests}}<p class="row">{{range .MR.ReviewRequests}}<a href="/{{.}}">{{.}}</a> {{end}}</p> |
| 132 | {{else}}<p class="none">Nobody asked yet</p>{{end}} | 132 | {{else}}<p class="none">nobody yet</p>{{end}} |
| 133 | {{if and .CanWrite (or (eq .MR.State "open") (eq .MR.State "source_gone"))}} | 133 | {{if and .CanWrite (or (eq .MR.State "open") (eq .MR.State "source_gone"))}} |
| 134 | <form method="post" action="{{$base}}/review-request" class="actions"> | 134 | <form method="post" action="{{$base}}/review-request" class="actions"> |
| 135 | <input type="text" name="add" aria-label="Add reviewers" placeholder="add, space-separated"> | 135 | <input type="text" name="add" aria-label="Add reviewers" placeholder="add, space-separated"> |
| @@ -141,7 +141,7 @@ | |||
| 141 | <div class="grp"> | 141 | <div class="grp"> |
| 142 | <h2>Reviews</h2> | 142 | <h2>Reviews</h2> |
| 143 | {{range .Reviews}}<p class="row"><span class="dot {{if eq .Verdict "approve"}}ok{{else}}pend{{end}}"></span><a href="/{{.Reviewer}}">{{.Reviewer}}</a> {{.Verdict}}{{if .Stale}} <span class="chip chip-stale">stale</span>{{end}}{{if not .Counts}} <span class="chip chip-neutral" title="This reviewer has no write access, so the merge gates do not count it">advisory</span>{{end}}<span class="sub">{{when .CreatedAt}}</span></p> | 143 | {{range .Reviews}}<p class="row"><span class="dot {{if eq .Verdict "approve"}}ok{{else}}pend{{end}}"></span><a href="/{{.Reviewer}}">{{.Reviewer}}</a> {{.Verdict}}{{if .Stale}} <span class="chip chip-stale">stale</span>{{end}}{{if not .Counts}} <span class="chip chip-neutral" title="This reviewer has no write access, so the merge gates do not count it">advisory</span>{{end}}<span class="sub">{{when .CreatedAt}}</span></p> |
| 144 | {{else}}<p class="none">No reviews yet</p>{{end}} | 144 | {{else}}<p class="none">none yet</p>{{end}} |
| 145 | {{if gt (len .Revisions) 1}}<p class="row none">{{len .Revisions}} revisions pushed. What changed between the last two: | 145 | {{if gt (len .Revisions) 1}}<p class="row none">{{len .Revisions}} revisions pushed. What changed between the last two: |
| 146 | <code>gitbay mr range-diff {{.Repo.OwnerName}}/{{.Repo.Name}} {{.MR.Number}}</code></p>{{end}} | 146 | <code>gitbay mr range-diff {{.Repo.OwnerName}}/{{.Repo.Name}} {{.MR.Number}}</code></p>{{end}} |
| 147 | </div> | 147 | </div> |