From 0dd128a6db267353090a3be90a564d888898ee8f Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 31 Jan 2010 16:07:23 -0600 Subject: 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 --- templates/packages/details.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates') 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 @@ {{ pkg.repo.name|capfirst }} Description: - {{ pkg.pkgdesc }} + {% if pkg.pkgdesc %}{{ pkg.pkgdesc }}{% endif %} Upstream URL: - {{ pkg.url }} + {% if pkg.url %}{{ pkg.url }}{% endif %} License: {{ pkg.license }} -- cgit v1.2.3-24-g4f1b