Project

General

Profile

metacat / docs / dev / metacat / source / themes / readable / layout.html @ 6148

1
{%- block doctype -%}
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
{%- endblock %}
5
{%- set reldelim1 = reldelim1 is not defined and ' &raquo;' or reldelim1 %}
6
{%- set reldelim2 = reldelim2 is not defined and ' |' or reldelim2 %}
7

    
8
{%- macro relbar() %}
9
    <div class="related">
10
      <h3>{{ _('Navigation') }}</h3>
11
      <ul>
12

    
13
        {%- if pagename != "search" %}
14
        <li class="right">
15
        <span id="searchbox" style="display: none; margin-right: 10px">
16
            <form class="search" action="{{ pathto('search') }}" method="get">
17
              <input type="text" name="q" size="18" />
18
              <input type="submit" value="{{ _('Go') }}" />
19
              <input type="hidden" name="check_keywords" value="yes" />
20
              <input type="hidden" name="area" value="default" />
21
            </form>
22
        </span>
23
        </li>
24
        <script type="text/javascript">$('#searchbox').show(0);</script>
25
        {%- endif %}
26

    
27

    
28
        {%- for rellink in rellinks %}
29
        <li class="right">
30
          <a href="{{ pathto(rellink[0]) }}" title="{{ rellink[1]|striptags }}"
31
             {{ accesskey(rellink[2]) }}>{{ rellink[3] }}</a>
32
          {{ reldelim2 }}</li>
33
        {%- endfor %}
34

    
35

    
36

    
37
        {%- block rootrellink %}
38
        <li><a href="{{ pathto(master_doc) }}">{{ shorttitle|e }}</a>{{ reldelim1 }}</li>
39
        {%- endblock %}
40
        {%- for parent in parents %}
41
          <li><a href="{{ parent.link|e }}" {% if loop.last %}{{ accesskey("U") }}{% endif %}>{{ parent.title }}</a>{{ reldelim1 }}</li>
42
        {%- endfor %}
43
        {%- block relbaritems %} {% endblock %}
44
      </ul>
45
      
46
    </div>
47
{%- endmacro %}
48

    
49
{%- macro sidebar() %}
50
      {%- if not embedded %}{% if not theme_nosidebar|tobool %}
51
      <div class="sphinxsidebar">
52
        <div class="sphinxsidebarwrapper">
53
          {%- block sidebarlogo %}
54
          {%- if logo %}
55
            <p class="logo"><a href="{{ pathto(master_doc) }}">
56
              <img class="logo" src="{{ pathto('_static/' + logo, 1) }}" alt="Logo"/>
57
            </a></p>
58
          {%- endif %}
59
          {%- endblock %}
60
          {%- block sidebartoc %}
61
          {%- if display_toc %}
62
            <h3><a href="{{ pathto(master_doc) }}">{{ _('Table Of Contents') }}</a></h3>
63
            {{ toc }}
64
          {%- endif %}
65
          {%- endblock %}
66
          {%- block sidebarrel %}
67
          {%- if prev %}
68
            <h4>{{ _('Previous topic') }}</h4>
69
            <p class="topless"><a href="{{ prev.link|e }}"
70
                                  title="{{ _('previous chapter') }}">{{ prev.title }}</a></p>
71
          {%- endif %}
72
          {%- if next %}
73
            <h4>{{ _('Next topic') }}</h4>
74
            <p class="topless"><a href="{{ next.link|e }}"
75
                                  title="{{ _('next chapter') }}">{{ next.title }}</a></p>
76
          {%- endif %}
77
          {%- endblock %}
78
          {%- block sidebarsourcelink %}
79
          {%- if show_source and has_source and sourcename %}
80
            <h3>{{ _('This Page') }}</h3>
81
            <ul class="this-page-menu">
82
              <li><a href="{{ pathto('_sources/' + sourcename, true)|e }}"
83
                     rel="nofollow">{{ _('Show Source') }}</a></li>
84
            </ul>
85
          {%- endif %}
86
          {%- endblock %}
87
          {%- if customsidebar %}
88
          {% include customsidebar %}
89
          {%- endif %}
90
          {%- block sidebarsearch %}
91
          {%- if pagename != "search" %}
92
          <div id="searchbox" style="display: none">
93
            <h3>{{ _('Quick search') }}</h3>
94
              <form class="search" action="{{ pathto('search') }}" method="get">
95
                <input type="text" name="q" size="18" />
96
                <input type="submit" value="{{ _('Go') }}" />
97
                <input type="hidden" name="check_keywords" value="yes" />
98
                <input type="hidden" name="area" value="default" />
99
              </form>
100
              <p class="searchtip" style="font-size: 90%">
101
              {{ _('Enter search terms or a module, class or function name.') }}
102
              </p>
103
          </div>
104
          <script type="text/javascript">$('#searchbox').show(0);</script>
105
          {%- endif %}
106
          {%- endblock %}
107
        </div>
108
      </div>
109
      {%- endif %}{% endif %}
110
{%- endmacro %}
111

    
112
<html xmlns="http://www.w3.org/1999/xhtml">
113
  <head>
114
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
115
    {{ metatags }}
116
    {%- if not embedded %}
117
      {%- set titlesuffix = " &mdash; "|safe + docstitle|e %}
118
    {%- else %}
119
      {%- set titlesuffix = "" %}
120
    {%- endif %}
121
    <title>{{ title|striptags }}{{ titlesuffix }}</title>
122
    <link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css" />
123
    <link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css" />
124
    {%- if not embedded %}
125
    <script type="text/javascript">
126
      var DOCUMENTATION_OPTIONS = {
127
        URL_ROOT:    '{{ pathto("", 1) }}',
128
        VERSION:     '{{ release|e }}',
129
        COLLAPSE_MODINDEX: false,
130
        FILE_SUFFIX: '{{ file_suffix }}',
131
        HAS_SOURCE:  {{ has_source|lower }}
132
      };
133
    </script>
134
    {%- for scriptfile in script_files %}
135
    <script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script>
136
    {%- endfor %}
137
    {%- if use_opensearch %}
138
    <link rel="search" type="application/opensearchdescription+xml"
139
          title="{% trans docstitle=docstitle|e %}Search within {{ docstitle }}{% endtrans %}"
140
          href="{{ pathto('_static/opensearch.xml', 1) }}"/>
141
    {%- endif %}
142
    {%- if favicon %}
143
    <link rel="shortcut icon" href="{{ pathto('_static/' + favicon, 1) }}"/>
144
    {%- endif %}
145
    {%- endif %}
146
{%- block linktags %}
147
    {%- if hasdoc('about') %}
148
    <link rel="author" title="{{ _('About these documents') }}" href="{{ pathto('about') }}" />
149
    {%- endif %}
150
    {%- if hasdoc('genindex') %}
151
    <link rel="index" title="{{ _('Index') }}" href="{{ pathto('genindex') }}" />
152
    {%- endif %}
153
    {%- if hasdoc('search') %}
154
    <link rel="search" title="{{ _('Search') }}" href="{{ pathto('search') }}" />
155
    {%- endif %}
156
    {%- if hasdoc('copyright') %}
157
    <link rel="copyright" title="{{ _('Copyright') }}" href="{{ pathto('copyright') }}" />
158
    {%- endif %}
159
    <link rel="top" title="{{ docstitle|e }}" href="{{ pathto('index') }}" />
160
    {%- if parents %}
161
    <link rel="up" title="{{ parents[-1].title|striptags }}" href="{{ parents[-1].link|e }}" />
162
    {%- endif %}
163
    {%- if next %}
164
    <link rel="next" title="{{ next.title|striptags }}" href="{{ next.link|e }}" />
165
    {%- endif %}
166
    {%- if prev %}
167
    <link rel="prev" title="{{ prev.title|striptags }}" href="{{ prev.link|e }}" />
168
    {%- endif %}
169
{%- endblock %}
170
{%- block extrahead %} {% endblock %}
171
  </head>
172
  <body>
173
  <div class="banner">
174
      <img class="logo" src="_static/metacat-logo.png" />
175
      <img class="logo-right" src="_static/nceas-logo.png" />
176
      <p class="title">Metacat: Metadata and Data Management Server</p>
177
  </div>
178

    
179
{%- block header %}{% endblock %}
180

    
181
{%- block relbar1 %}{{ relbar() }}{% endblock %}
182

    
183
{# Comment out the sidebar
184
  {%- block sidebar1 %} {# possible location for sidebar  {% endblock %}
185
#}
186
    <div class="document">
187
{%- block document %}
188
      <div class="documentwrapper">
189
      {%- if not embedded %}{% if not theme_nosidebar|tobool %}
190
        <div class="bodywrapper">
191
      {%- endif %}{% endif %}
192
          <div class="body">
193
            {% block body %} {% endblock %}
194
          </div>
195
      {%- if not embedded %}{% if not theme_nosidebar|tobool %}
196
        </div>
197
      {%- endif %}{% endif %}
198
      </div>
199
{%- endblock %}
200

    
201
{# {%- block sidebar2 %}{{ sidebar() }}{% endblock %} #}
202
      <div class="clearer"></div>
203
    </div>
204

    
205
{%- block relbar2 %}{{ relbar() }}{% endblock %}
206

    
207
{%- block footer %}
208
    <div class="footer">
209
    {%- if hasdoc('copyright') %}
210
      {% trans path=pathto('copyright'), copyright=copyright|e %}&copy; <a href="{{ path }}">Copyright</a> {{ copyright }}.{% endtrans %}
211
    {%- else %}
212
      {% trans copyright=copyright|e %}&copy; Copyright {{ copyright }}.{% endtrans %}
213
    {%- endif %}
214
    {%- if last_updated %}
215
      {% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}
216
    {%- endif %}
217
    {%- if show_sphinx %}
218
      {% trans sphinx_version=sphinx_version|e %}Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %}
219
    {%- endif %}
220
    </div>
221
{%- endblock %}
222
  </body>
223
</html>