add a refresh link for each entity view (#12)

pull/13/head
Anthony Lapenna 2016-06-14 14:32:44 +12:00 committed by GitHub
parent a12c1916ec
commit 6d163ee1ef
7 changed files with 31 additions and 6 deletions

View File

@ -1,7 +1,11 @@
<div ng-include="template" ng-controller="StartContainerController"></div>
<rd-header>
<rd-header-title title="Container list"></rd-header-title>
<rd-header-title title="Container list">
<a data-toggle="tooltip" title="Refresh" ui-sref="containers" ui-sref-opts="{reload: true}">
<i class="fa fa-refresh" aria-hidden="true"></i>
</a>
</rd-header-title>
<rd-header-content>Containers</rd-header-content>
</rd-header>

View File

@ -1,7 +1,12 @@
<div ng-include="template" ng-controller="PullImageController"></div>
<rd-header>
<rd-header-title title="Image list"></rd-header-title>
<rd-header-title title="Image list">
<a data-toggle="tooltip" title="Refresh" ui-sref="images" ui-sref-opts="{reload: true}">
<i class="fa fa-refresh" aria-hidden="true"></i>
</a>
</rd-header-title>
<rd-header-content>Images</rd-header-content>
</rd-header>

View File

@ -1,7 +1,11 @@
<div ng-include="template" ng-controller="CreateNetworkController"></div>
<rd-header>
<rd-header-title title="Network list"></rd-header-title>
<rd-header-title title="Network list">
<a data-toggle="tooltip" title="Refresh" ui-sref="networks" ui-sref-opts="{reload: true}">
<i class="fa fa-refresh" aria-hidden="true"></i>
</a>
</rd-header-title>
<rd-header-content>Networks</rd-header-content>
</rd-header>

View File

@ -1,5 +1,9 @@
<rd-header>
<rd-header-title title="Cluster overview"></rd-header-title>
<rd-header-title title="Cluster overview">
<a data-toggle="tooltip" title="Refresh" ui-sref="swarm" ui-sref-opts="{reload: true}">
<i class="fa fa-refresh" aria-hidden="true"></i>
</a>
</rd-header-title>
<rd-header-content>Swarm</rd-header-content>
</rd-header>

View File

@ -1,7 +1,11 @@
<div ng-include="template" ng-controller="CreateVolumeController"></div>
<rd-header>
<rd-header-title title="Volume list"></rd-header-title>
<rd-header-title title="Volume list">
<a data-toggle="tooltip" title="Refresh" ui-sref="volumes" ui-sref-opts="{reload: true}">
<i class="fa fa-refresh" aria-hidden="true"></i>
</a>
</rd-header-title>
<rd-header-content>Volumes</rd-header-content>
</rd-header>

View File

@ -7,7 +7,7 @@ angular
title: '@'
},
transclude: true,
template: '<div class="page">{{title}}</div>',
template: '<div class="page">{{title}}<span class="header_title_content" ng-transclude><span></div>',
restrict: 'E'
};
return directive;

View File

@ -139,3 +139,7 @@
display: inline;
font-size: 18px;
}
.header_title_content {
margin-left: 5px;
}