summaryrefslogtreecommitdiffstats
path: root/templates/packages
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-01-31 23:07:23 +0100
committerDan McGee <dan@archlinux.org>2010-01-31 23:08:06 +0100
commit0dd128a6db267353090a3be90a564d888898ee8f (patch)
tree164e7582ba27104e6d6094686470e1e0028d19d6 /templates/packages
parentd721c724addb811ed4734fc391303950a484167e (diff)
downloadarchweb-0dd128a6db267353090a3be90a564d888898ee8f.tar.gz
archweb-0dd128a6db267353090a3be90a564d888898ee8f.tar.xz
Handle empty pkgdesc and url a bit better
Put an actual NULL in the database and handle it for both display and import. Also add a migration to clean up any bad data we currently have in there. Fixes FS#17144. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/packages')
-rw-r--r--templates/packages/details.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/packages/details.html b/templates/packages/details.html
index 90bef99..3729255 100644
--- a/templates/packages/details.html
+++ b/templates/packages/details.html
@@ -41,10 +41,10 @@
<td>{{ pkg.repo.name|capfirst }}</td>
</tr><tr>
<th>Description:</th>
- <td>{{ pkg.pkgdesc }}</td>
+ <td>{% if pkg.pkgdesc %}{{ pkg.pkgdesc }}{% endif %}</td>
</tr><tr>
<th>Upstream URL:</th>
- <td><a href="{{ pkg.url }}">{{ pkg.url }}</a></td>
+ <td>{% if pkg.url %}<a href="{{ pkg.url }}">{{ pkg.url }}</a>{% endif %}</td>
</tr><tr>
<th>License:</th>
<td>{{ pkg.license }}</td>