Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
PUBLIC
/
surfer-okd
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 235212c4
authored
Mar 01, 2016
by
Johannes Zellner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some pretty date
1 parent
403359cf
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
app/index.html
app/js/app.js
app/index.html
View file @
235212c
...
@@ -142,7 +142,7 @@
...
@@ -142,7 +142,7 @@
</th>
</th>
<th>
{{ entry.filePath }}
</th>
<th>
{{ entry.filePath }}
</th>
<th>
{{ entry.size }}
</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>
<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>
</tr>
</tbody>
</tbody>
...
...
app/js/app.js
View file @
235212c
...
@@ -149,6 +149,11 @@ function createDirectory(name) {
...
@@ -149,6 +149,11 @@ function createDirectory(name) {
});
});
}
}
Vue
.
filter
(
'prettyDate'
,
function
(
value
)
{
var
d
=
new
Date
(
value
);
return
d
.
toDateString
();
});
var
app
=
new
Vue
({
var
app
=
new
Vue
({
el
:
'#app'
,
el
:
'#app'
,
data
:
{
data
:
{
...
@@ -177,8 +182,6 @@ var app = new Vue({
...
@@ -177,8 +182,6 @@ var app = new Vue({
}
}
});
});
window
.
app
=
app
;
login
(
localStorage
.
username
,
localStorage
.
password
);
login
(
localStorage
.
username
,
localStorage
.
password
);
})();
})();
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment