]> git.ipfire.org Git - thirdparty/patchwork.git/commit
templates: don't emit tags for empty URLs, allow both web_url & webscm_url
authorJeremy Kerr <jk@ozlabs.org>
Sun, 27 Mar 2016 04:53:06 +0000 (12:53 +0800)
committerStephen Finucane <stephen.finucane@intel.com>
Tue, 29 Mar 2016 08:57:15 +0000 (09:57 +0100)
commit7ffe5d7cfac61e972643881ced2251d17d2bb363
tree00d763b201bf00493fbdc4ee20b8c9ddfc0a0989
parentc4b869670c1b259e8f70a1f183b09b0569151baf
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 <jk@ozlabs.org>
Acked-by: Stephen Finucane <stephen.finucane@intel.com>
patchwork/templates/patchwork/projects.html