From 5263eedeecf99b39688d97254b6f93f55fc3956c Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Sun, 27 Mar 2016 12:53:06 +0800 Subject: [PATCH] templates: don't emit tags for empty URLs, allow both web_url & webscm_url Rather than always outputting one of web_url or webscm_url, only output when these are present. This prevents us from emitting empty links if both are missing. Signed-off-by: Jeremy Kerr Acked-by: Stephen Finucane --- patchwork/templates/patchwork/projects.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/patchwork/templates/patchwork/projects.html b/patchwork/templates/patchwork/projects.html index afaf6aba..0db12275 100644 --- a/patchwork/templates/patchwork/projects.html +++ b/patchwork/templates/patchwork/projects.html @@ -30,7 +30,8 @@

{% if p.web_url %}

{{p.web_url}}

-{% else %} +{% endif %} +{% if p.webscm_url %}

{{p.webscm_url}}

{% endif %} -- 2.47.3