File: layout.html

package info (click to toggle)
drslib 0.3.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,596 kB
  • sloc: python: 6,119; xml: 988; makefile: 128; sh: 121
file content (149 lines) | stat: -rw-r--r-- 4,813 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
{# Junja template based on the ESGF standard website template #}
{% block doctype -%}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
{% endblock %}
{% extends "basic/layout.html" %}

{% set projects = (
  ('installer', "http://esgf.org/esgf-installer-site/"),
  ('node-manager', "http://esgf.org/esg-node-site/"),
  ('publisher', "http://esgf.org/esg-publisher-site/"),
  ('idp', "http://esgf.org/esgf-idp-site/"),
  ('orp', "http://esgf.org/esg-orp-site"),
  ('security', "http://esgf.org/esgf-security-site"),
  ('search', "http://esgf.org/esg-search-site"),
  ('script-gen', "http://esgf.org/esg-script-gen-site"),
  ('drslib', "http://esgf.org/esgf-drslib-site"),
  ('stager', "http://esgf.org/esgf-stager-site"),
  ('...', "http://esgf.org/projects.html"),
)
%}

{% set internal_links = (
  ('esgf', "http://esgf.org/"),
  ('design', ""),
  ('download', "http://pypi.python.org/pypi/drslib"),
  ('quickstart', "intro.html#quick-start"),
  ('developer&nbsp;info', ""),
  ('performance', ""),
  ('repo', "http://esgf.org/gitweb/?p=esgf-drslib.git;a=summary"),
  ('code docs', "modules.html"),
  ('dep-report', ""),
  ('unit tests', "intro.html#testing"),
  ('coverage', ""),
  ('ci', ""),
  ('faq', ""),
  ('mailing list', ""),
  ('bugs', ""),
  ('wiki', ""),
  ('blog', ""),
)
%}  

{% macro projectbar() %}
<div class="projects">  <!-- projects -->   
  {%- for p, url in projects -%}
    {%- if p == theme_esgf_project %}
      <b>{{ p }}</b> &middot;
    {%- else %}
      <a href="{{ url }}">{{ p }}</a>
    {%- endif %}
  {%- endfor -%}
</div> <!-- projects -->    
{% endmacro %}

{% macro subprojectbar() %}
<div class="lsidebar">  <!-- lsidebar -->
  <ul>
    {%- for p, url in internal_links -%}
      {%- if url == "" %}
      <li class="missing">{{ p }}</li>
      {%- else %}      
      <li><a href="{{ url }}">{{ p }}</a></li>
      {%- endif %}
    {%- endfor -%}
  </ul>
</div> <!-- lsidebar -->
{% endmacro %}

<html>
  <head>
    {% block htmltitle %}
    <title>ESGF: esgf-drslib</title>
    {% endblock %}
    {% block extrahead %}
    <!-- the syle sheet link  -->
    <!-- favuorite icon - needs to have the http://full_path link  -->
    <link rel="icon" type="image/png" href="http://esgf.org/images/esgf-favicon.png">
    <!-- keywords for search  engines  -->
    <meta name="keywords" content="earth systems grid, go-essp, esgf, distributed computing, distributed storage, climage science">
    <meta name="description" content="A distributed database for structured data.">		
    <meta http-equiv='Content-Type' content='text/html;charset=utf-8'> 
    {% endblock %}
  </head>
  
  <!-- the page code starts here -->    
  <body>
    <div >  <!-- body -->    
      {% block header %}
      <!-- header starts here -->
      <div id="header" style="overflow: hidden">
        <!-- image floats tot the right -->
        <div style='float: right; margin-right: 20px'> 
	  <img src='{{ pathto("_static/images/logo.png", 1) }}' width="70" height="70" >	 
        </div>
        
	<div id='logo' style='float: left; margin-right: 20px; margin-left: -10px'>
	  <a href="http://esgf.org/"><img src='http://esgf.org/images/esgf-logo.png' width="70" height="70" border="0"></a>
        </div>
	
	<div>  <!-- inside header -->   
	  <div class="title">ESGF</div>
	  <div class="subtitle">Earth System Grid Federation</div>
          <!-- projects top navigation -->  
	  {{ projectbar() }}
	  
        </div>  <!-- inside header -->
      </div>  <!-- header -->
      <!-- left side navigation bar starts here -->
      {# Support overriding left sidebar with template inheritance #}
      {% block lsidebar %}
      {{ subprojectbar() }}
      {% endblock lsidebar %}
      {% endblock %}
      <!-- main text comes here -->

      {%- block content %}
      {%- block sidebar1 %} {{ sidebar() }} {% endblock %}
      
      <div class="document">
	{%- block document %}
	<div class='content'>
	  {{ super() }}
	</div> <!-- content -->
	{%- endblock %}

	{%- block sidebar2 %}{% endblock %}
	<div class="clearer"></div>
      </div>
      {%- endblock %}

      <br class="clearfloat" />
      {% block footer %}
      <!-- footer section here -->
      <div id="footer"> 
	<div >  
	  <div class="projects"> 
	    <a href="http://www-pcmdi.llnl.gov" target="_other">PCMDI</a> &middot;
	    <a href="http://cmip-pcmdi.llnl.gov/cmip5/" target="_other">CMIP5</a> &middot; 
	    <a href="http://www.llnl.gov" target="_other">LLNL</a> &middot;
            <a href="https://www.llnl.gov/disclaimer.html" target="_other">Privacy &amp; Legal Notice</a> &middot;
            <a  > LLNL-WEB-460643 &nbsp;&nbsp;&nbsp; </a &middot;></div>
	</div>
      </div>    <!-- footer -->      
      {% endblock %}
    </div> <!-- body -->    
  </body>
</html>