annotate templates/base.html @ 483:0978d4880577

downloads: skip trying to fill in button if it's not there
author Kevin Bullock <kbullock+mercurial@ringworld.org>
date Sun, 14 May 2017 21:15:12 -0500
parents c65b81353b8f
children 175611e81401
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
367
bb27170e2218 Updated from typeface.js 0.13 to 0.15 for IE9 compat.
Tatham Oddie <tatham@oddie.com.au>
parents: 349
diff changeset
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
248
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
2 "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
3 <html>
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
4 <head>
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
397
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents: 367
diff changeset
6 <link href="{{ url_for('static', filename='css/styles.css') }}" type="text/css" rel="stylesheet">
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents: 367
diff changeset
7 <script type="text/javascript" src="{{ url_for('static', filename='js/common.js') }}"></script>
402
4e908cffaa62 Add static.js symlink
David Soria Parra <davidsp@fb.com>
parents: 399
diff changeset
8 <script type="text/javascript" src="{{ url_for('static', filename='sources.js') }}"></script>
397
29d4b5e45423 Use flask to render site and get rid of submodules
David Soria Parra <davidsp@fb.com>
parents: 367
diff changeset
9 <script type="text/javascript" src="{{ url_for('static', filename='js/download.js') }}"></script>
248
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
10 <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
11
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
12 <title>Mercurial SCM</title>
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
13 </head>
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
14 <body id="home">
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
15 <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
16
398
1004393230cf Remove typeface and rely on @font-face
David Soria Parra <davidsp@fb.com>
parents: 397
diff changeset
17 <ul id="nav">
469
39b44ed32913 menu: capitalize the menu options in nav bar
Pulkit Goyal <7895pulkit@gmail.com>
parents: 452
diff changeset
18 <li><a href="/about">About</a></li>
39b44ed32913 menu: capitalize the menu options in nav bar
Pulkit Goyal <7895pulkit@gmail.com>
parents: 452
diff changeset
19 <li><a href="/guide">Guide</a></li>
39b44ed32913 menu: capitalize the menu options in nav bar
Pulkit Goyal <7895pulkit@gmail.com>
parents: 452
diff changeset
20 <li><a href="/downloads">Download</a></li>
39b44ed32913 menu: capitalize the menu options in nav bar
Pulkit Goyal <7895pulkit@gmail.com>
parents: 452
diff changeset
21 <li><a href="https://www.mercurial-scm.org/wiki/UsingExtensions">Extensions</a></li>
39b44ed32913 menu: capitalize the menu options in nav bar
Pulkit Goyal <7895pulkit@gmail.com>
parents: 452
diff changeset
22 <li><a href="https://www.mercurial-scm.org/wiki/">News/Wiki</a></li>
248
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
23 </ul>
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
24
436
2b0669fed7a8 update domain to www.mercurial-scm.org
timeless@gmail.com
parents: 434
diff changeset
25 <form id="search" method="get" action="https://www.mercurial-scm.org/wiki/Mercurial">
248
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
26 <input type="hidden" name="action" value="fullsearch">
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
27 <input type="hidden" name="context" value="180">
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
28 <fieldset>
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
29 <legend>Search form</legend>
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
30 <label for="keyword">keyword</label>
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
31 <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
32 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
33 <input class="submit" type="submit" value="Title"
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
34 name="titlesearch" alt="Search Titles">
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
35 </fieldset>
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
36 </form>
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
37
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
38 <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
39 {% block main %}
3efd1dcf92c7 Refactor the block structure a bit, and convert the about page.
Steve Losh <steve@stevelosh.com>
parents: 248
diff changeset
40 <div class="row">
3efd1dcf92c7 Refactor the block structure a bit, and convert the about page.
Steve Losh <steve@stevelosh.com>
parents: 248
diff changeset
41 <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
42 {% block content %}
3efd1dcf92c7 Refactor the block structure a bit, and convert the about page.
Steve Losh <steve@stevelosh.com>
parents: 248
diff changeset
43 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
44 {% endblock %}
3efd1dcf92c7 Refactor the block structure a bit, and convert the about page.
Steve Losh <steve@stevelosh.com>
parents: 248
diff changeset
45 </div>
3efd1dcf92c7 Refactor the block structure a bit, and convert the about page.
Steve Losh <steve@stevelosh.com>
parents: 248
diff changeset
46 <div class="col">
3efd1dcf92c7 Refactor the block structure a bit, and convert the about page.
Steve Losh <steve@stevelosh.com>
parents: 248
diff changeset
47 {% block sidebar %}
478
c65b81353b8f downloads: replace inline scripts with an onload function
Kevin Bullock <kbullock+mercurial@ringworld.org>
parents: 477
diff changeset
48 <a class="download" href="/downloads" onClick="return window.dl.download();">
477
aec3b193e5af fix indentation of download button content
Kevin Bullock <kbullock+mercurial@ringworld.org>
parents: 469
diff changeset
49 <strong>Download now</strong>
478
c65b81353b8f downloads: replace inline scripts with an onload function
Kevin Bullock <kbullock+mercurial@ringworld.org>
parents: 477
diff changeset
50 Mercurial <em id="download-version"></em>
c65b81353b8f downloads: replace inline scripts with an onload function
Kevin Bullock <kbullock+mercurial@ringworld.org>
parents: 477
diff changeset
51 <span id="download-description"></span>
255
4a52186008ee Add a first version of the sidebar
David Soria Parra <dsp@php.net>
parents: 252
diff changeset
52 </a>
4a52186008ee Add a first version of the sidebar
David Soria Parra <dsp@php.net>
parents: 252
diff changeset
53 <dl>
343
b2a8c4590630 base: Add notice about Python included in binary packages
Adrian Buehlmann <adrian@cadifra.com>
parents: 313
diff changeset
54 <dt>Another OS?<br><em>Get Mercurial for:</em></dt>
255
4a52186008ee Add a first version of the sidebar
David Soria Parra <dsp@php.net>
parents: 252
diff changeset
55 <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
56 <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
57 <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
58 </dl>
252
3efd1dcf92c7 Refactor the block structure a bit, and convert the about page.
Steve Losh <steve@stevelosh.com>
parents: 248
diff changeset
59 {% endblock %}
3efd1dcf92c7 Refactor the block structure a bit, and convert the about page.
Steve Losh <steve@stevelosh.com>
parents: 248
diff changeset
60 </div>
3efd1dcf92c7 Refactor the block structure a bit, and convert the about page.
Steve Losh <steve@stevelosh.com>
parents: 248
diff changeset
61 </div>
248
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
62 {% endblock %}
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
63 </div>
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
64
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
65 <div id="footer">
413
7336a790df11 Add google+ link to verify site
David Soria Parra <davidsp@fb.com>
parents: 409
diff changeset
66 <a href="https://plus.google.com/112477627281544607334"
7336a790df11 Add google+ link to verify site
David Soria Parra <davidsp@fb.com>
parents: 409
diff changeset
67 rel="publisher">G+</a> /
248
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
68 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
69 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
70 licensed under <a href="http://www.gnu.org/licenses/gpl-2.0.txt">GPLv2</a> /
452
2a4f7a511151 templates: this is a website, not just a single page
Anton Shestakov <av6@dwimlabs.net>
parents: 436
diff changeset
71 <a href="/thepage">about this website</a>
248
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
72 </div>
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
73
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
74 </body>
53a5e100b497 Convert the frontpage, except for the download button.
Steve Losh <steve@stevelosh.com>
parents:
diff changeset
75 </html>