Mercurial > hg-website
annotate hgscm/templates/downloads.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 | 75f1f4cc2ef1 |
rev | line source |
---|---|
70
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
1 {% extends "base.html" %} |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
2 |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
3 {% block content %} |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
4 |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
5 <div class="row"> |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
6 <div class="big col"> |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
7 <h1>Mercurial downloads</h1> |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
8 {% for d in downloads %} |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
9 {% ifequal d.latest "true" %} |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
10 <table border="0" cellspacing="0" cellpadding="0" class="latest" width="100%"> |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
11 {% else %} |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
12 <table border="0" cellspacing="0" cellpadding="0" width="100%"> |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
13 {% endifequal %} |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
14 <thead> |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
15 <tr> |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
16 <th>Mercurial {{ d.version }}</th> |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
17 <th></th> |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
18 <th></th> |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
19 </tr> |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
20 </thead> |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
21 <tbody> |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
22 {% for v in d.versions %} |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
23 <tr> |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
24 <td>{{ v.system }}</td> |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
25 <td>{{ v.language }}</td> |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
26 <td><a href="download/{{d.version}}/{{v.identifier}}">download</a></td> |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
27 </tr> |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
28 {% endfor %} |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
29 </tbody> |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
30 </table> |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
31 {% endfor %} |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
32 </div> |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
33 <div class="col"> |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
34 <h3>Get started</h3> |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
35 <p>Mercurial is written in python with platform independence in mind. |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
36 As a result, Mercurial is available on |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
37 <a href="http://www.microsoft.com/windows">Microsoft Windows</a>, |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
38 <a href="http://kernel.org">GNU/Linux</a>, |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
39 <a href="http://www.apple.com">MacOS X</a>, |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
40 <a href="http://www.opensolaris.org">OpenSolaris</a> and others. |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
41 You can either download a binary package for the system of your choice or |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
42 build if from sources.</p> |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
43 |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
44 <p>Packages for common Linux, BSD and Solaris distributions can be |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
45 installed from the system specific repositories</p> |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
46 <p> |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
47 <pre> |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
48 # Debian/ubuntu |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
49 $ apt-get install mercurial |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
50 |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
51 # Fedora |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
52 $ yum install mercurial |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
53 |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
54 # Gentoo |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
55 $ emerge mercurial |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
56 |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
57 # OpenSolaris |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
58 $ pkg install SUNWmercurial |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
59 </p> |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
60 </div> |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
61 </div> |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
62 |
bef09338eceb
downloads: add initial handling for downloads
David Soria Parra <dsp@php.net>
parents:
diff
changeset
|
63 {% endblock %} |