Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Clone

Read only, no credentials:

https://rodent.software/git/vole.git

Write over SSH with a registered key:

git clone ssh://git@0.0.0.0:2222/vole.git

A free and open-source forge that lives in your Git repo.

Give the issue list the same status shape as the change list

6813339b80d1e54e171e110f115ace68bba608a9 · Keenan Nemetz · 4d ago · parent 5899ae25

Give the issue list the same status shape as the change list

The two lists sat side by side with different status treatments: changes had an
icon and a sentence, issues had an uppercase pill. The issue list now uses the
same markup and class, so the shared style is called row-status rather than
pointing at one of the pages that happens to use it.

Closed issues keep a check rather than the change list's cross: closed is where
an issue ends, not where a change was dropped. The page headers keep the state
pill, as they do on both detail pages, so those two still agree.

server/web/templates/issues.html +5−1

@@ -14,6 +14,10 @@
14 14 {{template "footer" .}}
15 15 {{end}}
16 16
17 {{/* The list's status is the same shape as a change's: a reader scanning two
18 lists should not have to learn two visual languages. */}}
19 {{define "issue_status"}}{{if eq . "open"}}<span class="row-status open">{{icon "circle-dot"}}Open</span>{{else}}<span class="row-status closed">{{icon "circle-check"}}Closed</span>{{end}}{{end}}
20
17 21 {{define "issue_list"}}
18 22 <div id="issue-list">
19 23 {{/* One row: the state chips and the dropdowns on the left, the search field on
@@ -60,7 +64,7 @@
60 64 <tbody>
61 65 {{range .Issues}}
62 66 <tr>
63 <td class="fit"><span class="state {{.State}}">{{.State}}</span></td>
67 <td class="fit">{{template "issue_status" .State}}</td>
64 68 <td>
65 69 <a class="row-title" href="/r/{{$.Name}}/issues/{{.ID}}">{{.Title}}</a>
66 70 <div class="row-meta">