Commit 235212c4 by Johannes Zellner

Add some pretty date

1 parent 403359cf
Showing with 6 additions and 3 deletions
......@@ -142,7 +142,7 @@
</th>
<th>{{ entry.filePath }}</th>
<th>{{ entry.size }}</th>
<th>{{ entry.mtime }}</th>
<th><span v-my-tooltip="foobar" data-toggle="tooltip" title="{{ entry.mtime }}">{{ entry.mtime | prettyDate }}</span></th>
<th style="text-align: right;"><button class="btn btn-sm btn-danger" v-on:click.stop="delAsk(entry)"><i class="fa fa-trash"></i></button></th>
</tr>
</tbody>
......
......@@ -149,6 +149,11 @@ function createDirectory(name) {
});
}
Vue.filter('prettyDate', function (value) {
var d = new Date(value);
return d.toDateString();
});
var app = new Vue({
el: '#app',
data: {
......@@ -177,8 +182,6 @@ var app = new Vue({
}
});
window.app = app;
login(localStorage.username, localStorage.password);
})();
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!