<h2><!--~id unset {~-->Add a new page<!--~}~--><!--~id {~-->Edit page "~title html~"<!--~}~--></h2>
+ <!--~archived_versions {~-->
+ <p><a href="admin_pages?history_page_id=~id~">View archived versions of this page</a></p>
+ <!--~}~-->
+
<form action="admin_pages" method="post"><!--~id {~--><div style="display: none"><input type="hidden" name="edit_id" value="~id attr~"></div><!--~}~-->
<div class="caption">Title</div>
<table cellspacing="0" cellpadding="4" border="0" summary="" class="evenodd">
<tr>
<th>title</th>
- <th>at</th>
+ <th>saved at</th>
<th>by</th>
<th></th>
</tr>
</td>
</tr>
<!--~}~-->
+ <script>
+ (function () {
+ var i, i02, d, hours, el, els
+ i02 = function (i) { return i > 9 ? i : '0' + i }
+ els = document.getElementsByClassName('timestamp');
+ for (i = 0; i < els.length; ++i) {
+ el = els[i]
+ d = new Date(parseInt(el.innerText) * 1000)
+ hours = d.getHours();
+ el.innerText =
+ i02(d.getMonth() + 1) + '/' +
+ i02(d.getDate()) + '/' +
+ d.getFullYear() + ' ' +
+ i02((hours + 11) % 12 + 1) + ':' +
+ i02(d.getMinutes()) + '' +
+ (hours < 12 ? 'am' : 'pm')
+ }
+ })();
+ </script>
</table>
<!--~}~-->
<!--~}~-->