Project

General

Profile

metacat / docs / user / metacat / source / themes / metacatui / layout.html @ 8243

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;">
16
            <form class="search" action="{{ pathto('search') }}" method="get">
17
              <input type="text" name="q" size="18" />
18
              <input type="submit" value="{{ _('Go') }}" class="icon-search"/>
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 class="breadcrumb first"><a href="{{ pathto(master_doc) }}">{{ shorttitle|e }}</a>{{ reldelim1 }}</li>
39
        {%- endblock %}
40
        {%- for parent in parents %}
41
          <li class="breadcrumb"><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="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.no-icons.min.css" type="text/css" />
123
    <link rel="stylesheet" href="http://netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" type="text/css" />
124
    <link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css" />
125
    <link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css" />
126
    {%- if not embedded %}
127
    <script type="text/javascript">
128
      var DOCUMENTATION_OPTIONS = {
129
        URL_ROOT:    '{{ pathto("", 1) }}',
130
        VERSION:     '{{ release|e }}',
131
        COLLAPSE_MODINDEX: false,
132
        FILE_SUFFIX: '{{ file_suffix }}',
133
        HAS_SOURCE:  {{ has_source|lower }}
134
      };
135
    </script>
136
    {%- for scriptfile in script_files %}
137
    <script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script>
138
    {%- endfor %}
139
    {%- if use_opensearch %}
140
    <link rel="search" type="application/opensearchdescription+xml"
141
          title="{% trans docstitle=docstitle|e %}Search within {{ docstitle }}{% endtrans %}"
142
          href="{{ pathto('_static/opensearch.xml', 1) }}"/>
143
    {%- endif %}
144
    {%- if favicon %}
145
    <link rel="shortcut icon" href="{{ pathto('_static/' + favicon, 1) }}"/>
146
    {%- endif %}
147
    {%- endif %}
148
{%- block linktags %}
149
    {%- if hasdoc('about') %}
150
    <link rel="author" title="{{ _('About these documents') }}" href="{{ pathto('about') }}" />
151
    {%- endif %}
152
    {%- if hasdoc('genindex') %}
153
    <link rel="index" title="{{ _('Index') }}" href="{{ pathto('genindex') }}" />
154
    {%- endif %}
155
    {%- if hasdoc('search') %}
156
    <link rel="search" title="{{ _('Search') }}" href="{{ pathto('search') }}" />
157
    {%- endif %}
158
    {%- if hasdoc('copyright') %}
159
    <link rel="copyright" title="{{ _('Copyright') }}" href="{{ pathto('copyright') }}" />
160
    {%- endif %}
161
    <link rel="top" title="{{ docstitle|e }}" href="{{ pathto('index') }}" />
162
    {%- if parents %}
163
    <link rel="up" title="{{ parents[-1].title|striptags }}" href="{{ parents[-1].link|e }}" />
164
    {%- endif %}
165
    {%- if prev %}
166
    <link rel="prev" title="{{ prev.title|striptags }}" href="{{ prev.link|e }}" />
167
    {%- endif %}
168
    {%- if next %}
169
    <link rel="next" title="{{ next.title|striptags }}" href="{{ next.link|e }}" />
170
    {%- endif %}
171
{%- endblock %}
172
{%- block extrahead %} {% endblock %}
173
  </head>
174
  <body>
175
  <div id="metacatDocs">
176
          <div class="banner">
177
              <img class="logo" src="_static/metacat-logo-white.png" />
178
              <img class="logo-right" src="_static/nceas-logo-white.png" />
179
              <p class="title">Metacat: Metadata and Data Management Server</p>
180
          </div>
181
                        
182
        {%- block header %}{% endblock %}
183

    
184
        {%- block relbar1 %}{{ relbar() }}{% endblock %}
185

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

    
204
        {# {%- block sidebar2 %}{{ sidebar() }}{% endblock %} #}
205
              <div class="clearer"></div>
206
            </div>
207

    
208

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