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
|
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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.
-->
<script type="text/html" id="main_menu_tmpl">
<div id="main-menu">
<ul class="nav nav-list" data-bind="foreach: artifactMenuItems">
<!-- ko ifnot: id -->
<li class="nav-header archiva-nav-header" data-bind="text: text"></li>
<!-- /ko -->
<!-- ko if: id -->
<li data-bind='redbackP: $data.redback, css: { active: $data.href == "#"+$root.activeMenuId() }'>
<a data-bind="text: text, attr: { id: id, href: href}"></a>
</li>
<!-- /ko -->
</ul>
<ul class="nav nav-list" redback-permissions="{permissions: ['archiva-manage-configuration']}"
data-bind="foreach: administrationMenuItems">
<!-- ko ifnot: id -->
<li class="nav-header archiva-nav-header" data-bind="text: text"></li>
<!-- /ko -->
<!-- ko if: id -->
<li data-bind='redbackP: $data.redback, css: { active: $data.href == "#"+$root.activeMenuId() }'>
<a data-bind="text: text, attr: { id: id, href: href}"></a>
</li>
<!-- /ko -->
</ul>
<ul class="nav nav-list" redback-permissions="{permissions: ['archiva-manage-users']}"
data-bind="foreach: usersMenuItems">
<!-- ko ifnot: id -->
<li class="nav-header archiva-nav-header" data-bind="text: text"></li>
<!-- /ko -->
<!-- ko if: id -->
<li data-bind='redbackP: $data.redback, css: { active: $data.href == "#"+$root.activeMenuId() }'>
<a data-bind="text: text, attr: { id: id, href: href}"></a>
</li>
<!-- /ko -->
</ul>
<ul class="nav nav-list" data-bind="foreach: docsMenuItems">
<!-- ko ifnot: id -->
<li class="nav-header archiva-nav-header" data-bind="text: text"></li>
<!-- /ko -->
<!-- ko if: id -->
<li data-bind='redbackP: $data.redback, css: { active: $data.href == "#"+$root.activeMenuId() }'>
<a data-bind="text: text, attr: { id: id, href: href, target: target}"></a>
</li>
<!-- /ko -->
</ul>
</div>
</script>
<script id="topbar_menu_tmpl" type="text/html">
<div id="topbar-menu">
<div class="navbar navbar-fixed-top"><!-- navbar-inverse for black topbar olamy: prefer non black :-) -->
<div style="max-height: 40px" class="navbar-inner">
<div class="container-fluid">
<div id="organisation-logo" style="max-height: 40px" class="pull-left"></div>
<ul class="nav pull-right">
<li id="create-admin-link" style="display: none">
<a href="#open-admin-create-box" onclick="adminCreateBox();" id="create-admin-link-a">
<span class="label label-important">${$.i18n.prop('create.admin.page.link')}</span>
</a>
</li>
<li id="login-link" style="display: none">
<a onclick="loginBox();" id="login-link-a">
<span class="btn btn-success label force-upper-case">${$.i18n.prop('login')}</span>
</a>
</li>
<li id="change-password-link">
<a onclick="editUserDetailsBox();">
<span class="btn btn-warning label force-upper-case">${$.i18n.prop('edit.details')}</span>
</a>
</li>
<li id="logout-link" style="display: none">
<a onclick="logout(false);" id="logout-link-a">
<span class="btn btn-danger label force-upper-case">${$.i18n.prop('logout')}</span>
</a>
</li>
<li id="register-link" style="display: none">
<a onclick="registerBox();" id="register-link-a">
<span class="btn btn-info label force-upper-case">${$.i18n.prop('register')}</span>
</a>
</li>
<li>
<div class="ui-widget navbar-search">
<input type="text" class="ui-autocomplete-input search-query" id="quick-search-autocomplete"
placeholder="${$.i18n.prop('menu.topbar.quicksearch')}"/>
</div>
</li>
</ul>
</div>
</div>
</div>
</div>
</script>
|