Mercurial > hg-website
view hgscm/templates/fragments/downloadbutton.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 | |
children |
line wrap: on
line source
<a class="download typeface-js" href="{{download_url}}"> <strong>Download now</strong> Mercurial <em>{{ latest_version }}</em> <span>{{ download_system }}</span> </a> {% if extended %} <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> {% endif %}