-
Notifications
You must be signed in to change notification settings - Fork 31
/
layout.html
133 lines (130 loc) · 4.96 KB
/
layout.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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<!DOCTYPE html>
<html lang="en">
<head>
<title>{{ title }}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" media="all" type="text/css" href="{{static_url('css/powa-all.min.css')}}" />
<link rel="stylesheet" media="all" type="text/css" href="{{static_url('css/translucent.css')}}" />
<link rel="icon" type="image/x-icon" href="{{ static_url('img/favicon/favicon.ico') }}">
<link rel="shortcut icon" href="{{static_url('img/favicon/favicon.ico') }}" type="image/x-icon" />
<meta name="msapplication-TileColor" content="#2b5797">
<meta name="msapplication-TileImage" content="{{ static_url('img/favicon/mstile-144x144.png') }}">
{% block header %} {% end %}
</head>
<body>
<nav class="top-bar" data-topbar role="navigation">
<ul class="title-area">
<li class="name">
<h1><a href="{{ reverse_url('Overview')}}"><img src="{{ static_url('img/favicon/favicon-32x32.png')}}"/> PoWA</a></h1>
</li>
</ul>
{% if current_user %}
<section class="top-bar-section">
<ul class="left">
<li class="title powa-text">
Server <b>{{ handler.current_server }}</b>
({{ handler.current_connection }})
</li>
<li>
<a href="{{ reverse_url('RepositoryConfigOverview')}}" title="Configuration">
<i class="fi-widget"></i>
Configuration
</a>
</li>
<li>
<a id="reload_collector"href="#">
<i class="fi-loop"></i> Reload collector
</a>
</li>
</ul>
</section>
<section class="top-bar-section">
<ul class="right">
<li>
<a href="{{ reverse_url('logout')}}">
<i class="fi-power"></i>
Logout
</a>
</li>
</ul>
</section>
{% end %}
</nav>
{% if current_user %}
<div class="row">
<div class="large-7 columns">
{% if hasattr(handler, 'breadcrumb') %}
<ul class="breadcrumbs">
<li>
<strong>
<a href="{{ reverse_url('Overview') }}"><i class="fi-home"></i></a>
</strong>
</li>
{% set last = len(handler.breadcrumb) - 1 %}
{% for i, crumb_item in enumerate(reversed(handler.breadcrumb)) %}
<li class="{{'current' if last == i else ''}}">
{% if i != last %}
<a data-url-has-params href="{{ reverse_url_with_params(crumb_item.url_name, url_args=crumb_item.url_params.values())}}">{{crumb_item.title}}</a>
{% else %}
{{ crumb_item.title}}
{% end %}
</li>
{% if crumb_item.children and i == last %}
<li class="current">
<button href="#" data-dropdown="drop-{{crumb_item.url_name}}" aria-controls="drop-{{crumb_item.url_name}}" aria-expanded="false" class="dropdown button button-link">Choose one ...</button>
<ul id="drop-{{crumb_item.url_name}}" data-dropdown-content class="f-dropdown" aria-hidden="true">
{% for child in crumb_item.children %}
<li>
<a data-url-has-params href="{{ reverse_url_with_params(child.url_name, url_args=child.url_params.values())}}">{{child.title}}</a>
</li>
{% end %}
</ul>
</li>
{% end %}
{% end %}
</ul>
{% end %}
</div>
<div class="large-5 columns">
<div class="right" type="text" id="daterangepicker">
<strong>
<i class="fi-calendar"></i>
</strong>
<input data-role="start_date"></input>
<input data-role="end_date"></input>
</div>
</div>
</div>
{% end %}
<div id="messages">
{% module Messages() %}
</div>
{% block content %} {% end %}
<footer>
<div class="large-12 columns" >
<div class="row hide-for-small">
<div class="large-6 columns">
<ul class="inline-list ">
<li>Version {{version()}}</li>
<li>© 2014-2017 Dalibo</li>
<li>© 2018-{{year()}} The PoWA-team</li>
<li><a href="https://powa.readthedocs.io">https://powa.readthedocs.io</a></li>
</ul>
</div>
<div class="large-6 columns">
<ul class="inline-list right">
<li><a href="https://github.com/powa-team/powa-web/issues">Report a bug</a></li>
</ul>
</div>
</div>
</div>
</footer>
{% if handler.application.settings['debug'] %}
<script data-main="{{ static_url('js/config.js')}}" src="{{static_url('js/require.js')}}"></script>
{% else %}
<script data-main="{{ static_url('js/powa.min-all.js')}}" src="{{static_url('js/require.js')}}"></script>
{% end %}
</body>
</html>