mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
aabbd72d18
While Chrome, Firefox, and IE 6+ support the current date format being passed to Date(), Safari doesn't: > new Date('Mon Oct 24 13:58:01 2011 +0200') Invalid Date However, the rfc822date format--officially supported by ECMAScript[1]--does work: > new Date('Mon, 24 Oct 2011 13:58:01 +0200') Mon Oct 24 2011 04:58:01 GMT-0700 (PDT) This change replaces all instances of {date|date} in HTML with {date|rfc822date}. For elements that only have the "age" class, there's no outward change for users with JavaScript enabled. For elements with both the "age" and "date" classes, the full date displayed uses the new format. Tested in IE 6, Safari 5.1.1, Google Chrome 15, and Firefox 7.0.1. [1]: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/parse
54 lines
1.9 KiB
Cheetah
54 lines
1.9 KiB
Cheetah
{header}
|
|
<title>{repo|escape}: changeset {rev}:{node|short}</title>
|
|
<link rel="alternate" type="application/atom+xml"
|
|
href="{url}atom-log" title="Atom feed for {repo|escape}"/>
|
|
<link rel="alternate" type="application/rss+xml"
|
|
href="{url}rss-log" title="RSS feed for {repo|escape}"/>
|
|
</head>
|
|
<body>
|
|
|
|
<div class="page_header">
|
|
<a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / changeset
|
|
</div>
|
|
|
|
<div class="page_nav">
|
|
<a href="{url}summary{sessionvars%urlparameter}">summary</a> |
|
|
<a href="{url}shortlog/{rev}{sessionvars%urlparameter}">shortlog</a> |
|
|
<a href="{url}log/{rev}{sessionvars%urlparameter}">changelog</a> |
|
|
<a href="{url}graph{sessionvars%urlparameter}">graph</a> |
|
|
<a href="{url}tags{sessionvars%urlparameter}">tags</a> |
|
|
<a href="{url}bookmarks{sessionvars%urlparameter}">bookmarks</a> |
|
|
<a href="{url}branches{sessionvars%urlparameter}">branches</a> |
|
|
<a href="{url}file/{node|short}{sessionvars%urlparameter}">files</a> |
|
|
changeset |
|
|
<a href="{url}raw-rev/{node|short}">raw</a> {archives%archiveentry} |
|
|
<a href="{url}help{sessionvars%urlparameter}">help</a>
|
|
<br/>
|
|
</div>
|
|
|
|
<div>
|
|
<a class="title" href="{url}raw-rev/{node|short}">{desc|strip|escape|firstline|nonempty} <span class="logtags">{inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}{bookmarks%bookmarktag}</span></a>
|
|
</div>
|
|
<div class="title_text">
|
|
<table cellspacing="0">
|
|
<tr><td>author</td><td>{author|obfuscate}</td></tr>
|
|
<tr><td></td><td class="date age">{date|rfc822date}</td></tr>
|
|
{branch%changesetbranch}
|
|
<tr><td>changeset {rev}</td><td style="font-family:monospace">{node|short}</td></tr>
|
|
{parent%changesetparent}
|
|
{child%changesetchild}
|
|
</table></div>
|
|
|
|
<div class="page_body">
|
|
{desc|strip|escape|addbreaks|nonempty}
|
|
</div>
|
|
<div class="list_head"></div>
|
|
<div class="title_text">
|
|
<table cellspacing="0">
|
|
{files}
|
|
</table></div>
|
|
|
|
<div class="page_body">{diff}</div>
|
|
|
|
{footer}
|