|
115 | 115 | {% endif %}
|
116 | 116 | </td>
|
117 | 117 | </tr>
|
118 |
| - <tr> |
119 |
| - <th>Emails</th> |
120 |
| - <td> |
121 |
| - {%if user.is_authenticated%} |
122 |
| - <div style="float:right"><button class="btn btn-default" onclick="attachThread({{cf.id}},{{patch.id}})">Attach thread</button></div> |
123 |
| - {%else%} |
124 |
| - <div style="float:right"><button class="btn btn-default" onclick="location.href='/account/login/?next=/{{cf.id}}/{{patch.id}}/%3Fattachthreadnow'">Attach thread</button></div> |
125 |
| - {%endif%} |
126 |
| - <dl> |
127 |
| - {%for t in patch.mailthread_set.all%} |
128 |
| - <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}}')">×</button></dt> |
129 |
| - <dd> |
130 |
| - First at <a href="https://www.postgresql.org/message-id/{{t.messageid}}">{{t.firstmessage}}</a> by {{t.firstauthor|hidemail}}<br/> |
131 |
| - Latest at <a href="https://www.postgresql.org/message-id/{{t.latestmsgid}}">{{t.latestmessage}}</a> by {{t.latestauthor|hidemail}}<br/> |
132 |
| - {%for ta in t.mailthreadattachment_set.all%} |
133 |
| - {%if forloop.first%} |
134 |
| - 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> |
135 |
| - <div id="att{{t.pk}}" class="collapse"> |
136 |
| - {%endif%} |
137 |
| - 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/> |
138 |
| - {%if forloop.last%}</div>{%endif%} |
139 |
| - {%endfor%} |
140 |
| - <div> |
141 |
| - {%for a in t.mailthreadannotation_set.all%} |
| 118 | + <tr> |
| 119 | + <th>Emails</th> |
| 120 | + <td> |
| 121 | + {%if user.is_authenticated%} |
| 122 | + <div style="float:right"><button class="btn btn-default" onclick="attachThread({{cf.id}},{{patch.id}})">Attach thread</button></div> |
| 123 | + {%else%} |
| 124 | + <div style="float:right"><button class="btn btn-default" onclick="location.href='/account/login/?next=/{{cf.id}}/{{patch.id}}/%3Fattachthreadnow'">Attach thread</button></div> |
| 125 | + {%endif%} |
| 126 | + <dl> |
| 127 | + {%for t in patch.mailthread_set.all%} |
| 128 | + <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}}')">×</button></dt> |
| 129 | + <dd> |
| 130 | + First at <a href="https://www.postgresql.org/message-id/{{t.messageid}}">{{t.firstmessage}}</a> by {{t.firstauthor|hidemail}}<br/> |
| 131 | + Latest at <a href="https://www.postgresql.org/message-id/{{t.latestmsgid}}">{{t.latestmessage}}</a> by {{t.latestauthor|hidemail}}<br/> |
| 132 | + {%for ta in t.mailthreadattachment_set.all%} |
142 | 133 | {%if forloop.first%}
|
143 |
| - <h4>Annotations</h4> |
144 |
| - <table class="table table-bordered table-striped table-condensed small"> |
145 |
| - <thead> |
146 |
| - <tr> |
147 |
| - <th>When</th> |
148 |
| - <th>Who</th> |
149 |
| - <th>Mail</th> |
150 |
| - <th>Annotation</th> |
151 |
| - </tr> |
152 |
| - </thead> |
153 |
| - <tbody> |
154 |
| - {%endif%} |
155 |
| - <tr> |
156 |
| - <td>{{a.date}}</td> |
157 |
| - <td style="white-space: nowrap">{{a.user_string}}</td> |
158 |
| - <td style="white-space: nowrap">From {{a.mailauthor}}<br/>at <a href="https://www.postgresql.org/message-id/{{a.msgid}}">{{a.maildate}}</a></td> |
159 |
| - <td width="99%">{{a.annotationtext}} <button type="button" class="close" title="Delete this annotation" onclick="deleteAnnotation({{a.id}})">×</button></td> |
160 |
| - </tr> |
161 |
| - {%if forloop.last%} |
162 |
| - </body> |
163 |
| - </table> |
| 134 | + 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> |
| 135 | + <div id="att{{t.pk}}" class="collapse"> |
164 | 136 | {%endif%}
|
| 137 | + 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/> |
| 138 | + {%if forloop.last%}</div>{%endif%} |
165 | 139 | {%endfor%}
|
166 |
| - {%if user.is_authenticated%}<button class="btn btn-xs btn-default" onclick="addAnnotation({{t.id}})">Add annotation</button>{%endif%} |
167 |
| - </div> |
168 |
| - </dd> |
169 |
| - {%endfor%} |
170 |
| - </dl> |
171 |
| - </td> |
172 |
| - </tr> |
173 |
| - <tr> |
174 |
| - <th>History</th> |
175 |
| - <td> |
176 |
| - <div style="max-height: 200px; overflow-y: scroll;"> |
177 |
| - <table class="table table-bordered table-striped table-condensed"> |
178 |
| - <thead> |
179 |
| - <tr> |
180 |
| - <th>When</th> |
181 |
| - <th>Who</th> |
182 |
| - <th>What</th> |
183 |
| - </tr> |
184 |
| - </thead> |
185 |
| - <tbody> |
186 |
| - {%for h in patch.history %} |
| 140 | + <div> |
| 141 | + {%for a in t.mailthreadannotation_set.all%} |
| 142 | + {%if forloop.first%} |
| 143 | + <h4>Annotations</h4> |
| 144 | + <table class="table table-bordered table-striped table-condensed small"> |
| 145 | + <thead> |
| 146 | + <tr> |
| 147 | + <th>When</th> |
| 148 | + <th>Who</th> |
| 149 | + <th>Mail</th> |
| 150 | + <th>Annotation</th> |
| 151 | + </tr> |
| 152 | + </thead> |
| 153 | + <tbody> |
| 154 | + {%endif%} |
| 155 | + <tr> |
| 156 | + <td>{{a.date}}</td> |
| 157 | + <td style="white-space: nowrap">{{a.user_string}}</td> |
| 158 | + <td style="white-space: nowrap">From {{a.mailauthor}}<br/>at <a href="https://www.postgresql.org/message-id/{{a.msgid}}">{{a.maildate}}</a></td> |
| 159 | + <td width="99%">{{a.annotationtext}} <button type="button" class="close" title="Delete this annotation" onclick="deleteAnnotation({{a.id}})">×</button></td> |
| 160 | + </tr> |
| 161 | + {%if forloop.last%} |
| 162 | + </body> |
| 163 | + </table> |
| 164 | + {%endif%} |
| 165 | + {%endfor%} |
| 166 | + {%if user.is_authenticated%}<button class="btn btn-xs btn-default" onclick="addAnnotation({{t.id}})">Add annotation</button>{%endif%} |
| 167 | + </div> |
| 168 | + </dd> |
| 169 | + {%endfor%} |
| 170 | + </dl> |
| 171 | + </td> |
| 172 | + </tr> |
| 173 | + <tr> |
| 174 | + <th>History</th> |
| 175 | + <td> |
| 176 | + <div style="max-height: 200px; overflow-y: scroll;"> |
| 177 | + <table class="table table-bordered table-striped table-condensed"> |
| 178 | + <thead> |
187 | 179 | <tr>
|
188 |
| - <td style="white-space: nowrap;">{{h.date}}</td> |
189 |
| - <td style="white-space: nowrap;">{{h.by_string}}</td> |
190 |
| - <td width="99%">{{h.what}}</td> |
| 180 | + <th>When</th> |
| 181 | + <th>Who</th> |
| 182 | + <th>What</th> |
191 | 183 | </tr>
|
192 |
| - {%endfor%} |
193 |
| - </tbody> |
194 |
| - </table> |
195 |
| - </div> |
196 |
| - {%if user.is_authenticated%} |
197 |
| - <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> |
198 |
| - {%endif%} |
199 |
| - </td> |
200 |
| - </tr> |
201 |
| - </tbody> |
| 184 | + </thead> |
| 185 | + <tbody> |
| 186 | + {%for h in patch.history %} |
| 187 | + <tr> |
| 188 | + <td style="white-space: nowrap;">{{h.date}}</td> |
| 189 | + <td style="white-space: nowrap;">{{h.by_string}}</td> |
| 190 | + <td width="99%">{{h.what}}</td> |
| 191 | + </tr> |
| 192 | + {%endfor%} |
| 193 | + </tbody> |
| 194 | + </table> |
| 195 | + </div> |
| 196 | + {%if user.is_authenticated%} |
| 197 | + <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> |
| 198 | + {%endif%} |
| 199 | + </td> |
| 200 | + </tr> |
| 201 | + </tbody> |
202 | 202 | </table>
|
203 | 203 |
|
204 | 204 | <div class="dropup" >
|
|
0 commit comments