* under the License.
*/
require(["text!js/archiva/templates/menu.html"+appendTemplateUrl(),
- "text!js/archiva/templates/topbar.html"+appendTemplateUrl(),
"text!js/archiva/templates/message.html"+appendTemplateUrl(),
"text!js/archiva/templates/modal.html"+appendTemplateUrl(),
"text!js/archiva/templates/grids-generics.html"+appendTemplateUrl(),
"text!js/archiva/templates/repository-groups.html"+appendTemplateUrl(),
"text!js/archiva/templates/search.html"+appendTemplateUrl(),
"text!js/archiva/templates/general-admin.html"+appendTemplateUrl()],
- function(menu,topbar,message,modal,grids_generics,repositories,network_proxies,proxies_connectors,
+ function(menu,message,modal,grids_generics,repositories,network_proxies,proxies_connectors,
repository_groups,search,general_admin) {
var htmlFragment=$("#html-fragments");
// template loading
- $.tmpl( menu ).appendTo(htmlFragment);
- $.tmpl( topbar ).appendTo(htmlFragment);
+ htmlFragment.append(menu);
htmlFragment.append(message);
$.tmpl( modal ).appendTo(htmlFragment);
htmlFragment.append(grids_generics);
startArchivaApplication=function(){
$.log("startArchivaApplication");
- $('#topbar-menu-container').html($("#topbar-menu"));
- $('#sidebar-content').html($("#main-menu"));
+ $('#topbar-menu-container').html($("#topbar_menu_tmpl" ).tmpl());//$("#topbar-menu"));
+ $('#sidebar-content').html( $("#main_menu_tmpl").tmpl());
hideElementWithKarma();
checkSecurityLinks();
~ 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">
</ul>
</div>
+</script>
+
+<script id="topbar_menu_tmpl" type="text/html">
+ <div id="topbar-menu">
+ <div class="navbar navbar-fixed-top">
+
+ <div style="max-height: 40px" class="navbar-inner">
+ <div class="container-fluid">
+ <div id="organisation-logo" class="pull-left"></div>
+ <div class="nav-collapse">
+ <ul class="nav pull-right">
+ <li id="create-admin-link" class="pull-right" style="display: none">
+ <a href="#" 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" class="pull-right" style="display: none">
+ <a href="#" onclick="loginBox();" id="login-link-a">
+ <span class="label label-success force-upper-case">${$.i18n.prop('login')}</span>
+ </a>
+ </li>
+ <li id="change-password-link" class="pull-right" style="">
+ <a href="#" onclick="editUserDetailsBox();">${$.i18n.prop('edit.details')}</a>
+ </li>
+ <li id="logout-link" class="pull-right" style="display: none">
+ <a href="#" onclick="logout(true);" id="logout-link-a">
+ <span class="label label-important force-upper-case">${$.i18n.prop('logout')}</span>
+ </a>
+ </li>
+ <li id="register-link" class="pull-right" style="display: none">
+ <a href="#" onclick="registerBox();" id="register-link-a">
+ <span class="label label-info force-upper-case">${$.i18n.prop('register')}</span>
+ </a>
+ </li>
+ <li class="pull-right">
+ <div class="ui-widget">
+ <input type="text" class="ui-autocomplete-input" id="quick-search-autocomplete"
+ placeholder="${$.i18n.prop('menu.topbar.quicksearch')}" />
+ </div>
+ </li>
+ </ul>
+
+ </div>
+ </div>
+ </div>
+
+ </div>
+ </div>
+</script>
\ No newline at end of file
+++ /dev/null
-<!--
- ~ 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.
--->
-<div id="topbar-menu">
-<div class="navbar navbar-fixed-top">
-
- <div style="max-height: 40px" class="navbar-inner">
- <div class="container-fluid">
- <div id="organisation-logo" class="pull-left"></div>
- <div class="nav-collapse">
- <ul class="nav pull-right">
- <li id="create-admin-link" class="pull-right" style="display: none">
- <a href="#" 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" class="pull-right" style="display: none">
- <a href="#" onclick="loginBox();" id="login-link-a">
- <span class="label label-success force-upper-case">${$.i18n.prop('login')}</span>
- </a>
- </li>
- <li id="change-password-link" class="pull-right" style="">
- <a href="#" onclick="editUserDetailsBox();">${$.i18n.prop('edit.details')}</a>
- </li>
- <li id="logout-link" class="pull-right" style="display: none">
- <a href="#" onclick="logout(true);" id="logout-link-a">
- <span class="label label-important force-upper-case">${$.i18n.prop('logout')}</span>
- </a>
- </li>
- <li id="register-link" class="pull-right" style="display: none">
- <a href="#" onclick="registerBox();" id="register-link-a">
- <span class="label label-info force-upper-case">${$.i18n.prop('register')}</span>
- </a>
- </li>
- <li class="pull-right">
- <div class="ui-widget">
- <input type="text" class="ui-autocomplete-input" id="quick-search-autocomplete"
- placeholder="${$.i18n.prop('menu.topbar.quicksearch')}" />
- </div>
- </li>
- </ul>
-
- </div>
- </div>
- </div>
-
-</div>
-</div>
\ No newline at end of file