annotate templates/base.html @ 257:cebed91e780d

Add a sample of passing the download list with jinja.
author Steve Losh <steve@stevelosh.com>
date Sat, 03 Oct 2009 21:53:01 -0400
parents 3efd1dcf92c7
children 37c381bc813d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
257
cebed91e780d Add a sample of passing the download list with jinja.
Steve Losh <steve@stevelosh.com>
parents: 252
diff changeset
1 {% set downloads = {'1.3.1': {'windows': 'linkwin', 'os.x': 'linkosx'}} %}
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">
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
9 <script type="text/javascript" src="/javascript/typeface.js"></script>
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
10 <script type="text/javascript" src="/javascript/optimer_regular.typeface.js"></script>
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
11 <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
12
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
13 <title>Mercurial SCM</title>
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
14 </head>
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
15 <body id="home">
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
16 <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
17
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
18 <ul id="nav" class="typeface-js">
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
19 <li><a href="/about/">about</a></li>
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
20 <li><a href="/guide/">guide</a></li>
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
21 <li><a href="/downloads/">download</a></li>
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
22 <li><a href="http://www.selenic.com/mercurial/wiki/UsingExtensions">extensions</a></li>
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
23 <li><a href="http://www.selenic.com/mercurial">docs/news</a></li>
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
24 </ul>
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
25
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
26 <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
27 <input type="hidden" name="action" value="fullsearch">
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
28 <input type="hidden" name="context" value="180">
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
29 <fieldset>
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
30 <legend>Search form</legend>
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
31 <label for="keyword">keyword</label>
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
32 <input class="text" type="text" name="value"
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
33 value="Search the Wiki" id="keyword">
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
34 <input class="submit" type="submit" value="Title"
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
35 name="titlesearch" alt="Search Titles">
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
36 </fieldset>
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
37 </form>
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
38
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
39 <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
40 {% block main %}
3efd1dcf92c7 Refactor the block structure a bit, and convert the about page.
Steve Losh <steve@stevelosh.com>
parents: 248
diff changeset
41 <div class="row">
3efd1dcf92c7 Refactor the block structure a bit, and convert the about page.
Steve Losh <steve@stevelosh.com>
parents: 248
diff changeset
42 <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
43 {% block content %}
3efd1dcf92c7 Refactor the block structure a bit, and convert the about page.
Steve Losh <steve@stevelosh.com>
parents: 248
diff changeset
44 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
45 {% endblock %}
3efd1dcf92c7 Refactor the block structure a bit, and convert the about page.
Steve Losh <steve@stevelosh.com>
parents: 248
diff changeset
46 </div>
3efd1dcf92c7 Refactor the block structure a bit, and convert the about page.
Steve Losh <steve@stevelosh.com>
parents: 248
diff changeset
47 <div class="col">
3efd1dcf92c7 Refactor the block structure a bit, and convert the about page.
Steve Losh <steve@stevelosh.com>
parents: 248
diff changeset
48 {% block sidebar %}
3efd1dcf92c7 Refactor the block structure a bit, and convert the about page.
Steve Losh <steve@stevelosh.com>
parents: 248
diff changeset
49 No sidebar 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
50 {% endblock %}
3efd1dcf92c7 Refactor the block structure a bit, and convert the about page.
Steve Losh <steve@stevelosh.com>
parents: 248
diff changeset
51 </div>
3efd1dcf92c7 Refactor the block structure a bit, and convert the about page.
Steve Losh <steve@stevelosh.com>
parents: 248
diff changeset
52 </div>
248
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
53 {% endblock %}
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
54 </div>
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
55
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
56 <div id="footer">
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
57 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
58 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
59 licensed under <a href="http://www.gnu.org/licenses/gpl-2.0.txt">GPLv2</a> /
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
60 <a href="/about-page/">about this page</a>
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
61 </div>
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
62
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
63 </body>
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
64 </html>