Mercurial > hg-website
comparison 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 |
comparison
equal
deleted
inserted
replaced
77:fb737a306703 | 78:8d25e34c21c2 |
---|---|
1 <a class="download typeface-js" href="{{download_url}}"> | |
2 <strong>Download now</strong> | |
3 Mercurial <em>{{ latest_version }}</em> | |
4 <span>{{ download_system }}</span> | |
5 </a> | |
6 {% if extended %} | |
7 <dl> | |
8 <dt class="typeface-js">Requirements</dt> | |
9 <dd>Python 2.4 (<a href="http://www.python.org">get python</a>)</dd> | |
10 <!--2.4 is necessary for TortoiseHG, Mercurial only needs 2.3--> | |
11 | |
12 <dt>Another OS?<br><em>Get mercurial for:</em></dt> | |
13 <dd><a href="{% url download "latest" "macosx" %}">Mac OS X</a></dd> | |
14 <dd><a href="{% url download "latest" "windows" %}">Windows</a></dd> | |
15 <dd><a href="{% url downloads %}">other</a></dd> | |
16 </dl> | |
17 {% endif %} |