Explorar el Código

HUE-4068 [metastore] Show owners and last time instead of files and size

Romain Rigaux hace 9 años
padre
commit
4269910e91
Se han modificado 1 ficheros con 9 adiciones y 3 borrados
  1. 9 3
      apps/metastore/src/metastore/templates/metastore.mako

+ 9 - 3
apps/metastore/src/metastore/templates/metastore.mako

@@ -288,13 +288,19 @@ ${ assist.assistPanel() }
         <i class="fa fa-fw fa-hdd-o muted"></i> <a data-bind="attr: {'href': hdfs_link, 'rel': path_location}">${_('Location')}</a>
       </div>
       <!-- ko with: $parent.tableStats -->
-        <!-- ko if: typeof numFiles !== 'undefined'  -->
+        <!-- ko if: typeof last_modified_by !== 'undefined' -->
+          <div title="${ _('Last modified by') }"><i class="fa fa-fw fa-user muted"></i> <span data-bind="text: last_modified_by"></span> </div>
+        <!-- /ko -->
+        <!-- ko if: typeof last_modified_time  !== 'undefined' -->
+          <div title="${ _('Last modified time') }"><i class="fa fa-fw fa-clock-o muted"></i> <span data-bind="text: last_modified_time"></span></div>
+        <!-- /ko -->
+        <!-- ko if: typeof numFiles !== 'undefined' && last_modified_by == 'undefined' -->
           <div title="${ _('Number of files') }"><i class="fa fa-fw fa-files-o muted"></i> <span data-bind="text: numFiles"></span> ${ _('files') }</div>
         <!-- /ko -->
-        <!-- ko if: typeof numRows !== 'undefined'  -->
+        <!-- ko if: typeof numRows !== 'undefined' -->
           <div title="${ _('Number of rows') }"><i class="fa fa-fw fa-list muted"></i> <span data-bind="text: numRows"></span> ${ _('rows') }</div>
         <!-- /ko -->
-        <!-- ko if: typeof totalSize !== 'undefined'  -->
+        <!-- ko if: typeof totalSize !== 'undefined' && last_modified_by == 'undefined' -->
           <div title="${ _('Total size') }"><i class="fa fa-fw fa-tasks muted"></i> <span data-bind="text: totalSize"></span> ${ _('bytes') }</div>
         <!-- /ko -->
       <!-- /ko -->