mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-24 03:23:10 +00:00
Display last modified as a relative date in v2
This commit is contained in:
parent
4759097e49
commit
5c87a2aa90
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