<th>Download</th>
<td>
<a href="{% url patchwork.views.patch.mbox patch_id=patch.id %}"
- >mbox</a> |
+ >mbox</a>
+{% if patch.content %}|
<a href="{% url patchwork.views.patch.content patch_id=patch.id %}"
>patch</a>
+{% endif %}
</td>
</tr>
<tr>
<div class="patchform patchform-properties">
<h3>Patch Properties</h3>
<form method="post">
+ {% csrf_token %}
<table class="form">
<tr>
<th>Change state:</th>
<td>
<form action="{% url patchwork.views.patch.patch patch_id=patch.id %}"
method="post">
+ {% csrf_token %}
<input type="hidden" name="action" value="act"/>
<input type="submit" value="Ack"/>
</form>
<dd class="errors">{{createbundleform.non_field_errors}}</dd>
{% endif %}
<form method="post">
+ {% csrf_token %}
<input type="hidden" name="action" value="createbundle"/>
{% if createbundleform.name.errors %}
<dd class="errors">{{createbundleform.name.errors}}</dd>
<td>Add to bundle:</td>
<td>
<form method="post">
+ {% csrf_token %}
<input type="hidden" name="action" value="addtobundle"/>
<select name="bundle_id"/>
{% for bundle in bundles %}
<td>
<form action="{% url patchwork.views.patch.patch patch_id=patch.id %}"
method="post">
+ {% csrf_token %}
<input type="hidden" name="action" value="act"/>
<input type="submit" value="Ack"/>
</form>
</div>
</div>
-
-
+{% if patch.pull_url %}
+<h2>Pull-request</h2>
+<a class="patch-pull-url" href="{{patch.pull_url}}"
+ >{{ patch.pull_url }}</a>
+{% endif %}
<h2>Comments</h2>
{% for comment in patch.comments %}
</div>
{% endfor %}
+{% if patch.content %}
<h2>Patch</h2>
<div class="patch">
<pre class="content">
{{ patch|patchsyntax }}
</pre>
</div>
+{% endif %}
+
{% endblock %}