mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
add public into project public access level issue #35
This commit is contained in:
parent
ea9ba59371
commit
f13f036e55
2 changed files with 4 additions and 4 deletions
|
@ -53,9 +53,9 @@ module.exports = (app)->
|
|||
Settings.siteUrl.substring(Settings.siteUrl.indexOf("//")+2)
|
||||
next()
|
||||
|
||||
app.use (req, res, next)->
|
||||
res.locals.formatPrivlageLevel = (privlageLevel)->
|
||||
formatedPrivlages = private:"Private", readOnly:"Read Only", readAndWrite:"Read and Write"
|
||||
app.use (req, res, next)->
|
||||
res.locals.formatProjectPublicAccessLevel = (privlageLevel)->
|
||||
formatedPrivlages = private:"Private", readOnly:"Public: Read Only", readAndWrite:"Public: Read and Write"
|
||||
return formatedPrivlages[privlageLevel] || "Private"
|
||||
next()
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ block content
|
|||
span Last modified on
|
||||
span.isoDate #{project.lastUpdated.toISOString()}
|
||||
span -
|
||||
span #{formatPrivlageLevel(project.publicAccesLevel)}
|
||||
span #{formatProjectPublicAccessLevel(project.publicAccesLevel)}
|
||||
span -
|
||||
mixin formatAccessLevel(project.accessLevel)
|
||||
.project-tags(data-project-id=project_id)
|
||||
|
|
Loading…
Reference in a new issue