]> 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:54:37 +0000 (09:54 +0100)
commit5263eedeecf99b39688d97254b6f93f55fc3956c
tree35353fb27cf02e86eb83764003d3bbe47037f512
parente499cc7c24f712c323c204029e947ca41dcf1c0d
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