Skip to content

Commit 92e98e5

Browse files
committed
Formatting
1 parent 467d483 commit 92e98e5

File tree

1 file changed

+79
-79
lines changed

1 file changed

+79
-79
lines changed

pgcommitfest/commitfest/templates/patch.html

Lines changed: 79 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -123,90 +123,90 @@
123123
{% endif %}
124124
</td>
125125
</tr>
126-
<tr>
127-
<th>Emails</th>
128-
<td>
129-
{%if user.is_authenticated%}
130-
<div style="float:right"><button class="btn btn-default" onclick="attachThread({{cf.id}},{{patch.id}})">Attach thread</button></div>
131-
{%else%}
132-
<div style="float:right"><button class="btn btn-default" onclick="location.href='/account/login/?next=/{{cf.id}}/{{patch.id}}/%3Fattachthreadnow'">Attach thread</button></div>
133-
{%endif%}
134-
<dl>
135-
{%for t in patch.mailthread_set.all%}
136-
<dt><a href="https://www.postgresql.org/message-id/flat/{{t.messageid}}">{{t.subject}}</a> <button type="button" class="close close-nofloat" title="Detach this thread" onclick="detachThread({{cf.id}},{{patch.id}},'{{t.messageid}}')">&times;</button></dt>
137-
<dd>
138-
First at <a href="https://www.postgresql.org/message-id/{{t.messageid}}">{{t.firstmessage}}</a> by {{t.firstauthor|hidemail}}<br/>
139-
Latest at <a href="https://www.postgresql.org/message-id/{{t.latestmsgid}}">{{t.latestmessage}}</a> by {{t.latestauthor|hidemail}}<br/>
140-
{%for ta in t.mailthreadattachment_set.all%}
141-
{%if forloop.first%}
142-
Latest attachment (<a href="https://www.postgresql.org/message-id/attachment/{{ta.attachmentid}}/{{ta.filename}}">{{ta.filename}}</a>) at <a href="https://www.postgresql.org/message-id/{{ta.messageid}}">{{ta.date}}</a> from {{ta.author|hidemail}} <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#att{{t.pk}}" title="Show all attachments"><i class="glyphicon glyphicon-plus"></i></button>
143-
<div id="att{{t.pk}}" class="collapse">
144-
{%endif%}
145-
&nbsp;&nbsp;&nbsp;&nbsp;Attachment (<a href="https://www.postgresql.org/message-id/attachment/{{ta.attachmentid}}/{{ta.filename}}">{{ta.filename}}</a>) at <a href="https://www.postgresql.org/message-id/{{ta.messageid}}">{{ta.date}}</a> from {{ta.author|hidemail}} (Patch: {{ta.ispatch|yesno:"Yes,No,Pending check"}})<br/>
146-
{%if forloop.last%}</div>{%endif%}
147-
{%endfor%}
148-
<div>
149-
{%for a in t.mailthreadannotation_set.all%}
126+
<tr>
127+
<th>Emails</th>
128+
<td>
129+
{%if user.is_authenticated%}
130+
<div style="float:right"><button class="btn btn-default" onclick="attachThread({{cf.id}},{{patch.id}})">Attach thread</button></div>
131+
{%else%}
132+
<div style="float:right"><button class="btn btn-default" onclick="location.href='/account/login/?next=/{{cf.id}}/{{patch.id}}/%3Fattachthreadnow'">Attach thread</button></div>
133+
{%endif%}
134+
<dl>
135+
{%for t in patch.mailthread_set.all%}
136+
<dt><a href="https://www.postgresql.org/message-id/flat/{{t.messageid}}">{{t.subject}}</a> <button type="button" class="close close-nofloat" title="Detach this thread" onclick="detachThread({{cf.id}},{{patch.id}},'{{t.messageid}}')">&times;</button></dt>
137+
<dd>
138+
First at <a href="https://www.postgresql.org/message-id/{{t.messageid}}">{{t.firstmessage}}</a> by {{t.firstauthor|hidemail}}<br/>
139+
Latest at <a href="https://www.postgresql.org/message-id/{{t.latestmsgid}}">{{t.latestmessage}}</a> by {{t.latestauthor|hidemail}}<br/>
140+
{%for ta in t.mailthreadattachment_set.all%}
150141
{%if forloop.first%}
151-
<h4>Annotations</h4>
152-
<table class="table table-bordered table-striped table-condensed small">
153-
<thead>
154-
<tr>
155-
<th>When</th>
156-
<th>Who</th>
157-
<th>Mail</th>
158-
<th>Annotation</th>
159-
</tr>
160-
</thead>
161-
<tbody>
162-
{%endif%}
163-
<tr>
164-
<td>{{a.date}}</td>
165-
<td style="white-space: nowrap">{{a.user_string}}</td>
166-
<td style="white-space: nowrap">From {{a.mailauthor}}<br/>at <a href="https://www.postgresql.org/message-id/{{a.msgid}}">{{a.maildate}}</a></td>
167-
<td width="99%">{{a.annotationtext}} <button type="button" class="close" title="Delete this annotation" onclick="deleteAnnotation({{a.id}})">&times;</button></td>
168-
</tr>
169-
{%if forloop.last%}
170-
</body>
171-
</table>
142+
Latest attachment (<a href="https://www.postgresql.org/message-id/attachment/{{ta.attachmentid}}/{{ta.filename}}">{{ta.filename}}</a>) at <a href="https://www.postgresql.org/message-id/{{ta.messageid}}">{{ta.date}}</a> from {{ta.author|hidemail}} <button type="button" class="btn btn-default btn-xs" data-toggle="collapse" data-target="#att{{t.pk}}" title="Show all attachments"><i class="glyphicon glyphicon-plus"></i></button>
143+
<div id="att{{t.pk}}" class="collapse">
172144
{%endif%}
145+
&nbsp;&nbsp;&nbsp;&nbsp;Attachment (<a href="https://www.postgresql.org/message-id/attachment/{{ta.attachmentid}}/{{ta.filename}}">{{ta.filename}}</a>) at <a href="https://www.postgresql.org/message-id/{{ta.messageid}}">{{ta.date}}</a> from {{ta.author|hidemail}} (Patch: {{ta.ispatch|yesno:"Yes,No,Pending check"}})<br/>
146+
{%if forloop.last%}</div>{%endif%}
173147
{%endfor%}
174-
{%if user.is_authenticated%}<button class="btn btn-xs btn-default" onclick="addAnnotation({{t.id}})">Add annotation</button>{%endif%}
175-
</div>
176-
</dd>
177-
{%endfor%}
178-
</dl>
179-
</td>
180-
</tr>
181-
<tr>
182-
<th>History</th>
183-
<td>
184-
<div style="max-height: 200px; overflow-y: scroll;">
185-
<table class="table table-bordered table-striped table-condensed">
186-
<thead>
187-
<tr>
188-
<th>When</th>
189-
<th>Who</th>
190-
<th>What</th>
191-
</tr>
192-
</thead>
193-
<tbody>
194-
{%for h in patch.history %}
148+
<div>
149+
{%for a in t.mailthreadannotation_set.all%}
150+
{%if forloop.first%}
151+
<h4>Annotations</h4>
152+
<table class="table table-bordered table-striped table-condensed small">
153+
<thead>
154+
<tr>
155+
<th>When</th>
156+
<th>Who</th>
157+
<th>Mail</th>
158+
<th>Annotation</th>
159+
</tr>
160+
</thead>
161+
<tbody>
162+
{%endif%}
163+
<tr>
164+
<td>{{a.date}}</td>
165+
<td style="white-space: nowrap">{{a.user_string}}</td>
166+
<td style="white-space: nowrap">From {{a.mailauthor}}<br/>at <a href="https://www.postgresql.org/message-id/{{a.msgid}}">{{a.maildate}}</a></td>
167+
<td width="99%">{{a.annotationtext}} <button type="button" class="close" title="Delete this annotation" onclick="deleteAnnotation({{a.id}})">&times;</button></td>
168+
</tr>
169+
{%if forloop.last%}
170+
</body>
171+
</table>
172+
{%endif%}
173+
{%endfor%}
174+
{%if user.is_authenticated%}<button class="btn btn-xs btn-default" onclick="addAnnotation({{t.id}})">Add annotation</button>{%endif%}
175+
</div>
176+
</dd>
177+
{%endfor%}
178+
</dl>
179+
</td>
180+
</tr>
181+
<tr>
182+
<th>History</th>
183+
<td>
184+
<div style="max-height: 200px; overflow-y: scroll;">
185+
<table class="table table-bordered table-striped table-condensed">
186+
<thead>
195187
<tr>
196-
<td style="white-space: nowrap;">{{h.date}}</td>
197-
<td style="white-space: nowrap;">{{h.by_string}}</td>
198-
<td width="99%">{{h.what}}</td>
188+
<th>When</th>
189+
<th>Who</th>
190+
<th>What</th>
199191
</tr>
200-
{%endfor%}
201-
</tbody>
202-
</table>
203-
</div>
204-
{%if user.is_authenticated%}
205-
<a href="{{is_subscribed|yesno:"unsubscribe,subscribe"}}/" class="btn btn-default">{{is_subscribed|yesno:"Unsubscribe from patch update emails,Subscribe to patch update emails"}}</a>
206-
{%endif%}
207-
</td>
208-
</tr>
209-
</tbody>
192+
</thead>
193+
<tbody>
194+
{%for h in patch.history %}
195+
<tr>
196+
<td style="white-space: nowrap;">{{h.date}}</td>
197+
<td style="white-space: nowrap;">{{h.by_string}}</td>
198+
<td width="99%">{{h.what}}</td>
199+
</tr>
200+
{%endfor%}
201+
</tbody>
202+
</table>
203+
</div>
204+
{%if user.is_authenticated%}
205+
<a href="{{is_subscribed|yesno:"unsubscribe,subscribe"}}/" class="btn btn-default">{{is_subscribed|yesno:"Unsubscribe from patch update emails,Subscribe to patch update emails"}}</a>
206+
{%endif%}
207+
</td>
208+
</tr>
209+
</tbody>
210210
</table>
211211

212212
<div class="dropup" >

0 commit comments

Comments
 (0)