We'll make use of this to enable downloading of patches with mboxes.
In addition, the 'hide' link for patches and cover letters is removed.
There's no way to enable this by default and the use cases are dubious
at best.
Signed-off-by: Stephen Finucane <stephen@that.guru>
Reviewed-by: Daniel Axtens <dja@axtens.net>
{% if submission.diff %}
<h2>
Patch
- <a href="javascript:toggle_div('hide-patch', 'patch')" id="hide-patch">hide</a></span>
- <span>|</span>
- <a href="{% url 'patch-raw' patch_id=submission.id %}"
- >download patch</a>
- <span>|</span>
- <a href="{% url 'patch-mbox' patch_id=submission.id %}"
- >download mbox</a>
+ <div class="btn-group pull-right">
+ <a href="{% url 'patch-raw' patch_id=submission.id %}"
+ class="btn btn-default" role="button" title="Download patch diff"
+ >diff</a>
+ <a href="{% url 'patch-mbox' patch_id=submission.id %}"
+ class="btn btn-default" role="button" title="Download patch mbox"
+ >mbox</a>
+ </div>
</h2>
+
<div id="patch" class="patch">
<pre class="content">
{{ submission|patchsyntax }}