mirror of
https://github.com/ansible/awx.git
synced 2026-03-19 09:57:33 -02:30
only show close icon in templates panel header when applicable
This commit is contained in:
@@ -11,9 +11,9 @@ function IndexTemplatesController ($scope, strings, dataset) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
IndexTemplatesController.$inject = [
|
IndexTemplatesController.$inject = [
|
||||||
'$scope',
|
'$scope',
|
||||||
'TemplatesStrings',
|
'TemplatesStrings',
|
||||||
'Dataset',
|
'Dataset'
|
||||||
];
|
];
|
||||||
|
|
||||||
export default IndexTemplatesController;
|
export default IndexTemplatesController;
|
||||||
|
|||||||
@@ -1,10 +1,20 @@
|
|||||||
<div ui-view="form"></div>
|
<div ui-view="form"></div>
|
||||||
<at-panel>
|
<at-panel ng-cloak id="htmlTemplate">
|
||||||
<at-panel-heading>
|
<div ng-if="$state.is('templates')">
|
||||||
{{:: vm.strings.get('list.PANEL_TITLE') }}
|
<at-panel-heading hide-dismiss="true">
|
||||||
<div class="at-Panel-headingTitleBadge" ng-show="vm.count">
|
{{:: vm.strings.get('list.PANEL_TITLE') }}
|
||||||
{{ vm.count }}
|
<div class="at-Panel-headingTitleBadge" ng-show="vm.count">
|
||||||
</div>
|
{{ vm.count }}
|
||||||
</at-panel-heading>
|
</div>
|
||||||
|
</at-panel-heading>
|
||||||
|
</div>
|
||||||
|
<div ng-if="!$state.is('templates')">
|
||||||
|
<at-panel-heading>
|
||||||
|
{{:: vm.strings.get('list.PANEL_TITLE') }}
|
||||||
|
<div class="at-Panel-headingTitleBadge" ng-show="vm.count">
|
||||||
|
{{ vm.count }}
|
||||||
|
</div>
|
||||||
|
</at-panel-heading>
|
||||||
|
</div>
|
||||||
<div ui-view="templatesList"></div>
|
<div ui-view="templatesList"></div>
|
||||||
</at-panel>
|
</at-panel>
|
||||||
|
|||||||
Reference in New Issue
Block a user