-
-
Notifications
You must be signed in to change notification settings - Fork 280
/
navigation.html
212 lines (183 loc) · 8.66 KB
/
navigation.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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
{% include 'patternfly.html' %}
</head>
<body style="background-color: #030303">
<!-- PatternFly Horizontal Nav -->
<nav class="navbar navbar-default navbar-pf" role="navigation">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/" target="_parent">
<img src="{% static 'images/kiwi_h20.png' %}" alt="Kiwi TCMS" />
</a>
</div>
<div class="collapse navbar-collapse navbar-collapse-1">
<ul class="nav navbar-nav navbar-utility">
<li class="dropdown" style="float:right">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<span class="pficon pficon-user"></span>
{% if user.is_authenticated %}{{ user }}{% else %}Welcome Guest{% endif %}
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
{% if user.is_authenticated %}
<li>
<a href="{% url "testruns-all" %}?people={{ user.username }}" target="_parent">My Test Runs</a>
</li>
<li>
<a href="{% url "plans-all" %}?author__email__startswith={{ user.email|urlencode }}" target="_parent">My Test Plans</a>
</li>
<li class="divider"></li>
<li>
<a href="{% url "tcms-profile" user.username %}" target="_parent">My profile</a>
</li>
<li>
<a href="{% url "tcms-password_change" %}" target="_parent">Change password</a>
</li>
<li class="divider"></li>
{% if AUTH_BACKEND.can_logout %}
<li>
<a href="{% url "tcms-logout" %}" target="_parent">Logout</a>
</li>
{% endif %}
{% else %}
{% if AUTH_BACKEND.can_login %}
<li>
<a href="{% url "tcms-login" %}" target="_parent">Login</a>
</li>
{% endif %}
<li class="divider"></li>
{% if AUTH_BACKEND.can_register %}
<li>
<a href="{% url "tcms-register" %}" target="_parent">Register</a>
</li>
{% endif %}
{% endif %}
</ul>
</li>
<li class="dropdown" style="float:right">
<a class="nav-item-iconic" id="horizontalDropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
<span title="Help" class="fa pficon-help"></span>
<span class="caret"></span>
</a>
<ul class="dropdown-menu" aria-labelledby="horizontalDropdownMenu1">
{% for link in SETTINGS.HELP_MENU_ITEMS %}
<li><a href="{{ link.0 }}" target="_parent">{{ link.1 }}</a></li>
{% endfor %}
<li class="divider"></li>
<li><a target="_parent" href="https://github.com/kiwitcms/Kiwi/blob/master/CHANGELOG.rst#change-log">Version {{ SETTINGS.KIWI_VERSION }}</a></li>
</ul>
</li>
</ul>
<ul class="nav navbar-nav navbar-primary">
<li>
<a href="{% url "core-views-index" %}" target="_parent">DASHBOARD</a>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
TESTING
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
{% if not user.is_authenticated %}
<li>
<a href="{% url "tcms-login" %}" target="_parent">Login required</a>
</li>
{% endif %}
{% if perms.testplans.add_testplan %}
<li>
<a href="{% url "plans-new" %}" target="_parent">New Test Plan</a>
</li>
{% endif %}
<li class="divider"></li>
{% if perms.testcases.add_testcase %}
<li>
<a href="{% url "testcases-new" %}" target="_parent">New Test Case</a>
</li>
{% endif %}
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
SEARCH
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li>
<a href="{% url "plans-all" %}" target="_parent">Search Test Plans</a>
</li>
<li>
<a href="{% url "testruns-all" %}" target="_parent">Search Test Runs</a>
</li>
<li>
<a href="{% url "testcases-search" %}" target="_parent">Search Test Cases</a>
</li>
<li class="divider"></li>
<li>
<a href="/advance-search/" target="_parent">Advanced search</a>
</li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
REPORTING
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li>
<a href="{% url "report-overall" %}" target="_parent">Overall report</a>
</li>
<li>
<a href="{% url "report-custom" %}" target="_parent">Custom report</a>
</li>
<li>
<a href="{% url "testing-report" %}" target="_parent">Testing report</a>
</li>
<li>
<a href="/report_builder/" target="_parent">Report builder</a>
</li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
ADMIN
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li class="dropdown-submenu">
<a tabindex="-1" href="#">Environment</a>
<ul class="dropdown-menu">
<li>
<a href="{% url "mgmt-environment_groups" %}" target="_parent">Groups</a>
</li>
<li>
<a href="{% url "mgmt-environment_properties" %}" target="_parent">Properties</a>
</li>
</ul>
</li>
{% if user.is_staff %}
{% if perms.auth.change_user %}
<li class="divider"></li>
<li>
<a href="/admin/auth/" target="_parent">Users and groups</a>
</li>
{% endif %}
<li class="divider"></li>
<li>
<a href="/admin/" target="_parent">Everything else</a>
</li>
{% endif %}
</ul>
</li>
</ul>
</div>
</nav>
</body>
</html>