Bump versions by x.(y+1).z for next dev cycle
[dlux.git] / modules / yangui-resources / src / main / resources / yangui / views / container.tpl.html
index edf8d13052c932f56df2cd240b5b6e1cb88c5085..2494076dc13aae27d34b5b701c9c7d4e8d487ef9 100644 (file)
@@ -1,16 +1,21 @@
-<div ng-controller="containerCtrl" class="customContainer {{ node.expanded ? '' : 'withoutBorder' }}">\r
+<div ng-controller="ContainerCtrl" class="customContainer {{ node.expanded ? '' : 'withoutBorder' }}">\r
     <div class="topContainerPart">\r
-        <span class="treeBullet containerBullet" ng-show="node !== selSubApi.node">&#8226;</span>\r
+        <span class="treeBullet containerBullet" ng-if="node !== selSubApi.node">&#8226;</span>\r
         <button class="yangButton {{ node.expanded ? 'iconArrowDown' : 'iconArrowRight' }} inlineBlock" tooltip="{{ 'SHOW_HIDE_CON' | translate }}" ng-click='toggleExpanded()'></button>\r
         <button class="btn-name btn-slim">\r
             {{getNodeName(node.localeLabel, node.label)}}\r
         </button>\r
         <button ng-if="node.getChildren('description', null, null, 'label').length > 0" class="yangButton iconQuestion inlineBlock" tooltip="{{node.getChildren('description', null, null, 'label')[0]}}" ></button>\r
+\r
+        <!-- Augmentation control -->\r
+        <div class="modalWrapper" ng-if="node.augmentionGroups.length" ng-include src="currentPath + 'modal/augmentation-modal.tpl.html'"></div>\r
+        <span ng-if="node.augmentationId" class="augmentIcon reversed" tooltip="{{ 'YANGUI_IS_AUGMENT' | translate }} {{ node.augmentationId }}">A</span>\r
+        <!-- Augmentation control end -->\r
     </div>\r
 \r
-    <div ng-show="node.expanded">\r
-        <div ng-repeat="node in node.getChildren(null,null,constants.NODE_UI_DISPLAY)" ng-include="currentPath+'/'+node.type+'.tpl.html'">\r
+    <div ng-if="node.expanded">\r
+        <div ng-repeat="node in node.getChildren(null,null,constants.NODE_UI_DISPLAY) | onlyConfigStmts" ng-include="currentPath+'/'+node.type+'.tpl.html'" ng-hide="node.augmentationId && !augmentations.getAugmentation(node.parent, node.augmentationId).expanded">\r
     </div>\r
-    \r
+\r
     <i class="icon-caret-down borderArrow" ng-show="node.expanded"></i>\r
-</div>
\ No newline at end of file
+</div>\r