comparison templates/downloads/index.html @ 397:29d4b5e45423

Use flask to render site and get rid of submodules We don't want to use statically generated html files anymore. We are using flask to do the routing and render the templates for now. This means we also get rid of the submoduels and put everything together in templates/.
author David Soria Parra <davidsp@fb.com>
date Fri, 07 Mar 2014 14:47:13 -0800
parents
children 3d0f1f7cee05
comparison
equal deleted inserted replaced
396:b3036c323c2d 397:29d4b5e45423
1 {% extends "base.html" %}
2
3 {% block content %}
4
5 <h1>Mercurial downloads</h1>
6 <script language="javascript">
7 var versions = Downloader.versions();
8 var more = Downloader.maxversions &&
9 versions.length > Downloader.maxversions;
10
11 // Show tables for Downloader.maxversions versions
12 for (i in versions) {
13 if (more && i >= Downloader.maxversions)
14 break;
15 // Need to localize this variable to closure it correctly
16 var current = versions[i];
17 document.write(Downloader.table(versions[i], function (o) {
18 return o.version == current;
19 }));
20 }
21
22 function exposeversions (node) {
23 // Emit but do not render tables for remaining versions
24 var html = ''
25 for (i in versions) {
26 if (i < Downloader.maxversions)
27 continue;
28 // Need to localize this variable to closure it correctly
29 var current = versions[i];
30 html += Downloader.table(versions[i], function (o) {
31 return o.version == current;
32 });
33 }
34 node.innerHTML = html;
35 }
36
37 if (more) {
38 document.write('\
39 <div onclick="exposeversions(this);">\
40 <center id="more">[more versions]</center>\
41 </div>\
42 <br/>\
43 ');
44 }
45 </script>
46
47 <h5>Development Repositories</h5>
48 <dl>
49 <dt>Main</dt>
50 <dd>The main development repository of the Mercurial maintainer
51 <a href="http://mercurial.selenic.com/wiki/mpm">Matt Mackall</a>
52 can be found at <a href="http://selenic.com/hg">
53 http://selenic.com/hg</a>.</dd>
54 <dt>Crew</dt>
55 <dd>The development repository of the <a
56 href="http://mercurial.selenic.com/wiki/CrewRepository">
57 Mercurial Crew</a>
58 can be found at <a href="http://hg.intevation.org/mercurial/crew">
59 http://hg.intevation.org/mercurial/crew</a>.</dd>
60 </dl>
61
62 <h5>Requirements</h5>
63 <dl>
64 <dt>Python</dt>
65 <dd>Mercurial uses <a href="http://www.python.org">Python</a>
66 (versions <em>2.4</em> through <em>2.7</em>). Most
67 ready-to-run Mercurial distributions include Python or use
68 the Python that comes with your operating system. When
69 building from source you should confirm that an appropriate
70 Python version is available.</dd>
71 </dl>
72
73 <h5>Older Releases</h5>
74 <dl>
75 <dt>Python 2.3</dt>
76 <dd><a href="/release/mercurial-1.2.1.tar.gz">Mercurial 1.2.1</a>
77 is the last release to support Python 2.3. Use this if you
78 need to run Mercurial on very old platforms and you cannot update
79 your Python installation.</dd>
80 <dt>Older source releases</dt>
81 <dd><a href="/release/">All previous source releases</a> are available
82 to download.</dd>
83 </dl>
84
85 {% endblock %}
86 {% block sidebar %}
87 <h3>Get started</h3>
88 <p>Mercurial is written in Python with platform independence in mind.
89 As a result, Mercurial is available on
90 <a href="http://www.microsoft.com/windows">Microsoft Windows</a>,
91 <a href="http://kernel.org">GNU/Linux</a>,
92 <a href="http://www.apple.com">Mac OS X</a>,
93 <a href="http://oracle.com/solaris">Solaris 11 Express</a> and others.
94 You can either download a binary package for the system of your choice or
95 build it from sources.</p>
96
97 <p>Windows users are likely to enjoy the <a href="http://tortoisehg.org">TortoiseHg</a>
98 GUI the most. It integrates Mercurial directly into your explorer.</p>
99
100 <p>Packages for common Linux, BSD and Solaris distributions can be
101 installed from the system specific repositories</p>
102 <p>
103 <pre>
104 # Debian/Ubuntu
105 $ apt-get install mercurial
106
107 # Fedora
108 $ yum install mercurial
109
110 # Gentoo
111 $ emerge mercurial
112
113 # FreeBSD
114 $ cd /usr/ports/devel/mercurial
115 $ make install
116
117 # Solaris 11 Express
118 $ pkg install SUNWmercurial
119 </pre>
120 </p>
121 {% endblock %}