sapling/mercurial/templates/spartan
Brodie Rao aabbd72d18 hgweb: fix dynamic date calculation not working under Safari
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
2011-10-27 11:57:08 -07:00
..
branches.tmpl templates: fix inconsistency in 'help' link 2010-10-26 02:38:14 +05:30
changelog.tmpl hgweb: add help link to templates missed in 333983876439 2010-10-09 17:58:48 -05:00
changelogentry.tmpl hgweb: fix dynamic date calculation not working under Safari 2011-10-27 11:57:08 -07:00
changeset.tmpl hgweb: fix dynamic date calculation not working under Safari 2011-10-27 11:57:08 -07:00
error.tmpl setup: install translation files as package data 2009-12-01 16:06:10 +01:00
fileannotate.tmpl hgweb: fix dynamic date calculation not working under Safari 2011-10-27 11:57:08 -07:00
filediff.tmpl hgweb: add help link to templates missed in 333983876439 2010-10-09 17:58:48 -05:00
filelog.tmpl hgweb: add help link to templates missed in 333983876439 2010-10-09 17:58:48 -05:00
filelogentry.tmpl hgweb: fix dynamic date calculation not working under Safari 2011-10-27 11:57:08 -07:00
filerevision.tmpl hgweb: fix dynamic date calculation not working under Safari 2011-10-27 11:57:08 -07:00
footer.tmpl hgweb: add a "web/logoimg" setting to customize the web logo image 2011-07-21 15:10:16 +02:00
graph.tmpl web: Made elapsed time calculation dynamic (javascript). 2011-04-28 17:02:39 +02:00
header.tmpl web: Made elapsed time calculation dynamic (javascript). 2011-04-28 17:02:39 +02:00
index.tmpl templates: rename `Last change' column in hgwebdir repository list. 2010-01-24 20:51:53 +01:00
manifest.tmpl hgweb: add help link to templates missed in 333983876439 2010-10-09 17:58:48 -05:00
map hgweb: fix dynamic date calculation not working under Safari 2011-10-27 11:57:08 -07:00
notfound.tmpl setup: install translation files as package data 2009-12-01 16:06:10 +01:00
search.tmpl hgweb: add help link to templates missed in 333983876439 2010-10-09 17:58:48 -05:00
shortlog.tmpl hgweb: add help link to templates missed in 333983876439 2010-10-09 17:58:48 -05:00
shortlogentry.tmpl hgweb: fix dynamic date calculation not working under Safari 2011-10-27 11:57:08 -07:00
tags.tmpl hgweb: add help link to templates missed in 333983876439 2010-10-09 17:58:48 -05:00