add public into project public access level issue #35

This commit is contained in:
Henry Oswald 2014-03-25 11:01:16 +00:00
parent ea9ba59371
commit f13f036e55
2 changed files with 4 additions and 4 deletions

View file

@ -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()

View file

@ -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)