[Patchew-devel] [PATCH 04/16] template: Simpify op.icon default

Paolo Bonzini pbonzini at redhat.com
Fri Nov 23 15:05:32 UTC 2018


On 21/11/18 03:08, Fam Zheng wrote:
> 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>
> 

Applied, thanks.

Paolo




More information about the Patchew-devel mailing list