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 {% if patch.content %}|
49 <a href="{% url patchwork.views.patch.content patch_id=patch.id %}"
56 <td><a href="{{ patch.get_absolute_url }}">{{ patch.get_absolute_url }}</a>
60 <td>{{ patch.state.name }}{% if patch.archived %}, archived{% endif %}</td>
62 {% if patch.commit_ref %}
65 <td>{{ patch.commit_ref }}</td>
68 {% if patch.delegate %}
70 <th>Delegated to:</td>
71 <td>{{ patch.delegate.get_profile.name }}</td>
76 <td><a id="togglepatchheaders"
77 href="javascript:toggle_headers('togglepatchheaders', 'patchheaders')"
79 <div id="patchheaders" class="patchheaders" style="display:none;">
80 <pre>{{patch.headers}}</pre>
86 <div class="patchforms">
89 <div class="patchform patchform-properties">
90 <h3>Patch Properties</h3>
95 <th>Change state:</th>
98 {{ patchform.state.errors }}
102 <th>Delegate to:</td>
104 {{ patchform.delegate }}
105 {{ patchform.delegate.errors }}
111 {{ patchform.archived }}
112 {{ patchform.archived.errors }}
118 <input type="submit" value="Update">
126 {% if createbundleform %}
127 <div class="patchform patchform-bundle">
134 <form action="{% url patchwork.views.patch.patch patch_id=patch.id %}"
137 <input type="hidden" name="action" value="act"/>
138 <input type="submit" value="Ack"/>
144 <td>Create bundle:</td>
146 {% if createbundleform.non_field_errors %}
147 <dd class="errors">{{createbundleform.non_field_errors}}</dd>
151 <input type="hidden" name="action" value="createbundle"/>
152 {% if createbundleform.name.errors %}
153 <dd class="errors">{{createbundleform.name.errors}}</dd>
155 {{ createbundleform.name }}
156 <input value="Create" type="submit"/>
162 <td>Add to bundle:</td>
166 <input type="hidden" name="action" value="addtobundle"/>
167 <select name="bundle_id"/>
168 {% for bundle in bundles %}
169 <option value="{{bundle.id}}">{{bundle.name}}</option>
172 <input value="Add" type="submit"/>
184 <div class="patchform patchform-actions">
190 <form action="{% url patchwork.views.patch.patch patch_id=patch.id %}"
193 <input type="hidden" name="action" value="act"/>
194 <input type="submit" value="Ack"/>
203 <div style="clear: both;">
207 {% if patch.pull_url %}
208 <h2>Pull-request</h2>
209 <a class="patch-pull-url" href="{{patch.pull_url}}"
210 >{{ patch.pull_url }}</a>
214 {% for comment in patch.comments %}
215 <div class="comment">
216 <div class="meta">{{ comment.submitter|personify }} - {{comment.date}}</div>
217 <pre class="content">
218 {{ comment|commentsyntax }}
223 {% if patch.content %}
226 <pre class="content">
227 {{ patch|patchsyntax }}