summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAilin Nemui <ailin@z30a.localdomain>2017-06-08 21:53:08 +0200
committerAilin Nemui <ailin@z30a.localdomain>2017-06-08 21:53:08 +0200
commit527444ce40f93651cefebd5bed43fe6df0f6a8ab (patch)
tree4381d37032e01128cf67da482a65c17d6d75e15d
parent57f1ee2288485b8f49f4d15921ea56bcc51d60a6 (diff)
downloadirssi.github.io-527444ce40f93651cefebd5bed43fe6df0f6a8ab.zip
make the rowspan conditional
-rw-r--r--security/index.html18
1 files changed, 16 insertions, 2 deletions
diff --git a/security/index.html b/security/index.html
index 79beefe..8c85029 100644
--- a/security/index.html
+++ b/security/index.html
@@ -41,22 +41,36 @@ categories: [ _nav ]
{% endfor %}
</td>
<td rowspan="3">{{ bug.exploitable_by }}</td>
- <td class="has-next-row" colspan="4">{% if bug.affected_note_top %}{{ bug.affected_note_top }}{% endif %}</td>
+ {% if bug.affected_note_top %}<td class="has-next-row" colspan="4">{{ bug.affected_note_top }}</td>{% else %}
+ <td class="has-next-row">{{ bug.affected_versions.from }}</td>
+ <td class="has-next-row">&ndash;</td>
+ <td class="has-next-row">{{ bug.affected_versions.to }}</td>
+ <td class="has-next-row">
+ {% if bug.git_commit %}<a href="https://github.com/irssi/{% if bug.repo %}{{ bug.repo }}{% else %}irssi{% endif %}/commit/{{ bug.git_commit }}">{{ bug.fixed_version }}</a>{% else %}{{ bug.fixed_version }}{% endif %}
+ </td>
+ {% endif %}
<td rowspan="3">{{ bug.credit }}</td>
<td rowspan="3">{{ bug.description }}</td>
<td rowspan="3"></td>
</tr>
<tr{% if bug.important %} class="warning"{% endif %}>
+ {% if bug.affected_note_top %}
<td class="has-next-row has-previous-row">{{ bug.affected_versions.from }}</td>
<td class="has-next-row has-previous-row">&ndash;</td>
<td class="has-next-row has-previous-row">{{ bug.affected_versions.to }}</td>
<td class="has-next-row has-previous-row">
- {{ bug.fixed_version }}
+ {% if bug.git_commit %}<a href="https://github.com/irssi/{% if bug.repo %}{{ bug.repo }}{% else %}irssi{% endif %}/commit/{{ bug.git_commit }}">{{ bug.fixed_version }}</a>{% else %}{{ bug.fixed_version }}{% endif %}
</td>
+ {% else %}
+ <td class="has-previous-row" colspan="3" rowspan="2">{% if bug.affected_note_bottom %}{{ bug.affected_note_bottom }}{% endif %}</td>
+ <td class="has-previous-row" rowspan="2"></td>
+ {% endif %}
</tr>
<tr{% if bug.important %} class="warning"{% endif %}>
+ {% if bug.affected_note_top %}
<td class="has-previous-row" colspan="3">{% if bug.affected_note_bottom %}{{ bug.affected_note_bottom }}{% endif %}</td>
<td class="has-previous-row"></td>
+ {% endif %}
</tr>
{% endfor %}
</tbody>