[Patchew-devel] [PATCH 04/16] template: Simpify op.icon default
Fam Zheng
famz at redhat.com
Wed Nov 21 02:08:34 UTC 2018
Signed-off-by: Fam Zheng <famz at redhat.com>
---
www/templates/series-detail.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/www/templates/series-detail.html b/www/templates/series-detail.html
index 02ce72c..c7b7f1d 100644
--- a/www/templates/series-detail.html
+++ b/www/templates/series-detail.html
@@ -40,7 +40,7 @@
<ul>
{% for op in series.extra_ops %}
<li>
- <span class="fa fa-{% if op.icon %}{{ op.icon }}{% else %}question{% endif %}"></span><a
+ <span class="fa fa-{{ op.icon | default:"question" }}"></span><a
href="{{ op.url }}">{{ op.title }}</a></li>
{% endfor %}
</ul>
--
2.17.2
More information about the Patchew-devel
mailing list