Merge pull request #140 from sharelatex/as-fix-v1-settings-access

Check presence of overleaf settings in template
This commit is contained in:
Alasdair Smith
2017-11-20 16:00:02 +00:00
committed by GitHub

View File

@@ -1,10 +1,11 @@
.col-xs-8
span.v1-badge(aria-label=translate("v1_badge"))
span
a.projectName(
href=settings.overleaf.host + "/{{project.id}}"
stop-propagation="click"
) {{project.name}}
if settings.overleaf && settings.overleaf.host
a.projectName(
href=settings.overleaf.host + "/{{project.id}}"
stop-propagation="click"
) {{project.name}}
.col-xs-4
span.last-modified {{project.lastUpdated | formatDate}}