bkerr / Ann Arbor Government Documents
Matt Hampel's document upload / repository application. Brian Kerr has been helping clean it up.
Clone this repository (size: 2.2 MB): HTTPS / SSH
$ hg clone http://code.xca2.com/ann-arbor-government-documents
| commit 89: | 7e9d90e0fe18 |
| parent 88: | f6783f907a59 |
| branch: | default |
Tidy display of counts on 'by submitter' and 'by origin' templates.
fixes issue #27.
Changed (Δ142 bytes):
raw changeset »
templates/entities.html (4 lines added, 3 lines removed)
templates/posters.html (4 lines added, 4 lines removed)
Up to file-list templates/entities.html:
10 |
10 |
<ul> |
11 |
11 |
{% for entry in entries %} |
12 |
12 |
<li> |
13 |
<a href="/origin/{{ entry.slug }}"> |
|
14 |
{{ entry.name }} |
|
15 |
< |
|
13 |
<a href="/origin/{{ entry.slug }}">{{ entry.name }}</a> |
|
14 |
{% ifnotequal entry.entry_set.count 1 %} |
|
15 |
({{entry.entry_set.count}}) |
|
16 |
{% endifnotequal %} |
|
16 |
17 |
</li> |
17 |
18 |
{% endfor %} |
18 |
19 |
Up to file-list templates/posters.html:
10 |
10 |
<ul> |
11 |
11 |
{% for entry in entries|dictsort:"name" %} |
12 |
12 |
<li> |
13 |
<a href="{{ entry.slug }}"> |
|
14 |
{{ entry.name }} |
|
15 |
<span>({{ entry.count }})</span> |
|
16 |
</a> |
|
13 |
<a href="{{ entry.slug }}">{{ entry.name }}</a> |
|
14 |
{% ifnotequal entry.count "1" %} |
|
15 |
({{ entry.count }}) |
|
16 |
{% endifnotequal %} |
|
17 |
17 |
</li> |
18 |
18 |
{% endfor %} |
19 |
19 |
