1
0
mirror of https://github.com/fazo96/markcloud.git synced 2025-01-10 11:04:21 +01:00

fix small bug

This commit is contained in:
Enrico Fasoli 2014-10-09 15:09:15 +02:00
parent 1879b974c1
commit f43f3a1f0c

View File

@ -162,8 +162,7 @@ Template.doc.owned = -> Meteor.user() and Meteor.user()._id is @owner
Template.doc.privateUrl = ->
Template.doc.ownerName = ->
if Router.current().route.name is 'userDoc'
console.log Router.current()
return Router.current().params.owner
return Router.current().params.user
Template.doc.expirationDays = ->
if @owner then return 'never'
else return moment.unix(@dateCreated).add(7,'days').fromNow()