header.html 4.54 KB
Newer Older
Anton Petrov's avatar
Anton Petrov committed
1
<!--
2
Copyright [2009-2017] EMBL-European Bioinformatics Institute
Anton Petrov's avatar
Anton Petrov committed
3
4
5
6
7
8
9
10
11
12
13
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
     http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

Anton Petrov's avatar
Anton Petrov committed
14
{% load staticfiles %}
15
{% load portal_extras %}
Anton Petrov's avatar
Anton Petrov committed
16

Anton Petrov's avatar
Anton Petrov committed
17
<div class="navbar navbar-default navbar-static-top">
Anton Petrov's avatar
Anton Petrov committed
18

Anton Petrov's avatar
Anton Petrov committed
19
  <div class="container rnacentral-masthead">
Anton Petrov's avatar
Anton Petrov committed
20

Anton Petrov's avatar
Anton Petrov committed
21
    <!-- global-search -->
22
    <div class="row" style="min-height: 120px;">
23
      <div class="col-md-4">
24
        <a href="/"><img src="{% static "img/logo/rnacentral-logo-lightgrey.png" %}" alt="RNAcentral logo" class="rnacentral-header-logo"></a>
Anton Petrov's avatar
Anton Petrov committed
25
      </div>
26
      <text-search-bar class="col-md-8"></text-search-bar>
27
    </div><!-- /row -->
Anton Petrov's avatar
Anton Petrov committed
28
    <!-- /global-search -->
Anton Petrov's avatar
Anton Petrov committed
29
30
31

  </div>

Anton Petrov's avatar
Anton Petrov committed
32
  <div class="container rnacentral-masthead-menu">
Anton Petrov's avatar
Anton Petrov committed
33
34
35
36
37
38
    <div class="navbar-header">
      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
39
      <p class="navbar-text">
40
        <span class="badge release-number">v17</span>
41
      </p>
Anton Petrov's avatar
Anton Petrov committed
42
43
44
    </div>
    <div class="navbar-collapse collapse">
      <ul class="nav navbar-nav navbar-left">
45
        {% get_expert_databases_list as expert_dbs %}
Anton Petrov's avatar
Anton Petrov committed
46
        <li class="dropdown">
47
          <a href="" class="dropdown-toggle" data-toggle="dropdown">Databases <b class="caret"></b></a>
48
          <ul class="dropdown-menu multi-column columns-2">
49
            <div class="row" style="max-height: 400px; overflow: auto;">
50
51
52
53
              {% for expert_db in expert_dbs %}
                {% if forloop.first %}
                  <div class="col-sm-5">
                    <ul class="multi-column-dropdown">
Anton Petrov's avatar
Anton Petrov committed
54
                {% elif forloop.counter0 == 21 %}
55
56
57
58
                  <div class="col-sm-7">
                    <ul class="multi-column-dropdown">
                {% endif %}
                <li>
59
                  <a href="{% url 'expert-database' expert_db_name=expert_db.label %}">{{ expert_db.name }}</a>
60
                </li>
Anton Petrov's avatar
Anton Petrov committed
61
                {% if forloop.counter0 == 20 or forloop.last %}
62
63
64
65
66
                    </ul>
                  </div>
                {% endif %}
              {% endfor %}
            </div>
67

68
69
70
71
            <div class="row">
              <div class="col-sm-12">
              <ul class="multi-column-dropdown">
                <li class="divider"></li>
72
                <li><a href="{% url 'expert-databases' %}">All databases</a></li>
73
74
75
              </ul>
              </div>
            </div>
Anton Petrov's avatar
Anton Petrov committed
76
77
          </ul>
        </li>
78

79
80
81
        <li class="dropdown">
          <a class="dropdown-toggle" data-toggle="dropdown" href="">Tools<b class="caret"></b></a>
          <ul class="dropdown-menu">
82
            <li><a href="{% url 'sequence-search' %}">Sequence search</a></li>
Carlos Eduardo Ribas's avatar
Carlos Eduardo Ribas committed
83
            <li><a href="{% url 'r2dt' %}">R2DT: RNA 2D Templates</a></li>
Anton Petrov's avatar
Anton Petrov committed
84
            <li><a href="{% url 'help-public-database' %}">Public Postgres database</a></li>
85
86
87
88
            <li><a href="{% url 'genome-browser' %}">Genome browser</a></li>
          </ul>
        </li>

89
90
91
92
93
94
95
96
        <li class="dropdown">
          <a class="dropdown-toggle" data-toggle="dropdown" href="">API<b class="caret"></b></a>
          <ul class="dropdown-menu">
            <li><a href="{% url 'api-v1-root' %}">Browsable API</a></li>
            <li><a href="{% url 'api-docs' %}">API Documentation</a></li>
          </ul>
        </li>

97
98
99
100
101
102
103
104
        <li><a href="{% url 'downloads' %}">Downloads</a></li>
        <li><a href="/search?q=RNA">Browse</a></li>
      </ul>
      <ul class="nav navbar-nav navbar-right">
        <li>
          <a href="{% url 'about' %}">About</a>
        </li>
        <li>
Anton Petrov's avatar
Anton Petrov committed
105
          <a href="{% url 'help' %}">Help</a>
106
        </li>
carlosribas's avatar
carlosribas committed
107
108
109
        <li>
          <a href="https://www.surveymonkey.co.uk/r/LCSF3G7" class="help no-icon" title="Please help us improve RNAcentral" target="_blank" style="color: #fff"><strong>Survey <i class="fa fa-check-square-o"></i></strong></a>
        </li>
110
        <li><a href="" class="doorbell-feedback help" title="Send quick feedback without leaving the page">Feedback <i class="fa fa-comment"></i></a></li>
Anton Petrov's avatar
Anton Petrov committed
111
112
113
      </ul>
    </div><!--/.nav-collapse -->
  </div>
Anton Petrov's avatar
Anton Petrov committed
114

Anton Petrov's avatar
Anton Petrov committed
115
</div>