[PATCH v2 9/9] templates: Add "download series" links
Stephen Finucane
stephen at that.guru
Wed Mar 8 06:33:24 AEDT 2017
On Fri, 2017-02-24 at 14:49 +1100, Daniel Axtens wrote:
> 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?
Sure. Let me whip that together for v3.
Stephen
More information about the Patchwork
mailing list