Conditionally show V1 dash link

This commit is contained in:
Alasdair Smith 2017-12-01 17:14:53 +00:00
parent 9a073cdaf0
commit 7f622e2e6b
2 changed files with 5 additions and 3 deletions

View file

@ -182,6 +182,7 @@ module.exports = ProjectController =
hasSubscription: results.hasSubscription[0]
isShowingV1Projects: results.v1Projects?
noV1Connection: results.v1Projects?.noConnection
showV1DashLink: true # TODO: false if SL
}
if Settings?.algolia?.app_id? and Settings?.algolia?.read_only_api_key?

View file

@ -63,6 +63,7 @@ block content
aside.project-list-sidebar.col-md-2.col-xs-3
include ./list/side-bar
if showV1DashLink
.project-list-sidebar-v1-link.col-md-2.col-xs-3
span Want to go back to the V1 dashboard?
a.btn.btn-default(href=settings.overleaf.host + "/dash") Go back to V1