瀏覽代碼

[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>