Skip to content

Commit

Permalink
Rename peronal.html -> index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
arikfr committed Jan 13, 2016
1 parent a62c5b5 commit 031cb63
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 45 deletions.
35 changes: 24 additions & 11 deletions rd_ui/app/views/index.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,34 @@
<div class="container">
<h2>Dashboards</h2>
<div class="list-group" ng-repeat="(name, dashboards) in allDashboards">
<div class="list-group-item active">
{{name}}
<button ng-show="currentUser.hasPermission('create_dashboard')" type="button" class="btn btn-sm btn-link" data-toggle="modal" href="#new_dashboard_dialog" tooltip="New Dashboard"><span class="glyphicon glyphicon-plus-sign"></span></button>
<div class="row">
<p>
<a href="queries/new" class="btn btn-default">New Query</a>
<button ng-show="currentUser.hasPermission('create_dashboard')" type="button" class="btn btn-default" data-toggle="modal" href="#new_dashboard_dialog">New Dashboard</button>
<a href="alerts/new" class="btn btn-default">New Alert</a>
</p>
</div>

<div class="row">
<div class="list-group col-md-6">
<div class="list-group-item active">
Recent Dashboards
</div>
<a ng-href="dashboard/{{dashboard.slug}}" class="list-group-item" ng-repeat="dashboard in recentDashboards">
{{dashboard.name}}
</a>
</div>
<div class="list-group-item" ng-repeat="dashboard in dashboards" >
<button type="button" class="close delete-button" aria-hidden="true" ng-show="dashboard.canEdit()" ng-click="archiveDashboard(dashboard)" tooltip="Delete Dashboard">&times;</button>
<a ng-href="dashboard/{{dashboard.slug}}">{{dashboard.name}}</a>

<div class="list-group col-md-6">
<div class="list-group-item active">
Recent Queries
</div>
<a ng-href="queries/{{query.id}}" class="list-group-item" ng-repeat="query in recentQueries">{{query.name}}</a>
</div>
</div>

<div ng-show="currentUser.hasPermission('super_admin')">
<div ng-show="currentUser.hasPermission('super_admin')" class="row">
<div class="list-group">
<div class="list-group-item active">Admin</div>
<a href="admin/status" class="list-group-item">Status</a>
</div>
</div>
</div>

</div>
34 changes: 0 additions & 34 deletions rd_ui/app/views/personal.html

This file was deleted.

0 comments on commit 031cb63

Please sign in to comment.