Replace <nobr> tags with CSS

The <nobr> tag is not allowed in <td> context, and is altogether
deprecated as well. Replace with a span and a CSS class instead.

Reviewed-by: Magnus Hagander
Discussion: https://postgr.es/m/A0228704-7C47-44B8-929B-8BFC02D6CBD7@yesql.se
This commit is contained in:
Daniel Gustafsson
2021-10-13 09:37:23 +02:00
parent 7407f53f22
commit 419fee8b40
2 changed files with 5 additions and 1 deletions

View File

@ -1613,3 +1613,7 @@ table.sponsor-table tbody tr td:nth-child(3) {
top: 8px;
right: 8px;
}
.nobr {
white-space: nowrap;
}

View File

@ -75,7 +75,7 @@ You can filter the view of patches to show just patches for version:<br/>
{%for p in patches%}
<tr>
<td>
{%if p.cve%}<nobr><a href="/support/security/CVE-{{ p.cve }}/">CVE-{{p.cve}}</a></nobr><br/>{%endif%}
{%if p.cve%}<span class="nobr"><a href="/support/security/CVE-{{ p.cve }}/">CVE-{{p.cve}}</a></span><br/>{%endif%}
{%if p.newspost%}<a href="/about/news/{{p.newspost.title|slugify}}-{{p.newspost.id}}/">Announcement</a><br/>{%endif%}
</td>
<td>{{p.affected|join:", "}}</td>