mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #519 from sharelatex/ja-relative-dates-in-v2
Display last modified as a relative date in v2
This commit is contained in:
commit
a294fe795c
3 changed files with 9 additions and 2 deletions
|
@ -38,4 +38,7 @@
|
|||
tooltip-append-to-body="true"
|
||||
)
|
||||
.col-xs-4
|
||||
span.last-modified {{project.lastUpdated | formatDate}}
|
||||
if settings.overleaf
|
||||
span.last-modified(tooltip="{{project.lastUpdated | formatDate}}") {{project.lastUpdated | fromNowDate}}
|
||||
else
|
||||
span.last-modified {{project.lastUpdated | formatDate}}
|
||||
|
|
|
@ -22,4 +22,4 @@
|
|||
span.owner {{ownerName()}}
|
||||
|
||||
.col-xs-4
|
||||
span.last-modified {{project.lastUpdated | formatDate}}
|
||||
span.last-modified(tooltip="{{project.lastUpdated | formatDate}}") {{project.lastUpdated | fromNowDate}}
|
|
@ -17,3 +17,7 @@ define [
|
|||
App.filter "relativeDate", () ->
|
||||
(date) ->
|
||||
moment(date).calendar()
|
||||
|
||||
App.filter "fromNowDate", () ->
|
||||
(date) ->
|
||||
moment(date).fromNow()
|
||||
|
|
Loading…
Reference in a new issue