Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 {% extends "base.html" %} | 1 {% extends "base.html" %} |
| 2 | 2 |
| 3 {% block content %} | 3 {% block content %} |
| 4 <script type="text/javascript"> | 4 <script type="text/javascript"> |
| 5 window.onload=function() { | 5 window.onload=function() { |
| 6 document.add_new_message.message.focus(); | 6 document.add_new_message.message.focus(); |
| 7 } | 7 } |
| 8 </script> | 8 </script> |
| 9 <center> | 9 <center> |
| 10 {% if write_access %} | 10 {% if write_access %} |
| 11 {% if error_message %} | 11 {% if error_message %} |
| 12 <div class="error"> | 12 <div class="error"> |
| 13 {{ error_message }} | 13 {{ error_message }} |
| 14 </div> | 14 </div> |
| 15 {% endif %} | 15 {% endif %} |
| 16 <form action="/" name="add_new_message" method="post"> | 16 <form action="/" name="add_new_message" method="post"> |
| 17 <input type="text" size="80" name="message" value="{{ message }}"> | 17 <input type="text" size="80" name="message" value="{{ message }}"> |
| 18 <input type="hidden" name="last_status_key" value="{{ last_status_key }}"> | 18 <input type="hidden" name="last_status_key" value="{{ last_status_key }}"> |
| 19 <input type="submit" name="change" value="Change"> | 19 <input type="submit" name="change" value="Change"> |
| 20 <input type="button" name="refresh" value="Refresh" onclick="location.href ='/';"> | 20 <input type="button" name="refresh" value="Refresh" onclick="location.href ='/';"> |
| 21 <input type="button" name="history" value="History" onclick="location.href ='/status_viewer';"> | 21 <input type="button" name="history" value="History" onclick="location.href ='/status_viewer';"> |
| 22 </form> | 22 </form> |
| 23 {% endif %} | 23 {% endif %} |
| 24 <br><br> | 24 <br><br> |
| 25 <h2>Last 25 {{ title }}</h2> | 25 <h2>Last 25 {{ title }}</h2> |
| 26 <table border="1" cellpadding="5"> | 26 <table border="1" cellpadding="5"> |
| 27 <tr bgcolor="#CCCCFF"> | 27 <tr bgcolor="#CCCCFF"> |
| 28 <td><b>Who</b></td> | 28 <td><b>Who</b></td> |
| 29 <td><b>When</b></td> | 29 <td><b>When (UTC)</b></td> |
|
cmp
2013/11/02 22:46:55
We want this to be local time for people rather th
vapier
2013/11/02 22:48:36
yeah, i agree with that entirely. i've been ponde
vapier
2013/11/03 18:17:16
in looking at docs online, i don't think this can
cmp
2013/11/03 19:34:50
We'll end up wanting to implement it on the server
| |
| 30 <td><b>Message</b></td> | 30 <td><b>Message</b></td> |
| 31 </tr> | 31 </tr> |
| 32 {% for a_status in status %} | 32 {% for a_status in status %} |
| 33 <tr class="{{ a_status.general_state }}"> | 33 <tr class="{{ a_status.general_state }}"> |
| 34 <td>{{ a_status.username }}</td> | 34 <td class="username">{{ a_status.username }}</td> |
| 35 <td>{{ a_status.date|date:"D M d, H:i T " }}</td> | 35 <td class="date">{{ a_status.date|date:"D, d M H:i" }}</td> |
| 36 <td>{{ a_status.message }}</td> | 36 <td class="message">{{ a_status.message }}</td> |
| 37 </tr> | 37 </tr> |
| 38 {% endfor %} | 38 {% endfor %} |
| 39 | 39 |
| 40 </table> | 40 </table> |
| 41 </center> | 41 </center> |
| 42 {% endblock %} | 42 {% endblock %} |
| OLD | NEW |