-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbase.html
116 lines (105 loc) · 6.85 KB
/
base.html
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
{% extends "bootstrap/base.html" %}
{% from "_macros.html" import render_field_with_errors, render_narrow_field_with_errors, render_wide_field_with_errors, render_field, render_static_field %}
{% block head %}
{{ super() }}
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/bs/jszip-2.5.0/dt-1.11.3/b-2.0.1/b-colvis-2.0.1/b-html5-2.0.1/b-print-2.0.1/cr-1.5.5/fh-3.2.0/sl-1.3.3/datatables.min.css"/>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap3-dialog/1.34.7/css/bootstrap-dialog.min.css" />
<link rel="stylesheet" type="text/css" href="/static/css/styles.css" />
<title>OGRDB</title>
{% endblock %}
{% block content %}
<div class="container">
<div class="row">
<div class="col-lg-12 col-lg-offset-0">
<div class="logo">
<div>
<a href="https://www.antibodysociety.org/the-airr-community/"><img class="logo-right" src="/static/img/airr-lozenge.png"></a>
{% block pagetitle %}
{% endblock %}
<a href="{{ url_for('index') }}"><img class="logo-left" src="/static/img/ogre-lozenge.png"></a>
</div>
</div>
{% include "_messages.html" %}
</div>
</div>
<div class="row">
<div class="menu">
<a href="{{ url_for('index') }}" class="m-item">Home</a> |
<span class="dropdown">
<a href="#" class="dropdown-toggle m-item" style="padding-left: 10px" id="dropdownMenu1" data-toggle="dropdown">
Germline Sets
<span class="caret"></span>
</a>
<span class="dropdown-menu" aria-labelledby="dropdownMenu1">
<ul>
<li><a href="{{ url_for('germline_sets', species='Homo sapiens') }}" class="m-item">Human (Homo sapiens)</a></li>
<li><a href="{{ url_for('germline_sets', species='Mus musculus') }}" class="m-item">Mouse (Mus musculus)</a></li>
{% if current_user.has_role('Salmo salar') %}
<li><a href="{{ url_for('germline_sets', species='Oncorhynchus mykiss') }}" class="m-item">Rainbow Trout (Oncorhynchus mykiss)</a></li>
<li><a href="{{ url_for('germline_sets', species='Salmo salar') }}" class="m-item">Atlantic Salmon (Salmo salar)</a></li>
{% endif %}
</ul>
</span>
</span> |
<span class="dropdown">
<a href="#" class="dropdown-toggle m-item" style="padding-left: 10px" id="dropdownMenu1" data-toggle="dropdown">
Sequences
<span class="caret"></span>
</a>
<span class="dropdown-menu" aria-labelledby="dropdownMenu1">
<ul>
<li><a href="{{ url_for('sequences', sp='Homo sapiens') }}" class="m-item">Human (Homo sapiens)</a></li>
<li><a href="{{ url_for('sequences', sp='Mus musculus') }}" class="m-item">Mouse (Mus musculus)</a></li>
<li><a href="{{ url_for('sequences', sp='Macaca mulatta') }}" class="m-item">Macaque (Macaca mulatta)</a></li>
{% if current_user.has_role('Salmo salar') %}
<li><a href="{{ url_for('sequences', sp='Oncorhynchus mykiss') }}" class="m-item">Rainbow Trout (Oncorhynchus mykiss)</a></li>
<li><a href="{{ url_for('sequences', sp='Salmo salar') }}" class="m-item">Salmon (Salmo salar)</a></li>
{% endif %}
{% if current_user.has_role('Admin') %}
<li><a href="{{ url_for('sequences', sp='Test') }}" class="m-item">Test</a></li>
{% endif %}
<li role="separator" class="divider"></li></li>
<li><a href="{{ url_for('vdjbase_review') }}" class="m-item">Review VDJbase</a></li>
</ul>
</span>
</span> |
<a href="{{ url_for('genotype_statistics') }}" class="m-item">Statistics</a> |
<a href="{{ url_for('submissions') }}" class="m-item">Submissions</a> |
{% if current_user.active %}
<a href="{{ url_for('profile') }}" class="m-item">Profile</a> |
{% if current_user.has_role('Admin') %}
<a href="{{ '/admin' }}" class="m-item">Admin</a> |
{% endif %}
<a href="{{ url_for_security('logout') }}" class="m-item">{{ current_user.name }} - Logout</a>
{% else %}
<a href="{{ url_for_security('register') }}" class="m-item">Register</a> |
<a href="{{ url_for_security('login') }}" class="m-item">Login</a>
{% endif %}
</div>
</div>
{% block c_body %}{% endblock %}
<footer>
<div class="row">
<div class="col-sm-12">
<div class="center">
<p>Copyright is retained by contributors. <a href="{{ url_for('render_page', page='privacy_statement.html') }}"> Privacy </a><a href="{{ url_for('render_page', page='licensing_statement.html') }}"> | Licensing </a></p>
</div>
</div>
</div>
</footer>
</div>
{% endblock %}
{% block scripts %}
<script src="https://code.jquery.com/jquery-3.3.1.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap3-dialog/1.34.7/js/bootstrap-dialog.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.36/pdfmake.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.36/vfs_fonts.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/v/bs/jszip-2.5.0/dt-1.11.3/b-2.0.1/b-colvis-2.0.1/b-html5-2.0.1/b-print-2.0.1/cr-1.5.5/fh-3.2.0/sl-1.3.3/datatables.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jeditable.js/2.0.19/jquery.jeditable.min.js"></script>
<script>
$(function () {
$('[data-toggle="tooltip"]').tooltip()
})
</script>
{% endblock %}