| Left: | ||
| Right: |
| OLD | NEW |
|---|---|
| 1 {%extends "issue_base.html"%} | 1 {%extends "issue_base.html"%} |
| 2 | 2 |
| 3 {%block head%}{{form.media}}{%endblock%} | 3 {%block head%}{{form.media}}{%endblock%} |
| 4 {%block issue_body%} | 4 {%block issue_body%} |
| 5 {%if issue.draft_count or has_draft_message%} | 5 {%if issue.draft_count or has_draft_message%} |
| 6 <div class="error"> | 6 <div class="error"> |
| 7 You have {%if issue.draft_count%}<b>{{issue.draft_count}} draft</b> | 7 You have {%if issue.draft_count%}<b>{{issue.draft_count}} draft</b> |
| 8 comment{{issue.draft_count|pluralize}}{%endif%} | 8 comment{{issue.draft_count|pluralize}}{%endif%} |
| 9 {%if has_draft_message%}{%if issue.draft_count%}and {%endif%}a draft | 9 {%if has_draft_message%}{%if issue.draft_count%}and {%endif%}a draft |
| 10 message{%endif%}. | 10 message{%endif%}. |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 111 <div id="messages"> | 111 <div id="messages"> |
| 112 <div style="margin-bottom: .5em;"> | 112 <div style="margin-bottom: .5em;"> |
| 113 <a href="javascript:M_showAllComments('cl', {{messages|length}})"> | 113 <a href="javascript:M_showAllComments('cl', {{messages|length}})"> |
| 114 Expand All Messages</a> | 114 Expand All Messages</a> |
| 115 | | 115 | |
| 116 <a href="javascript:M_hideAllComments('cl', {{messages|length}})"> | 116 <a href="javascript:M_hideAllComments('cl', {{messages|length}})"> |
| 117 Collapse All Messages</a> | 117 Collapse All Messages</a> |
| 118 </div> | 118 </div> |
| 119 | 119 |
| 120 {%for message in messages%} | 120 {%for message in messages%} |
| 121 <div class="message {%if message.issue_was_closed%}issue_was_closed{%endif %} {%if message.approval%}approval{%endif%} {%if message.disapproval%}disapprova l{%endif%}" | 121 <div class="message{%if message.issue_was_closed%} issue_was_closed{%endif %}{%if message.approval%} approval{%endif%}{%if message.disapproval%} disapprova l{%endif%}{%for flag in message.flags%} flag_{{flag}}{%endfor%}" |
| M-A 2013/02/28 17:50:36 Did you use an automatic formatting tool or you di iannucci 2013/03/01 00:05:01 I did this on purpose. It cleans up some weird ext | |
| 122 id="msg{{forloop.counter}}" | 122 id="msg{{forloop.counter}}" |
| 123 name="{{forloop.counter0}}"> | 123 name="{{forloop.counter0}}"> |
| 124 <div class="header"> | 124 <div class="header"> |
| 125 <table border="0" width="100%" cellspacing="0" cellpadding="0"> | 125 <table border="0" width="100%" cellspacing="0" cellpadding="0"> |
| 126 <tr class="comment_title" | 126 <tr class="comment_title" |
| 127 onclick="M_switchChangelistComment({{forloop.counter0}})"> | 127 onclick="M_switchChangelistComment({{forloop.counter0}})"> |
| 128 <td style="padding-left: 5px; white-space: nowrap;"> | 128 <td style="padding-left: 5px; white-space: nowrap;"> |
| 129 <b>{%nickname message.sender%}</b> | 129 <b>{%nickname message.sender%}</b> |
| 130 </td> | 130 </td> |
| 131 <td width="100%" style="overflow:hidden;"> | 131 <td width="100%" style="overflow:hidden;"> |
| 132 <table style="table-layout:fixed; white-space: nowrap;" | 132 <table style="table-layout:fixed; white-space: nowrap;" |
| 133 width="100%"> | 133 width="100%"> |
| 134 <tr> | 134 <tr> |
| 135 <td> | 135 <td> |
| 136 <span style="white-space: nowrap; overflow: hidden;{%if fo rloop.last%} display: none;{%endif%}" | 136 <span style="white-space: nowrap; overflow: hidden;{%if fo rloop.last%} display: none;{%endif%}" |
| 137 class="extra" | 137 class="extra" |
| 138 id="cl-preview-{{forloop.counter0}}"> | 138 id="cl-preview-{{forloop.counter0}}"> |
| 139 {{message.text|truncatewords:15}} | 139 {{message.text|truncatewords:15}} |
| 140 </span> | 140 </span> |
| 141 </td> | 141 </td> |
| 142 </tr> | 142 </tr> |
| 143 </table> | 143 </table> |
| 144 </td> | 144 </td> |
| 145 <td align="right" | 145 <td align="right" |
| 146 style="white-space: nowrap; padding-right: 5px; padding-left: 3px;"> | 146 style="white-space: nowrap; padding-right: 5px; padding-left: 3px;"> |
| 147 {% for flag in message.flags %} | |
| 148 <img src="/static/{{flag}}.png" title="This message was {{flag }}." | |
| 149 style="vertical-align: top;" /> | |
| 150 {% endfor %} | |
| 147 {{message.date|timesince}} ago | 151 {{message.date|timesince}} ago |
| 148 <a href="#msg{{forloop.counter}}">#{{forloop.counter}}</a> | 152 <a href="#msg{{forloop.counter}}">#{{forloop.counter}}</a> |
| 149 </td> | 153 </td> |
| 150 </tr> | 154 </tr> |
| 151 </table> | 155 </table> |
| 152 </div> | 156 </div> |
| 153 | 157 |
| 154 <div id="cl-comment-{{forloop.counter0}}" | 158 <div id="cl-comment-{{forloop.counter0}}" |
| 155 {%if forloop.last%}{%else%}style="display: none;"{%endif%}> | 159 {%if forloop.last%}{%else%}style="display: none;"{%endif%}> |
| 156 <div class="message-body"> | 160 <div class="message-body"> |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 206 <div style="display:none;"> | 210 <div style="display:none;"> |
| 207 <form method="POST" action="{%url codereview.views.publish issue.key.id%}" | 211 <form method="POST" action="{%url codereview.views.publish issue.key.id%}" |
| 208 id="message-reply-form"> | 212 id="message-reply-form"> |
| 209 <input type="hidden" name="xsrf_token" value="{{xsrf_token}}"> | 213 <input type="hidden" name="xsrf_token" value="{{xsrf_token}}"> |
| 210 <div></div> | 214 <div></div> |
| 211 <input type="hidden" name="in_reply_to" value="" /> | 215 <input type="hidden" name="in_reply_to" value="" /> |
| 212 <input type="hidden" name="subject" value="{{issue.subject}}" /> | 216 <input type="hidden" name="subject" value="{{issue.subject}}" /> |
| 213 <input type="hidden" name="message_only" value="1" /> | 217 <input type="hidden" name="message_only" value="1" /> |
| 214 <input type="submit" value="Send Message" /> | 218 <input type="submit" value="Send Message" /> |
| 215 <input type="button" value="Discard" name="discard" /> | 219 <input type="button" value="Discard" name="discard" /> |
| 216 <input type="checkbox" name="send_mail" value="1" | 220 <input type="checkbox" name="send_mail" value="1" |
| 217 id="message-reply-send-mail" checked="checked" /> | 221 id="message-reply-send-mail" checked="checked" /> |
| 218 <label for="message-reply-send-mail">Send mail to reviewers</label> | 222 <label for="message-reply-send-mail">Send mail to reviewers</label> |
| 219 <input type="hidden" name="add_as_reviewer" value="0" /> | 223 <input type="hidden" name="add_as_reviewer" value="0" /> |
| 220 <input type="checkbox" name="add_as_reviewer" value="1" | 224 <input type="checkbox" name="add_as_reviewer" value="1" |
| 221 id="message-reply-add-as-reviewer" /> | 225 id="message-reply-add-as-reviewer" /> |
| 222 <label for="message-reply-add-as-reviewer"> | 226 <label for="message-reply-add-as-reviewer"> |
| 223 Add yourself as a reviewer</label> | 227 Add yourself as a reviewer</label> |
| 224 </form> | 228 </form> |
| 225 </div> | 229 </div> |
| 226 <a id="resizer" class="resizer" style="display:none;cursor:pointer"> | 230 <a id="resizer" class="resizer" style="display:none;cursor:pointer"> |
| 227 <img src="{{media_url}}zippyplus.gif"> | 231 <img src="{{media_url}}zippyplus.gif"> |
| 228 </a> | 232 </a> |
| 229 | 233 |
| 230 <!-- Popup display to add and remove trybots from last patchset --> | 234 <!-- Popup display to add and remove trybots from last patchset --> |
| 231 <div id="trybot-popup" style="display:none;"> | 235 <div id="trybot-popup" style="display:none;"> |
| 232 <form method="POST" action="" id="trybotform"> | 236 <form method="POST" action="" id="trybotform"> |
| 233 <input type="hidden" name="xsrf_token" value="{{xsrf_token}}"/> | 237 <input type="hidden" name="xsrf_token" value="{{xsrf_token}}"/> |
| 234 <div class="trybot-popup-column"> | 238 <div class="trybot-popup-column"> |
| 235 {%for builder in default_builders%} | 239 {%for builder in default_builders%} |
| 236 <div class="trybot-popup-input"> | 240 <div class="trybot-popup-input"> |
| 237 <input type="checkbox" name="{{builder}}" id="cb_{{builder}}" | 241 <input type="checkbox" name="{{builder}}" id="cb_{{builder}}" |
| 238 checked="checked">{{builder}}</input> | 242 checked="checked">{{builder}}</input> |
| 239 </div> | 243 </div> |
| 240 {%cycle '' '' '' '' '' '' '</div><div class="trybot-popup-column">'%} | 244 {%cycle '' '' '' '' '' '' '</div><div class="trybot-popup-column">'%} |
| 241 {%endfor%} | 245 {%endfor%} |
| 242 </div> | 246 </div> |
| 243 <div style="clear: both;"/> | 247 <div style="clear: both;"/> |
| 244 <div class="trybot-button-div"> | 248 <div class="trybot-button-div"> |
| 245 <input type="button" value="Update" | 249 <input type="button" value="Update" |
| 246 onclick="M_updatePendingTrybots('{{issue.key.id}}', '{{last_patch set.key.id}}', '{{xsrf_token}}')"/> | 250 onclick="M_updatePendingTrybots('{{issue.key.id}}', '{{last_patch set.key.id}}', '{{xsrf_token}}')"/> |
| 247 <input type="button" value="Close" | 251 <input type="button" value="Close" |
| 248 onclick="M_closePendingTrybots()"/> | 252 onclick="M_closePendingTrybots()"/> |
| 249 </div> | 253 </div> |
| 250 </form> | 254 </form> |
| 251 </div> | 255 </div> |
| 252 {%endif%} | 256 {%endif%} |
| 253 | 257 |
| 254 {%endblock issue_body%} | 258 {%endblock issue_body%} |
| OLD | NEW |