Skip to content

Commit 2fa307a

Browse files
committed
Tweaked the document list display slightly, to sqeeze in a little bit more info on a page. Addresses issue # 1663.
- Legacy-Id: 9642
1 parent fa9525b commit 2fa307a

2 files changed

Lines changed: 19 additions & 8 deletions

File tree

ietf/templates/doc/search/search_result_row.html

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,26 @@
4545
{% endif %}
4646
</td>
4747

48-
<td class="text-nowrap">
49-
{% if doc.latest_revision_date|timesince_days|new_enough:request and doc.get_state_slug != "rfc" %}<a href="{{ rfcdiff_base_url }}?url2={{ doc.name }}-{{ doc.rev }}">{% endif %}{% if doc.get_state_slug == "rfc" %}{{ doc.latest_revision_date|date:"Y-m" }}{% else %}{{ doc.latest_revision_date|date:"Y-m-d" }}{% endif %}{% if doc.latest_revision_date|timesince_days|new_enough:request %}{% if doc.get_state_slug != "rfc" %}</a>{% endif %}
50-
<wbr><span class="label label-success">New</span>
48+
<td>
49+
<span class="text-nowrap">
50+
{% if doc.latest_revision_date|timesince_days|new_enough:request and doc.get_state_slug != "rfc" %}<a href="{{ rfcdiff_base_url }}?url2={{ doc.name }}-{{ doc.rev }}">{% endif %}
51+
{% if doc.get_state_slug == "rfc" %}{{ doc.latest_revision_date|date:"Y-m" }}{% else %}{{ doc.latest_revision_date|date:"Y-m-d" }}{% endif %}
52+
{% if doc.latest_revision_date|timesince_days|new_enough:request and doc.get_state_slug != "rfc" %}</a>{% endif %}
53+
</span>
54+
55+
{% if doc.pages %}
56+
<br><small class="text-muted">{{doc.pages}} page{{ doc.pages|pluralize }}</small>
57+
{% endif %}
58+
59+
60+
{% if doc.latest_revision_date|timesince_days|new_enough:request %}
61+
<wbr><span class="label label-success">New</span>
5162
{% endif %}
5263

5364
{% if doc.get_state_slug == "active" and doc.expirable and doc.expires|timesince_days|expires_soon:request %}
5465
<wbr><span class="label label-warning">Expires soon</span>
5566
{% endif %}
5667

57-
{% if doc.pages %}
58-
<br><small class="text-muted">{{doc.pages}} page{{ doc.pages|pluralize }}</small>
59-
{% endif %}
6068
</td>
6169

6270
{% include "doc/search/status_columns.html" %}
@@ -72,9 +80,9 @@
7280
{% if ad_name == None or ad_name != doc.ad.plain_name %}
7381
<td class="ad">
7482
{% if doc.ad %}
75-
<p>{{ doc.ad|default:"" }}</p>
83+
<div><a title="AD" href="mailto:doc.ad.email.address">{{ doc.ad }}</a></div>
7684
{% endif %}
77-
{% if doc.shepherd %}<small class="text-muted">{{doc.shepherd|emailwrap|default:""}}</small>{% endif %}
85+
{% if doc.shepherd %}<a title="Shepherd" href="{{doc.shepherd}}"><small class="text-muted">{{doc.shepherd|emailwrap|default:""}}</small></a>{% endif %}
7886
</td>
7987
{% else %}
8088
<td></td>

static/css/ietf.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,3 +376,6 @@ footer {
376376
tbody.plain tr th { border-top: 0; text-align: right; max-width: 12em;}
377377
tbody.plain tr:first-child th { border-top: 0; text-align: left; width: 6em; }
378378
tbody.plain tr td { border-top: 0; }
379+
380+
381+
td.ad div { border-bottom: solid #ccc 1px; }

0 commit comments

Comments
 (0)