parent
2fe3f14b55
commit
6ff453e213
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,25 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
|
||||||
|
*
|
||||||
|
* WSO2 Inc. 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.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
var resources = function (page, meta) {
|
||||||
|
return {
|
||||||
|
js: ['asset-helpers.js','navigation.js','popover.js'],
|
||||||
|
css: ['navigation.css','custom-desktop.css']
|
||||||
|
};
|
||||||
|
};
|
@ -0,0 +1,101 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||||
|
<title>{{include title}}</title>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<meta name="description" content="">
|
||||||
|
<meta name="author" content="">
|
||||||
|
|
||||||
|
<!-- Le styles -->
|
||||||
|
<link href="{{url "/themes/store/css/bootstrap.min.css"}}" rel="stylesheet">
|
||||||
|
<link href="{{url "/themes/store/css/custom.css"}}" rel="stylesheet">
|
||||||
|
<link href="{{url "/themes/store/css/font-awesome.min.css"}}" rel="stylesheet">
|
||||||
|
<link href="{{url "/themes/store/css/fontwso2.css"}}" rel="stylesheet">
|
||||||
|
<link href="{{url "/themes/store/css/fontwso2-extend.css"}}" rel="stylesheet">
|
||||||
|
{{css}}
|
||||||
|
|
||||||
|
<!-- Fav and touch icons -->
|
||||||
|
<link rel="shortcut icon" href="http://wso2.com/files/favicon.ico" type="image/x-icon" />
|
||||||
|
|
||||||
|
|
||||||
|
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
|
||||||
|
<!--[if lt IE 9]>
|
||||||
|
<script src="{{url "/themes/store/js/html5shiv.min.js"}}"></script>
|
||||||
|
<script src="{{url "/themes/store/js/respond.min.js"}}"></script>
|
||||||
|
<link rel="stylesheet" href="{{url "/themes/store/css/ie.css"}}" type="text/css">
|
||||||
|
<![endif]-->
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div class="wrapper">
|
||||||
|
<div class="container-fluid header-container">
|
||||||
|
{{ include header}}
|
||||||
|
</div>
|
||||||
|
<div class="container-fluid navigation-container">
|
||||||
|
{{include navigation}}
|
||||||
|
</div>
|
||||||
|
<div class="container-fluid body-container">
|
||||||
|
<div id="assets-container">
|
||||||
|
{{include body}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{>footer}}
|
||||||
|
|
||||||
|
<!-- /container -->
|
||||||
|
|
||||||
|
<!-- Le javascript
|
||||||
|
================================================== -->
|
||||||
|
<!-- Placed at the end of the document so the pages load faster -->
|
||||||
|
<script src="{{url "/themes/store/js/jquery-1.11.1.min.js"}}"></script>
|
||||||
|
<script src="{{url "/themes/store/js/bootstrap.min.js"}}"></script>
|
||||||
|
<script src="{{url "/themes/store/js/async.min.js"}}"></script>
|
||||||
|
<script src="{{url "/themes/store/js/handlebars.js"}}"></script>
|
||||||
|
<script src="{{url "/themes/store/js/theme.js"}}"></script>
|
||||||
|
{{js}}
|
||||||
|
{{code}}
|
||||||
|
<script src="{{url "/themes/store/js/caramel.handlebars.client.js"}}"></script>
|
||||||
|
<script src="{{url "/themes/store/js/caramel-client.js"}}"></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
|
||||||
|
$(document).ready(function () {
|
||||||
|
$('.navigation-container').affix({
|
||||||
|
offset: {
|
||||||
|
top: $('header').height()
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
$(document).ready(function () {
|
||||||
|
$('[data-toggle="tooltip"]').tooltip();
|
||||||
|
$("[data-toggle=popover]").popover();
|
||||||
|
$(".ctrl-filter-type-switcher").popover({
|
||||||
|
html: true,
|
||||||
|
content: function () {
|
||||||
|
return $('#content-filter-types').html();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
$('#nav').affix({
|
||||||
|
offset: {
|
||||||
|
top: $('header').height()
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
function openCollapsedNav() {
|
||||||
|
$('.wr-hidden-nav-toggle-btn').addClass('active');
|
||||||
|
$('#hiddenNav').slideToggle('slideDown', function () {
|
||||||
|
if ($(this).css('display') == 'none') {
|
||||||
|
$('.wr-hidden-nav-toggle-btn').removeClass('active');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
@ -0,0 +1,47 @@
|
|||||||
|
<div id="nav" class="row wr-app-bar">
|
||||||
|
<div class="wr-action-container">
|
||||||
|
<div class="wr-action-btn-bar">
|
||||||
|
<a href="javascript:openCollapsedNav()" class="cu-btn wr-hidden-nav-toggle-btn">
|
||||||
|
<i class="fw fw-tiles fw-2x"></i>
|
||||||
|
</a><a class="cu-btn page-title" href='javascript:location.reload();'>
|
||||||
|
<span class="fw-stack"></span>
|
||||||
|
{{page_title}}
|
||||||
|
</a>{{#each currentActions}}<a href="{{url}}" class="cu-btn {{class}}">
|
||||||
|
<span class="fw-stack">
|
||||||
|
<i class="fw fw-ring fw-stack-2x"></i>
|
||||||
|
<i class="fw {{icon}} fw-stack-1x"></i>
|
||||||
|
</span>
|
||||||
|
{{action_title}}
|
||||||
|
</a>
|
||||||
|
{{/each}}{{#if enableBack}}<a href="javascript:history.go(-1)" class="cu-btn">
|
||||||
|
<span class="fw-stack">
|
||||||
|
<i class="fw fw-ring fw-stack-2x"></i>
|
||||||
|
<i class="fw fw-left-arrow fw-stack-1x"></i>
|
||||||
|
</span>
|
||||||
|
Go Back
|
||||||
|
</a>
|
||||||
|
{{/if}}
|
||||||
|
<a href="javascript:toggleNotificationbar()" class="cu-btn wr-notification-toggle-btn">
|
||||||
|
<span class="fw-stack-md">
|
||||||
|
<i class="fw fw-bell fw-stack-1-5x"></i>
|
||||||
|
</span>
|
||||||
|
<span class="wr-notification-bubble">0</span>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- secondary header - app bar -->
|
||||||
|
|
||||||
|
<!-- common navigation -->
|
||||||
|
<div id="hiddenNav" class="wr-hidden-nav">
|
||||||
|
<ul>
|
||||||
|
<li><a href="/iotserver/dashboard"><i class="fw fw-dashboard"></i>Dashboard</a></li>
|
||||||
|
<li><a href="/iotserver/devices"><i class="fw fw-devices"></i>My Devices</a></li>
|
||||||
|
<li><a href="/iotserver/groups"><i class="fw fw-grouping"></i>My Groups</a></li>
|
||||||
|
{{#if permissions.ADD_USER}}
|
||||||
|
<li><a href="/iotserver/users"><i class="fw fw-user"></i>User Management</a></li>
|
||||||
|
{{/if}}
|
||||||
|
<li><a href="/iotserver/policies"><i class="fw fw-policy"></i>Policy Management</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<!-- /common navigation -->
|
Loading…
Reference in new issue