Mercurial > hg-website
diff hgscm/templates/frontpage.html @ 78:8d25e34c21c2
templatetags: Add DownloadButton tag to display a download button according to operating system
This is somewhat a hacky way to do it, but it works, and we might redo it alter on.
author | David Soria Parra <dsp@php.net> |
---|---|
date | Fri, 20 Feb 2009 15:12:43 +0100 |
parents | bef09338eceb |
children | cbd90a4980e6 |
line wrap: on
line diff
--- a/hgscm/templates/frontpage.html Fri Feb 20 15:12:33 2009 +0100 +++ b/hgscm/templates/frontpage.html Fri Feb 20 15:12:43 2009 +0100 @@ -1,5 +1,6 @@ {% extends "base.html" %} +{% load extras %} {% block content %} <div class="row"> @@ -8,21 +9,7 @@ <h2>Mercurial is a free, distributed source control management tool. It efficiently handles projects of any size and offers an easy and intuitive interface. <strong>Please notice, this page is currently under development and based on a mockup.</strong></h2> </div> <div class="col"> - <a class="download typeface-js" href="{% url download "latest" "source"%}"> - <strong>Download now</strong> - Mercurial <em>{{ latest_version }}</em> - <span>Source</span> - </a> - <dl> - <dt class="typeface-js">Requirements</dt> - <dd>Python 2.4 (<a href="http://www.python.org">get python</a>)</dd> - <!--2.4 is necessary for TortoiseHG, Mercurial only needs 2.3--> - - <dt>Another OS?<br><em>Get mercurial for:</em></dt> - <dd><a href="{% url download "latest" "macosx" %}">Mac OS X</a></dd> - <dd><a href="{% url download "latest" "windows" %}">Windows</a></dd> - <dd><a href="{% url downloads %}">other</a></dd> - </dl> + {% download_button 'true' %} </div> </div>