1 {% extends "base.html" %}
7 {% block title %}{{patch.name}}{% endblock %}
8 {% block heading %}{{patch.name}}{%endblock%}
11 <script language="JavaScript" type="text/javascript">
12 function toggle_headers(link_id, headers_id)
14 var link = document.getElementById(link_id)
15 var headers = document.getElementById(headers_id)
17 var hidden = headers.style['display'] == 'none';
20 link.innerHTML = 'hide';
21 headers.style['display'] = 'block';
23 link.innerHTML = 'show';
24 headers.style['display'] = 'none';
30 <table class="patchmeta">
33 <td>{{ patch.submitter|personify }}</td></tr>
37 <td>{{ patch.date }}</td>
41 <td>{{ patch.msgid }}</td>
46 <a href="{% url patchwork.views.patch.mbox patch_id=patch.id %}"
48 <a href="{% url patchwork.views.patch.content patch_id=patch.id %}"
54 <td><a href="{{ patch.get_absolute_url }}">{{ patch.get_absolute_url }}</a>
58 <td>{{ patch.state.name }}{% if patch.archived %}, archived{% endif %}</td>
60 {% if patch.commit_ref %}
63 <td>{{ patch.commit_ref }}</td>
66 {% if patch.delegate %}
68 <th>Delegated to:</td>
69 <td>{{ patch.delegate.get_profile.name }}</td>
74 <td><a id="togglepatchheaders"
75 href="javascript:toggle_headers('togglepatchheaders', 'patchheaders')"
77 <div id="patchheaders" class="patchheaders" style="display:none;">
78 <pre>{{patch.headers}}</pre>
84 <div class="patchforms">
87 <div class="patchform patchform-properties">
88 <h3>Patch Properties</h3>
93 <th>Change state:</th>
96 {{ patchform.state.errors }}
100 <th>Delegate to:</td>
102 {{ patchform.delegate }}
103 {{ patchform.delegate.errors }}
109 {{ patchform.archived }}
110 {{ patchform.archived.errors }}
116 <input type="submit" value="Update">
124 {% if createbundleform %}
125 <div class="patchform patchform-bundle">
132 <form action="{% url patchwork.views.patch.patch patch_id=patch.id %}"
135 <input type="hidden" name="action" value="act"/>
136 <input type="submit" value="Ack"/>
142 <td>Create bundle:</td>
144 {% if createbundleform.non_field_errors %}
145 <dd class="errors">{{createbundleform.non_field_errors}}</dd>
149 <input type="hidden" name="action" value="createbundle"/>
150 {% if createbundleform.name.errors %}
151 <dd class="errors">{{createbundleform.name.errors}}</dd>
153 {{ createbundleform.name }}
154 <input value="Create" type="submit"/>
160 <td>Add to bundle:</td>
164 <input type="hidden" name="action" value="addtobundle"/>
165 <select name="bundle_id"/>
166 {% for bundle in bundles %}
167 <option value="{{bundle.id}}">{{bundle.name}}</option>
170 <input value="Add" type="submit"/>
182 <div class="patchform patchform-actions">
188 <form action="{% url patchwork.views.patch.patch patch_id=patch.id %}"
191 <input type="hidden" name="action" value="act"/>
192 <input type="submit" value="Ack"/>
201 <div style="clear: both;">
209 {% for comment in patch.comments %}
210 <div class="comment">
211 <div class="meta">{{ comment.submitter|personify }} - {{comment.date}}</div>
212 <pre class="content">
213 {{ comment|commentsyntax }}
220 <pre class="content">
221 {{ patch|patchsyntax }}