[PATCH v2 9/9] templates: Add "download series" links

Daniel Axtens dja at axtens.net
Fri Feb 24 14:49:49 AEDT 2017


Hi Stephen,

>     class="btn btn-default" role="button" data-toggle="tooltip"
>     title="Download patch mbox">mbox</a>
> +  {% if submission.latest_series %}
> +   <button type="button" class="btn btn-default dropdown-toggle"
> +    data-toggle="dropdown">
> +    series <span class="caret"></span>
> +   </button>
> +   <ul class="dropdown-menu" role="menu">
> +   {% for series in submission.series.all %}
> +    <li><a href="{% url 'series-mbox' series_id=series.id %}"
> +     >{{ series }}</a></li>
> +   {% endfor %}
> +   </ul>
> +  {% endif %}

Can we test at runtime if there are multiple series and only do a
drop-down if necessary?

Apart from that, looks good!

Regards,
Daniel

>   </div>
>  </h2>
>  
> -- 
> 2.9.3
>
> _______________________________________________
> Patchwork mailing list
> Patchwork at lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/patchwork


More information about the Patchwork mailing list