~david-goetz/swift/db_double_quar

« back to all changes in this revision

Viewing changes to doc/source/_theme/layout.html

  • Committer: Tarmac
  • Author(s): Anne Gentle
  • Date: 2011-03-11 16:57:04 UTC
  • mfrom: (238.2.1 versiontip)
  • Revision ID: tarmac-20110311165704-j45ilhygpd399u5z
Added an info box to each page that contains links to the 1.1 and 1.2 docs sites. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
{% extends "sphinxdoc/layout.html" %}
2
2
{% set css_files = css_files + ['_static/tweaks.css'] %}
 
3
 
 
4
{%- macro sidebar() %}
 
5
{%- if not embedded %}{% if not theme_nosidebar|tobool %}
 
6
      <div class="sphinxsidebar">
 
7
        <div class="sphinxsidebarwrapper">
 
8
          {%- block sidebarlogo %}
 
9
          {%- if logo %}
 
10
            <p class="logo"><a href="{{ pathto(master_doc) }}">
 
11
              <img class="logo" src="{{ pathto('_static/' + logo, 1) }}" alt="Logo"/>
 
12
            </a></p>
 
13
          {%- endif %}
 
14
          {%- endblock %}
 
15
          {%- block sidebartoc %}
 
16
          {%- if display_toc %}
 
17
            <h3><a href="{{ pathto(master_doc) }}">{{ _('Table Of Contents') }}</a></h3>
 
18
            {{ toc }}
 
19
          {%- endif %}
 
20
          {%- endblock %}
 
21
          {%- block sidebarrel %}
 
22
          {%- if prev %}
 
23
            <h4>{{ _('Previous topic') }}</h4>
 
24
            <p class="topless"><a href="{{ prev.link|e }}"
 
25
                                  title="{{ _('previous chapter') }}">{{ prev.title }}</a></p>
 
26
          {%- endif %}
 
27
          {%- if next %}
 
28
            <h4>{{ _('Next topic') }}</h4>
 
29
            <p class="topless"><a href="{{ next.link|e }}"
 
30
                                  title="{{ _('next chapter') }}">{{ next.title }}</a></p>
 
31
          {%- endif %}
 
32
          {%- endblock %}
 
33
          {%- block sidebarsourcelink %}
 
34
          {%- if show_source and has_source and sourcename %}
 
35
            <h3>{{ _('This Page') }}</h3>
 
36
            <ul class="this-page-menu">
 
37
              <li><a href="{{ pathto('_sources/' + sourcename, true)|e }}"
 
38
                     rel="nofollow">{{ _('Show Source') }}</a></li>
 
39
            </ul>
 
40
          {%- endif %}
 
41
          {%- endblock %}
 
42
          {%- if customsidebar %}
 
43
          {% include customsidebar %}
 
44
          {%- endif %}
 
45
          {%- block sidebarsearch %}
 
46
          {%- if pagename != "search" %}
 
47
          <div id="searchbox" style="display: none">
 
48
            <h3>{{ _('Quick search') }}</h3>
 
49
              <form class="search" action="{{ pathto('search') }}" method="get">
 
50
                <input type="text" name="q" size="18" />
 
51
                <input type="submit" value="{{ _('Go') }}" />
 
52
                <input type="hidden" name="check_keywords" value="yes" />
 
53
                <input type="hidden" name="area" value="default" />
 
54
              </form>
 
55
              <p class="searchtip" style="font-size: 90%">
 
56
              {{ _('Enter search terms or a module, class or function name.') }}
 
57
              </p>
 
58
          </div>
 
59
          <script type="text/javascript">$('#searchbox').show(0);</script>
 
60
          <p class="triangle-border right">
 
61
                                Psst... hey. Did you know you can read <a href="http://swift.openstack.org/1.2">Swift 1.2 docs</a> or <a href="http://swift.openstack.org/1.1">Swift 1.1 docs</a> also?
 
62
                        </p>
 
63
          {%- endif %}
 
64
 
 
65
          {%- endblock %}
 
66
        </div>
 
67
      </div>
 
68
      {%- endif %}{% endif %}
 
69
{%- endmacro %}
 
 
b'\\ No newline at end of file'