Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 {% extends "base.html" %} | 1 {% extends "base.html" %} |
| 2 | 2 |
| 3 {% block extra_head %} | |
| 4 <script src="js/main/main.js"></script> | |
| 5 {% endblock %} | |
| 6 | |
| 3 {% block content %} | 7 {% block content %} |
| 4 <script type="text/javascript"> | 8 <!-- Keep in sync with status.py:Status.general_state() logic --> |
| 5 window.onload=function() { | 9 <div id="help" class="help" hidden> |
| 6 document.add_new_message.message.focus(); | 10 The message is scanned for partial matches (in the order listed)<br> |
|
szager1
2013/12/05 20:47:48
"partial matches" sounds weird. How about "keywor
vapier
2013/12/05 21:02:45
"keywords" to me indicates word boundaries, and th
| |
| 7 } | 11 and will set the tree state accordingly. The scan order does <b>not</b><br> |
| 8 </script> | 12 correspond to the severity of the tree state.<br> |
| 13 <br> | |
| 14 (1) "<span class="maintenance">maint</span>": The tree is closed for | |
| 15 maintenance<br> | |
| 16 (also needs to have the text | |
| 17 "close")<br> | |
| 18 (2) "<span class="throttled">throt</span>": The tree is throttled; | |
| 19 tread carefully<br> | |
| 20 (3) "<span class="closed">close</span>": The tree is closed<br> | |
| 21 (4) Otherwise, the tree is <span class="open">open</span> for business | |
| 22 </div> | |
| 23 | |
| 9 <center> | 24 <center> |
| 10 {% if write_access %} | 25 {% if write_access %} |
| 11 {% if error_message %} | 26 {% if error_message %} |
| 12 <div class="error"> | 27 <div class="error"> |
| 13 {{ error_message }} | 28 {{ error_message }} |
| 14 </div> | 29 </div> |
| 15 {% endif %} | 30 {% endif %} |
| 16 <form action="/" name="add_new_message" method="post"> | 31 <form action="/" name="add_new_message" method="post"> |
| 17 <input type="text" size="80" name="message" value="{{ message }}"> | 32 <textarea cols="80" rows="2" name="message" |
| 33 style="vertical-align: middle;">{{ message }}</textarea> | |
| 18 <input type="hidden" name="last_status_key" value="{{ last_status_key }}"> | 34 <input type="hidden" name="last_status_key" value="{{ last_status_key }}"> |
| 19 <input type="submit" name="change" value="Change"> | 35 <input type="submit" name="change" value="Change"> |
| 20 <input type="button" name="refresh" value="Refresh" onclick="location.href ='/';"> | 36 <input type="button" name="refresh" value="Refresh" onclick="location.href ='/';"> |
| 21 <input type="button" name="history" value="History" onclick="location.href ='/status_viewer';"> | 37 <input type="button" name="history" value="History" onclick="location.href ='/status_viewer';"> |
| 22 </form> | 38 </form> |
| 23 {% endif %} | 39 {% endif %} |
| 24 <br> | 40 <br> |
| 25 <h2>Last <a href="?limit={{ limit }}">{{ limit }}</a> {{ title }}</h2> | 41 <h2>Last <a href="?limit={{ limit }}">{{ limit }}</a> {{ title }}</h2> |
| 26 <table border="1" cellpadding="5"> | 42 <table border="1" cellpadding="5"> |
| 27 <tr bgcolor="#CCCCFF"> | 43 <tr bgcolor="#CCCCFF"> |
| 28 <td><b>Who</b></td> | 44 <td><b>Who</b></td> |
| 29 <td><b>When (UTC)</b></td> | 45 <td><b>When (UTC)</b></td> |
| 30 <td><b>Message</b></td> | 46 <td><b>Message</b></td> |
| 31 </tr> | 47 </tr> |
| 32 {% for a_status in status %} | 48 {% for a_status in status %} |
| 33 <tr class="{{ a_status.general_state }}"> | 49 <tr class="{{ a_status.general_state }}"> |
| 34 <td class="username">{{ a_status.username }}</td> | 50 <td class="username">{{ a_status.username }}</td> |
| 35 <td class="date">{{ a_status.date|date:"D, d M H:i" }}</td> | 51 <td class="date">{{ a_status.date|date:"D, d M H:i" }}</td> |
| 36 <td class="message">{{ a_status.message }}</td> | 52 <td class="message">{{ a_status.message }}</td> |
| 37 </tr> | 53 </tr> |
| 38 {% endfor %} | 54 {% endfor %} |
| 39 | 55 |
| 40 </table> | 56 </table> |
| 41 </center> | 57 </center> |
| 42 {% endblock %} | 58 {% endblock %} |
| OLD | NEW |