2013-10-25 07:26:07 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" ng-app="redash" ng-controller='MainCtrl'> <![endif]-->
|
|
|
|
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" ng-app="redash" ng-controller='MainCtrl'> <![endif]-->
|
|
|
|
<!--[if IE 8]> <html class="no-js lt-ie9" ng-app="redash" ng-controller='MainCtrl'> <![endif]-->
|
|
|
|
<!--[if gt IE 8]><!--> <html class="no-js" ng-app="redash" ng-controller='MainCtrl'> <!--<![endif]-->
|
|
|
|
<head>
|
2013-11-04 15:11:45 +00:00
|
|
|
<title ng-bind="'re:dash | ' + pageTitle"></title>
|
2013-10-25 07:26:07 +00:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
|
2013-10-28 17:34:40 +00:00
|
|
|
<!-- build:css /styles/main.css -->
|
2013-10-25 07:26:07 +00:00
|
|
|
<link rel="stylesheet" href="/bower_components/bootstrap/dist/css/bootstrap.css">
|
|
|
|
<link rel="stylesheet" href="/bower_components/codemirror/lib/codemirror.css">
|
|
|
|
<link rel="stylesheet" href="/bower_components/gridster/dist/jquery.gridster.css">
|
|
|
|
<link rel="stylesheet" href="/bower_components/pivottable/examples/pivot.css">
|
|
|
|
<link rel="stylesheet" href="/bower_components/cornelius/src/cornelius.css">
|
|
|
|
<link rel="stylesheet" href="/styles/redash.css">
|
|
|
|
<!-- endbuild -->
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div growl></div>
|
|
|
|
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
|
|
|
|
<div class="container">
|
|
|
|
<div class="navbar-header">
|
|
|
|
<button type="button" class="navbar-toggle" data-toggle="collapse"
|
|
|
|
data-target=".navbar-ex1-collapse">
|
|
|
|
<span class="sr-only">Toggle navigation</span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
</button>
|
2013-10-28 08:33:12 +00:00
|
|
|
<a class="navbar-brand" href="/"><strong>re:dash</strong></a>
|
2013-10-25 07:26:07 +00:00
|
|
|
</div>
|
2014-01-17 09:05:54 +00:00
|
|
|
{% raw %}
|
2013-10-25 07:26:07 +00:00
|
|
|
<div class="collapse navbar-collapse navbar-ex1-collapse">
|
|
|
|
<ul class="nav navbar-nav">
|
2013-12-26 12:09:59 +00:00
|
|
|
<li class="active" ng-show="pageTitle"><a class="page-title" ng-bind="pageTitle"></a></li>
|
2013-10-25 07:26:07 +00:00
|
|
|
<li class="dropdown">
|
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-th-large"></span> <b class="caret"></b></a>
|
|
|
|
<ul class="dropdown-menu">
|
2013-10-29 17:08:11 +00:00
|
|
|
<span ng-repeat="(name, group) in groupedDashboards">
|
2013-12-23 19:23:52 +00:00
|
|
|
<li class="dropdown-submenu">
|
|
|
|
<a href="#" ng-bind="name"></a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li ng-repeat="dashboard in group" role="presentation">
|
2014-01-17 09:05:54 +00:00
|
|
|
<a role="menu-item" ng-href="/dashboard/{{dashboard.slug}}" ng-bind="dashboard.name"></a>
|
2013-12-23 19:23:52 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
2013-10-29 17:08:11 +00:00
|
|
|
</li>
|
|
|
|
</span>
|
2013-12-23 19:23:52 +00:00
|
|
|
<li ng-repeat="dashboard in otherDashboards">
|
2014-01-17 09:05:54 +00:00
|
|
|
<a role="menu-item" ng-href="/dashboard/{{dashboard.slug}}" ng-bind="dashboard.name"></a>
|
2013-12-23 19:23:52 +00:00
|
|
|
</li>
|
|
|
|
<li class="divider"></li>
|
2013-10-25 07:26:07 +00:00
|
|
|
<li><a data-toggle="modal" href="#new_dashboard_dialog">New Dashboard</a></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li class="dropdown">
|
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Queries <b class="caret"></b></a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li><a href="/queries/new">New Query</a></li>
|
|
|
|
<li><a href="/queries">Queries</a></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<ul class="nav navbar-nav navbar-right">
|
|
|
|
<p class="navbar-text avatar">
|
2014-01-17 09:05:54 +00:00
|
|
|
<img ng-src="{{currentUser.gravatar_url}}" class="img-circle" alt="{{currentUser.name}}" width="40" height="40"/>
|
2013-10-25 07:26:07 +00:00
|
|
|
</p>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2014-01-17 09:05:54 +00:00
|
|
|
{% endraw %}
|
2013-10-25 07:26:07 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
<edit-dashboard-form dashboard="newDashboard" id="new_dashboard_dialog"></edit-dashboard-form>
|
|
|
|
<div ng-view></div>
|
|
|
|
|
|
|
|
<script src="/bower_components/jquery/jquery.js"></script>
|
|
|
|
|
|
|
|
<!-- build:js /scripts/plugins.js -->
|
2013-10-28 17:34:40 +00:00
|
|
|
<script src="/bower_components/angular/angular.js"></script>
|
2013-10-25 07:26:07 +00:00
|
|
|
<script src="/bower_components/jquery-ui/ui/jquery-ui.js"></script>
|
|
|
|
<script src="/bower_components/bootstrap/js/collapse.js"></script>
|
|
|
|
<script src="/bower_components/bootstrap/js/modal.js"></script>
|
|
|
|
<script src="/bower_components/angular-resource/angular-resource.js"></script>
|
2014-01-07 09:28:13 +00:00
|
|
|
<script src="/bower_components/angular-route/angular-route.js"></script>
|
2013-10-25 07:26:07 +00:00
|
|
|
<script src="/bower_components/underscore/underscore.js"></script>
|
|
|
|
<script src="/bower_components/moment/moment.js"></script>
|
|
|
|
<script src="/bower_components/angular-moment/angular-moment.js"></script>
|
|
|
|
<script src="/bower_components/codemirror/lib/codemirror.js"></script>
|
|
|
|
<script src="/bower_components/codemirror/addon/edit/matchbrackets.js"></script>
|
|
|
|
<script src="/bower_components/codemirror/addon/edit/closebrackets.js"></script>
|
|
|
|
<script src="/bower_components/codemirror/mode/sql/sql.js"></script>
|
|
|
|
<script src="/bower_components/codemirror/mode/javascript/javascript.js"></script>
|
|
|
|
<script src="/bower_components/angular-ui-codemirror/ui-codemirror.js"></script>
|
|
|
|
<script src="/bower_components/highcharts/highcharts.js"></script>
|
|
|
|
<script src="/bower_components/highcharts/modules/exporting.js"></script>
|
|
|
|
<script src="/bower_components/gridster/dist/jquery.gridster.js"></script>
|
|
|
|
<script src="/bower_components/angular-growl/build/angular-growl.js"></script>
|
|
|
|
<script src="/bower_components/pivottable/examples/pivot.js"></script>
|
|
|
|
<script src="/bower_components/cornelius/src/cornelius.js"></script>
|
2014-01-11 18:04:27 +00:00
|
|
|
<script src="/bower_components/mousetrap/mousetrap.js"></script>
|
|
|
|
<script src="/bower_components/mousetrap/plugins/global-bind/mousetrap-global-bind.js"></script>
|
2014-03-06 09:42:02 +00:00
|
|
|
|
|
|
|
<script src="/scripts/ng_highchart.js"></script>
|
|
|
|
<script src="/scripts/ng_smart_table.js"></script>
|
|
|
|
<script src="/scripts/ui-bootstrap-tpls-0.5.0.min.js"></script>
|
|
|
|
|
2013-10-25 07:26:07 +00:00
|
|
|
<!-- endbuild -->
|
|
|
|
|
|
|
|
<!-- build:js({.tmp,app}) /scripts/scripts.js -->
|
|
|
|
<script src="/scripts/app.js"></script>
|
2014-03-06 09:42:02 +00:00
|
|
|
<script src="/scripts/services/services.js"></script>
|
|
|
|
<script src="/scripts/services/notifications.js"></script>
|
|
|
|
<script src="/scripts/services/dashboards.js"></script>
|
|
|
|
<script src="/scripts/controllers/controllers.js"></script>
|
|
|
|
<script src="/scripts/controllers/admin_controllers.js"></script>
|
|
|
|
<script src="/scripts/controllers/query_view.js"></script>
|
2014-02-15 10:21:13 +00:00
|
|
|
<script src="/scripts/visualizations/base.js"></script>
|
|
|
|
<script src="/scripts/visualizations/chart.js"></script>
|
|
|
|
<script src="/scripts/visualizations/cohort.js"></script>
|
|
|
|
<script src="/scripts/visualizations/table.js"></script>
|
2014-03-06 09:42:02 +00:00
|
|
|
<script src="/scripts/visualizations/pivot.js"></script>
|
2013-10-25 07:26:07 +00:00
|
|
|
<script src="/scripts/directives.js"></script>
|
|
|
|
<script src="/scripts/filters.js"></script>
|
|
|
|
<!-- endbuild -->
|
|
|
|
|
|
|
|
<script>
|
2014-01-17 09:05:54 +00:00
|
|
|
var currentUser = {{ user|safe }};
|
2014-01-13 14:52:35 +00:00
|
|
|
|
2014-01-14 07:01:20 +00:00
|
|
|
currentUser.canEdit = function(object) {
|
2014-02-22 12:42:08 +00:00
|
|
|
var user_id = object.user_id || (object.user && object.user.id);
|
|
|
|
return user_id && (user_id == currentUser.id);
|
2014-01-14 07:32:23 +00:00
|
|
|
};
|
2014-01-14 07:01:20 +00:00
|
|
|
|
2014-01-17 09:05:54 +00:00
|
|
|
{{ analytics|safe }}
|
2013-10-25 07:26:07 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|