mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-28 23:23:38 -05:00
Merge branch 'master' of github.com:sharelatex/web-sharelatex into i18n
This commit is contained in:
commit
76f0acd49d
3 changed files with 6 additions and 5 deletions
|
@ -173,7 +173,7 @@ module.exports = SubscriptionController =
|
||||||
gaExperimentCode = '''
|
gaExperimentCode = '''
|
||||||
<!-- Google Analytics Content Experiment code -->
|
<!-- Google Analytics Content Experiment code -->
|
||||||
<script>function utmx_section(){}function utmx(){}(function(){var
|
<script>function utmx_section(){}function utmx(){}(function(){var
|
||||||
k='51652689-0',d=document,l=d.location,c=d.cookie;
|
k='51652689-2',d=document,l=d.location,c=d.cookie;
|
||||||
if(l.search.indexOf('utm_expid='+k)>0)return;
|
if(l.search.indexOf('utm_expid='+k)>0)return;
|
||||||
function f(n){if(c){var i=c.indexOf(n+'=');if(i>-1){var j=c.
|
function f(n){if(c){var i=c.indexOf(n+'=');if(i>-1){var j=c.
|
||||||
indexOf(';',i);return escape(c.substring(i+n.length+1,j<0?c.
|
indexOf(';',i);return escape(c.substring(i+n.length+1,j<0?c.
|
||||||
|
@ -185,4 +185,5 @@ valueOf()+(h?'&utmxhash='+escape(h.substr(1)):'')+
|
||||||
'" type="text/javascript" charset="utf-8"><\/sc'+'ript>')})();
|
'" type="text/javascript" charset="utf-8"><\/sc'+'ript>')})();
|
||||||
</script><script>utmx('url','A/B');</script>
|
</script><script>utmx('url','A/B');</script>
|
||||||
<!-- End of Google Analytics Content Experiment code -->
|
<!-- End of Google Analytics Content Experiment code -->
|
||||||
|
|
||||||
'''
|
'''
|
|
@ -58,8 +58,8 @@ module.exports = (app)->
|
||||||
next()
|
next()
|
||||||
|
|
||||||
app.use (req, res, next)->
|
app.use (req, res, next)->
|
||||||
res.locals.formatPrivlageLevel = (privlageLevel)->
|
res.locals.formatProjectPublicAccessLevel = (privlageLevel)->
|
||||||
formatedPrivlages = private:"Private", readOnly:"Read Only", readAndWrite:"Read and Write"
|
formatedPrivlages = private:"Private", readOnly:"Public: Read Only", readAndWrite:"Public: Read and Write"
|
||||||
return formatedPrivlages[privlageLevel] || "Private"
|
return formatedPrivlages[privlageLevel] || "Private"
|
||||||
next()
|
next()
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,7 @@ block content
|
||||||
span Last modified on
|
span Last modified on
|
||||||
span.isoDate #{project.lastUpdated.toISOString()}
|
span.isoDate #{project.lastUpdated.toISOString()}
|
||||||
span -
|
span -
|
||||||
span #{formatPrivlageLevel(project.publicAccesLevel)}
|
span #{formatProjectPublicAccessLevel(project.publicAccesLevel)}
|
||||||
span -
|
span -
|
||||||
mixin formatAccessLevel(project.accessLevel)
|
mixin formatAccessLevel(project.accessLevel)
|
||||||
.project-tags(data-project-id=project_id)
|
.project-tags(data-project-id=project_id)
|
||||||
|
|
Loading…
Reference in a new issue