Browse Source

HUE-8299 [assist] Add additional details to the file context popover

Johan Ahlen 7 years ago
parent
commit
d0ede050a2

File diff suppressed because it is too large
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue-embedded.css


File diff suppressed because it is too large
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue.css


File diff suppressed because it is too large
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue3-extra.css


+ 6 - 0
desktop/core/src/desktop/static/desktop/less/components/hue-popover.less

@@ -230,6 +230,12 @@
   .flex(0 0 35px);
 }
 
+.context-popover-flex-attributes {
+  .context-popover-attributes;
+  .flex(1);
+  padding: 0 12px;
+}
+
 .context-popover-flex-fill {
   overflow-y: auto;
   overflow-x: hidden;

+ 9 - 0
desktop/core/src/desktop/templates/ko_components/ko_context_popover.mako

@@ -403,6 +403,15 @@ from metadata.conf import has_navigator
       <div class="context-popover-flex-fill" data-bind="visible: loading"><!-- ko hueSpinner: { spin: loading, center: true, size: 'xlarge' } --><!-- /ko --></div>
 
       <!-- ko if: !loading() && !hasErrors() -->
+      <!-- ko with: definition -->
+      <div class="context-popover-flex-attributes">
+          <div class="context-popover-attribute"><div>${ _('Size') }</div><div data-bind="text: humansize"></div></div>
+          <!-- ko with: stats -->
+          <div class="context-popover-attribute"><div>${ _('Owner') }</div><div data-bind="text: user"></div></div>
+          <!-- /ko -->
+          <div class="context-popover-attribute"><div>${ _('Permissions') }</div><div data-bind="text: rwx"></div></div>
+      </div>
+      <!-- /ko -->
       <!-- ko if: definition.type === 'dir' -->
       <div class="context-popover-flex-fill storage-entry-container" data-bind="fetchMore: { fetchMore: fetchMore.bind($data), hasMore: hasMorePages, loadingMore: loadingMore.bind($data) }">
         <table class="table table-condensed table-nowrap">

Some files were not shown because too many files changed in this diff