Преглед на файлове

[editor] Put .fromNow time displaying on the history

Enrico Berti преди 10 години
родител
ревизия
29a3e00f50
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      desktop/libs/notebook/src/notebook/templates/editor_components.mako

+ 1 - 1
desktop/libs/notebook/src/notebook/templates/editor_components.mako

@@ -456,7 +456,7 @@ ${ require.config() }
         <tbody data-bind="foreach: $parent.history">
           <tr class="pointer" data-bind="click: function() { if (getSelection().toString().length == 0) { location.href=url; } }">
             <td><code data-bind="text: query" style="white-space: normal"></code></td>
-            <td style="width: 200px" class="muted"><span data-bind="text: moment(lastExecuted).format('LLL')"></span></td>
+            <td style="width: 200px" class="muted"><span data-bind="text: moment(lastExecuted).fromNow(), attr: {title: moment(lastExecuted).format('LLL')}"></span></td>
             <td style="width: 25px" class="muted">
               <i class="fa fa-bolt inactive-action" data-bind="css: {'fa-fighter-jet': status == 'running', 'fa-cloud-download': status == 'available'}, attr: {'title': status}"></i>
             </td>