aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <marcin.juszkiewicz@linaro.org>2022-02-11 17:26:18 +0100
committerBenjamin Copeland <ben.copeland@linaro.org>2022-02-14 10:35:11 +0000
commit8a0ad2ccd1b8624c606c620089d574441d975534 (patch)
tree21acc6b7735a8f8bcdba4ab272b07814368c8476
parent8f45c6b57b51dc1bd4dd9ad6b0b5274ee229e030 (diff)
downloadlinaro-license-protection-8a0ad2ccd1b8624c606c620089d574441d975534.tar.gz
template: use CSS for table cells
<td valign="top"> is obsolete. Same with <td align="center"> Change-Id: I35c0f57585a5550e40b1c4ae52e0fc561a2bc9b5 Reviewed-on: https://review.linaro.org/c/infrastructure/linaro-license-protection/+/40533 Reviewed-by: Benjamin Copeland <ben.copeland@linaro.org>
-rw-r--r--license_protected_downloads/static/css/linaro.css8
-rw-r--r--templates/dir_template.html8
2 files changed, 12 insertions, 4 deletions
diff --git a/license_protected_downloads/static/css/linaro.css b/license_protected_downloads/static/css/linaro.css
index fc816ff..2aa960c 100644
--- a/license_protected_downloads/static/css/linaro.css
+++ b/license_protected_downloads/static/css/linaro.css
@@ -196,3 +196,11 @@ td > a:link, td > a:hover, td > a:visited {
color: #444 !important;
text-decoration: none !important;
}
+
+td {
+ vertical-align: top;
+}
+
+td.center {
+ text-align: center;
+}
diff --git a/templates/dir_template.html b/templates/dir_template.html
index 19aba21..9720c10 100644
--- a/templates/dir_template.html
+++ b/templates/dir_template.html
@@ -23,7 +23,7 @@
{% for value in dirlist %}
<tr onmouseover="this.style.background='#CBE68F'" onmouseout="this.style.background='#FFFFFF'">
- <td valign="top">
+ <td>
<img src="{{ STATIC_URL|add:'/static/'|add:value.type|add:'.png'|file_exists}}"
alt="{{ value.type }}">
</td>
@@ -35,11 +35,11 @@
{% endif %}
>{{ value.name }}</a>
</td>
- <td align="center">{{ value.mtime }} </td>
- <td align="center">
+ <td class="center">{{ value.mtime }} </td>
+ <td class="center">
{% if value.type != 'folder' %}{{ value.size }}{% endif %}
</td>
- <td align="center">
+ <td class="center">
{% if value.license_digest_list == "OPEN" %}
<i>open</i>
{% else %}