# HG changeset patch # User David Soria Parra # Date 1254621949 -7200 # Node ID 4a52186008ee734c014f9862991ddc4b439f60c2 # Parent d662cba2afb1e270e1f044726146f1c830aeaae6 Add a first version of the sidebar diff -r d662cba2afb1 -r 4a52186008ee static/javascript/download.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/static/javascript/download.js Sun Oct 04 04:05:49 2009 +0200 @@ -0,0 +1,10 @@ +function os_detection() { + var OSName="Source"; + if (navigator.appVersion.indexOf("Win")!=-1) OSName="Windows"; + if (navigator.appVersion.indexOf("Mac")!=-1) OSName="Mac OS X"; + if (navigator.appVersion.indexOf("X11")!=-1) OSName="UNIX"; + if (navigator.appVersion.indexOf("Linux")!=-1) OSName="Linux"; + + document.write(OSName); +} + diff -r d662cba2afb1 -r 4a52186008ee templates/base.html --- a/templates/base.html Thu Sep 24 18:00:24 2009 -0400 +++ b/templates/base.html Sun Oct 04 04:05:49 2009 +0200 @@ -6,6 +6,7 @@ + Mercurial SCM @@ -44,7 +45,21 @@
{% block sidebar %} - No sidebar on this page yet. + + Download now + Mercurial 1.3.1 + + +
+
Requirements
+
Python 2.4 (get python)
+ + +
Another OS?
Get mercurial for:
+
Mac OS X
+
Windows
+
other
+
{% endblock %}
diff -r d662cba2afb1 -r 4a52186008ee templates/frontpage.html --- a/templates/frontpage.html Thu Sep 24 18:00:24 2009 -0400 +++ b/templates/frontpage.html Sun Oct 04 04:05:49 2009 +0200 @@ -8,7 +8,9 @@

Mercurial is a free, distributed source control management tool. It efficiently handles projects of any size and offers an easy and intuitive interface.

- {# TODO: download button #} + {% block sidebar %} + {{ super() }} + {% endblock %}