Skip to content

Commit 2ef60f4

Browse files
committed
Tweaked the release page a bit, fixing vertical alignment of revision comments when breaking across lines, comment appearance on iPads, and introducing striped tables.
- Legacy-Id: 11455
1 parent 6fa1817 commit 2ef60f4

1 file changed

Lines changed: 17 additions & 10 deletions

File tree

ietf/templates/release/release.html

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
{% block title %}Release information{% endblock %}
66

77
{% block morecss %}
8-
.version { text-align: right; padding: 0.1em 0.5em; min-width: 4em; }
9-
.date { text-align: right; padding: 0.1em 0.5em; min-width: 8em; }
10-
.comment { text-align: left; padding: 0.1em 0.5em; }
8+
.year-row { background-color: white; }
9+
.version-row { vertical-align: top; }
10+
.version { text-align: right; padding: 0.1em 0.5em; min-width: 4em; }
11+
.date { text-align: right; padding: 0.1em 0.5em; min-width: 8em; }
12+
.release-title { padding: 0.1em 0.5em; }
1113
{% endblock %}
1214

1315
{% block content %}
@@ -49,19 +51,24 @@ <h2>{{ entry.version }} release notes</h2>
4951
-- {{entry.author}} &lt;{{entry.email}}&gt; {{entry.date}}</pre>
5052

5153
<h2>Release list:</h2>
52-
<table style="margin-left: 3em">
54+
<table style="margin-left: 3em" class="table-striped">
55+
<tbody
5356
{% for item in releases %}
5457
{% ifchanged %}
55-
<tr>
56-
<td><h3>{{ item.date|slice:"7:11" }}</h3></td>
57-
<td></td>
58-
<td></td>
58+
</tbody>
59+
<thead>
60+
<tr class="year-row">
61+
<th><h3>{{ item.date|slice:"7:11" }}</h3></tth>
62+
<th></th>
63+
<th></th>
5964
</tr>
65+
</thead>
66+
<tbody>
6067
{% endifchanged %}
61-
<tr>
68+
<tr class="version-row">
6269
<td class="version"><a href="/release/{{item.version}}/">{{ item.version }}</a></td>
6370
<td class="date">{{ item.date|slice:":11" }}</td>
64-
<td class="comment">{{ item.title }}</td>
71+
<td class="release-title">{{ item.title }}</td>
6572
</tr>
6673
{% endfor %}
6774
</table>

0 commit comments

Comments
 (0)