Mercurial > hg-website
annotate templates/base.html @ 308:b7d326bc57f9
Detect Mac OS 10.6
author | David Soria Parra <dsp@php.net> |
---|---|
date | Mon, 03 May 2010 09:57:58 +0200 |
parents | 59e0087c784a |
children | eeb8b75e28fc |
rev | line source |
---|---|
258
37c381bc813d
Pull out the download list into a new file.
Steve Losh <steve@stevelosh.com>
parents:
257
diff
changeset
|
1 {% from 'data' import downloads %} |
257
cebed91e780d
Add a sample of passing the download list with jinja.
Steve Losh <steve@stevelosh.com>
parents:
252
diff
changeset
|
2 |
248
53a5e100b497
Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff
changeset
|
3 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
53a5e100b497
Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff
changeset
|
4 "http://www.w3.org/TR/html4/loose.dtd"> |
53a5e100b497
Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff
changeset
|
5 <html> |
53a5e100b497
Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff
changeset
|
6 <head> |
53a5e100b497
Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff
changeset
|
7 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
53a5e100b497
Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff
changeset
|
8 <link href="/css/styles.css" type="text/css" rel="stylesheet"> |
303
59e0087c784a
Move javascript directory to js directory
David Soria Parra <dsp@php.net>
parents:
290
diff
changeset
|
9 <script type="text/javascript" src="/js/typeface.js"></script> |
59e0087c784a
Move javascript directory to js directory
David Soria Parra <dsp@php.net>
parents:
290
diff
changeset
|
10 <script type="text/javascript" src="/js/optimer_regular.typeface.js"></script> |
59e0087c784a
Move javascript directory to js directory
David Soria Parra <dsp@php.net>
parents:
290
diff
changeset
|
11 <script type="text/javascript" src="/js/download.js"></script> |
59e0087c784a
Move javascript directory to js directory
David Soria Parra <dsp@php.net>
parents:
290
diff
changeset
|
12 <script type="text/javascript" src="/js/common.js"></script> |
260
dd7fababf8b6
Working version of the download button with simple OS detection
David Soria Parra <dsp@php.net>
parents:
259
diff
changeset
|
13 <script language="javascript" type="text/javascript"> |
dd7fababf8b6
Working version of the download button with simple OS detection
David Soria Parra <dsp@php.net>
parents:
259
diff
changeset
|
14 {% set download = downloads[downloads['current']] %} |
dd7fababf8b6
Working version of the download button with simple OS detection
David Soria Parra <dsp@php.net>
parents:
259
diff
changeset
|
15 var dl = new Download(); |
dd7fababf8b6
Working version of the download button with simple OS detection
David Soria Parra <dsp@php.net>
parents:
259
diff
changeset
|
16 dl.register_download('Windows', "{{ download['Windows']}}"); |
308 | 17 dl.register_download('Mac OS X 10.6', "{{ download['Mac OS X 10.6']}}"); |
18 dl.register_download('Mac OS X 10.5', "{{ download['Mac OS X 10.5']}}"); | |
260
dd7fababf8b6
Working version of the download button with simple OS detection
David Soria Parra <dsp@php.net>
parents:
259
diff
changeset
|
19 dl.register_download('UNIX', "{{ download['Source code']}}"); |
dd7fababf8b6
Working version of the download button with simple OS detection
David Soria Parra <dsp@php.net>
parents:
259
diff
changeset
|
20 dl.register_download('Linux', "{{ download['Source code']}}"); |
dd7fababf8b6
Working version of the download button with simple OS detection
David Soria Parra <dsp@php.net>
parents:
259
diff
changeset
|
21 </script> |
248
53a5e100b497
Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff
changeset
|
22 <link rel="shortcut icon" type="image/x-icon" href="/images/favicon.ico"> |
53a5e100b497
Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff
changeset
|
23 |
53a5e100b497
Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff
changeset
|
24 <title>Mercurial SCM</title> |
53a5e100b497
Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff
changeset
|
25 </head> |
53a5e100b497
Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff
changeset
|
26 <body id="home"> |
53a5e100b497
Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff
changeset
|
27 <h1 id="logo"><a href="/">mercurial</a></h1> |
53a5e100b497
Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff
changeset
|
28 |
53a5e100b497
Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff
changeset
|
29 <ul id="nav" class="typeface-js"> |
53a5e100b497
Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff
changeset
|
30 <li><a href="/about/">about</a></li> |
53a5e100b497
Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff
changeset
|
31 <li><a href="/guide/">guide</a></li> |
53a5e100b497
Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff
changeset
|
32 <li><a href="/downloads/">download</a></li> |
265
9e56363c57a5
Use mercurial.selenic.com instead of selenic.com/mercurial
David Soria Parra <dsp@php.net>
parents:
261
diff
changeset
|
33 <li><a href="http://mercurial.selenic.com/wiki/UsingExtensions">extensions</a></li> |
273
f255cc055e78
Rename docs/news to news/wiki
David Soria Parra <dsp@php.net>
parents:
268
diff
changeset
|
34 <li><a href="http://mercurial.selenic.com/wiki/">news/wiki</a></li> |
248
53a5e100b497
Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff
changeset
|
35 </ul> |
53a5e100b497
Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff
changeset
|
36 |
53a5e100b497
Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff
changeset
|
37 <form id="search" method="get" action="http://mercurial.selenic.com/wiki/Mercurial"> |
53a5e100b497
Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff
changeset
|
38 <input type="hidden" name="action" value="fullsearch"> |
53a5e100b497
Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff
changeset
|
39 <input type="hidden" name="context" value="180"> |
53a5e100b497
Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff
changeset
|
40 <fieldset> |
53a5e100b497
Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff
changeset
|
41 <legend>Search form</legend> |
53a5e100b497
Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff
changeset
|
42 <label for="keyword">keyword</label> |
53a5e100b497
Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff
changeset
|
43 <input class="text" type="text" name="value" |
276
6916a7e4fbf0
base: Reset value if the user clicks into the search input field
David Soria Parra <dsp@php.net>
parents:
273
diff
changeset
|
44 value="Search the Wiki" id="keyword" onclick="resetBar();"> |
248
53a5e100b497
Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff
changeset
|
45 <input class="submit" type="submit" value="Title" |
53a5e100b497
Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff
changeset
|
46 name="titlesearch" alt="Search Titles"> |
53a5e100b497
Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff
changeset
|
47 </fieldset> |
53a5e100b497
Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff
changeset
|
48 </form> |
53a5e100b497
Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff
changeset
|
49 |
53a5e100b497
Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff
changeset
|
50 <div id="content"> |
252
3efd1dcf92c7
Refactor the block structure a bit, and convert the about page.
Steve Losh <steve@stevelosh.com>
parents:
248
diff
changeset
|
51 {% block main %} |
3efd1dcf92c7
Refactor the block structure a bit, and convert the about page.
Steve Losh <steve@stevelosh.com>
parents:
248
diff
changeset
|
52 <div class="row"> |
3efd1dcf92c7
Refactor the block structure a bit, and convert the about page.
Steve Losh <steve@stevelosh.com>
parents:
248
diff
changeset
|
53 <div class="col big"> |
3efd1dcf92c7
Refactor the block structure a bit, and convert the about page.
Steve Losh <steve@stevelosh.com>
parents:
248
diff
changeset
|
54 {% block content %} |
3efd1dcf92c7
Refactor the block structure a bit, and convert the about page.
Steve Losh <steve@stevelosh.com>
parents:
248
diff
changeset
|
55 No content on this page yet. |
3efd1dcf92c7
Refactor the block structure a bit, and convert the about page.
Steve Losh <steve@stevelosh.com>
parents:
248
diff
changeset
|
56 {% endblock %} |
3efd1dcf92c7
Refactor the block structure a bit, and convert the about page.
Steve Losh <steve@stevelosh.com>
parents:
248
diff
changeset
|
57 </div> |
3efd1dcf92c7
Refactor the block structure a bit, and convert the about page.
Steve Losh <steve@stevelosh.com>
parents:
248
diff
changeset
|
58 <div class="col"> |
3efd1dcf92c7
Refactor the block structure a bit, and convert the about page.
Steve Losh <steve@stevelosh.com>
parents:
248
diff
changeset
|
59 {% block sidebar %} |
260
dd7fababf8b6
Working version of the download button with simple OS detection
David Soria Parra <dsp@php.net>
parents:
259
diff
changeset
|
60 <a class="download typeface-js" href="#" onClick="javascript:dl.os_link()"> |
255
4a52186008ee
Add a first version of the sidebar
David Soria Parra <dsp@php.net>
parents:
252
diff
changeset
|
61 <strong>Download now</strong> |
290
2fec3d251660
frontpage: Use current version variables everywhere
David Soria Parra <dsp@php.net>
parents:
276
diff
changeset
|
62 Mercurial <em>{{ downloads['current'] }}</em> |
260
dd7fababf8b6
Working version of the download button with simple OS detection
David Soria Parra <dsp@php.net>
parents:
259
diff
changeset
|
63 <span><script language="javascript">dl.os_detection();</script></span> |
255
4a52186008ee
Add a first version of the sidebar
David Soria Parra <dsp@php.net>
parents:
252
diff
changeset
|
64 </a> |
4a52186008ee
Add a first version of the sidebar
David Soria Parra <dsp@php.net>
parents:
252
diff
changeset
|
65 <dl> |
4a52186008ee
Add a first version of the sidebar
David Soria Parra <dsp@php.net>
parents:
252
diff
changeset
|
66 <dt class="typeface-js">Requirements</dt> |
4a52186008ee
Add a first version of the sidebar
David Soria Parra <dsp@php.net>
parents:
252
diff
changeset
|
67 <dd>Python 2.4 (<a href="http://www.python.org">get python</a>)</dd> |
4a52186008ee
Add a first version of the sidebar
David Soria Parra <dsp@php.net>
parents:
252
diff
changeset
|
68 <!--2.4 is necessary for TortoiseHG, Mercurial only needs 2.3--> |
4a52186008ee
Add a first version of the sidebar
David Soria Parra <dsp@php.net>
parents:
252
diff
changeset
|
69 |
4a52186008ee
Add a first version of the sidebar
David Soria Parra <dsp@php.net>
parents:
252
diff
changeset
|
70 <dt>Another OS?<br><em>Get mercurial for:</em></dt> |
4a52186008ee
Add a first version of the sidebar
David Soria Parra <dsp@php.net>
parents:
252
diff
changeset
|
71 <dd><a href="/downloads">Mac OS X</a></dd> |
4a52186008ee
Add a first version of the sidebar
David Soria Parra <dsp@php.net>
parents:
252
diff
changeset
|
72 <dd><a href="/downloads">Windows</a></dd> |
4a52186008ee
Add a first version of the sidebar
David Soria Parra <dsp@php.net>
parents:
252
diff
changeset
|
73 <dd><a href="/downloads">other</a></dd> |
4a52186008ee
Add a first version of the sidebar
David Soria Parra <dsp@php.net>
parents:
252
diff
changeset
|
74 </dl> |
252
3efd1dcf92c7
Refactor the block structure a bit, and convert the about page.
Steve Losh <steve@stevelosh.com>
parents:
248
diff
changeset
|
75 {% endblock %} |
3efd1dcf92c7
Refactor the block structure a bit, and convert the about page.
Steve Losh <steve@stevelosh.com>
parents:
248
diff
changeset
|
76 </div> |
3efd1dcf92c7
Refactor the block structure a bit, and convert the about page.
Steve Losh <steve@stevelosh.com>
parents:
248
diff
changeset
|
77 </div> |
248
53a5e100b497
Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff
changeset
|
78 {% endblock %} |
53a5e100b497
Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff
changeset
|
79 </div> |
53a5e100b497
Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff
changeset
|
80 |
53a5e100b497
Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff
changeset
|
81 <div id="footer"> |
53a5e100b497
Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff
changeset
|
82 design by <a href="http://www.designpunct.ro">punct</a> / |
53a5e100b497
Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff
changeset
|
83 design courtesy of <a href="http://www.bitbucket.org/">bitbucket</a> / |
53a5e100b497
Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff
changeset
|
84 licensed under <a href="http://www.gnu.org/licenses/gpl-2.0.txt">GPLv2</a> / |
261
675c8d8811bf
Rename about-page to thepage
David Soria Parra <dsp@php.net>
parents:
260
diff
changeset
|
85 <a href="/thepage/">about this page</a> |
248
53a5e100b497
Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff
changeset
|
86 </div> |
53a5e100b497
Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff
changeset
|
87 |
53a5e100b497
Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff
changeset
|
88 </body> |
53a5e100b497
Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff
changeset
|
89 </html> |