Mercurial > hg-website
annotate 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 |
rev | line source |
---|---|
78
8d25e34c21c2
templatetags: Add DownloadButton tag to display a download button according to operating system
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
1 <a class="download typeface-js" href="{{download_url}}"> |
8d25e34c21c2
templatetags: Add DownloadButton tag to display a download button according to operating system
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
2 <strong>Download now</strong> |
8d25e34c21c2
templatetags: Add DownloadButton tag to display a download button according to operating system
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
3 Mercurial <em>{{ latest_version }}</em> |
8d25e34c21c2
templatetags: Add DownloadButton tag to display a download button according to operating system
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
4 <span>{{ download_system }}</span> |
8d25e34c21c2
templatetags: Add DownloadButton tag to display a download button according to operating system
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
5 </a> |
8d25e34c21c2
templatetags: Add DownloadButton tag to display a download button according to operating system
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
6 {% if extended %} |
8d25e34c21c2
templatetags: Add DownloadButton tag to display a download button according to operating system
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
7 <dl> |
8d25e34c21c2
templatetags: Add DownloadButton tag to display a download button according to operating system
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
8 <dt class="typeface-js">Requirements</dt> |
8d25e34c21c2
templatetags: Add DownloadButton tag to display a download button according to operating system
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
9 <dd>Python 2.4 (<a href="http://www.python.org">get python</a>)</dd> |
8d25e34c21c2
templatetags: Add DownloadButton tag to display a download button according to operating system
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
10 <!--2.4 is necessary for TortoiseHG, Mercurial only needs 2.3--> |
8d25e34c21c2
templatetags: Add DownloadButton tag to display a download button according to operating system
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
11 |
8d25e34c21c2
templatetags: Add DownloadButton tag to display a download button according to operating system
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
12 <dt>Another OS?<br><em>Get mercurial for:</em></dt> |
8d25e34c21c2
templatetags: Add DownloadButton tag to display a download button according to operating system
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
13 <dd><a href="{% url download "latest" "macosx" %}">Mac OS X</a></dd> |
8d25e34c21c2
templatetags: Add DownloadButton tag to display a download button according to operating system
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
14 <dd><a href="{% url download "latest" "windows" %}">Windows</a></dd> |
8d25e34c21c2
templatetags: Add DownloadButton tag to display a download button according to operating system
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
15 <dd><a href="{% url downloads %}">other</a></dd> |
8d25e34c21c2
templatetags: Add DownloadButton tag to display a download button according to operating system
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
16 </dl> |
8d25e34c21c2
templatetags: Add DownloadButton tag to display a download button according to operating system
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
17 {% endif %} |