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">
131 <td>Create bundle:</td>
133 {% if createbundleform.non_field_errors %}
134 <dd class="errors">{{createbundleform.non_field_errors}}</dd>
138 <input type="hidden" name="action" value="createbundle"/>
139 {% if createbundleform.name.errors %}
140 <dd class="errors">{{createbundleform.name.errors}}</dd>
142 {{ createbundleform.name }}
143 <input value="Create" type="submit"/>
149 <td>Add to bundle:</td>
153 <input type="hidden" name="action" value="addtobundle"/>
154 <select name="bundle_id"/>
155 {% for bundle in bundles %}
156 <option value="{{bundle.id}}">{{bundle.name}}</option>
159 <input value="Add" type="submit"/>
170 <div style="clear: both;">
174 {% if patch.pull_url %}
175 <h2>Pull-request</h2>
176 <a class="patch-pull-url" href="{{patch.pull_url}}"
177 >{{ patch.pull_url }}</a>
181 {% for comment in patch.comments %}
182 <div class="comment">
183 <div class="meta">{{ comment.submitter|personify }} - {{comment.date}}</div>
184 <pre class="content">
185 {{ comment|commentsyntax }}
190 {% if patch.content %}
193 <pre class="content">
194 {{ patch|patchsyntax }}