mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Conditionally show V1 dash link
This commit is contained in:
parent
9a073cdaf0
commit
7f622e2e6b
2 changed files with 5 additions and 3 deletions
|
@ -182,6 +182,7 @@ module.exports = ProjectController =
|
||||||
hasSubscription: results.hasSubscription[0]
|
hasSubscription: results.hasSubscription[0]
|
||||||
isShowingV1Projects: results.v1Projects?
|
isShowingV1Projects: results.v1Projects?
|
||||||
noV1Connection: results.v1Projects?.noConnection
|
noV1Connection: results.v1Projects?.noConnection
|
||||||
|
showV1DashLink: true # TODO: false if SL
|
||||||
}
|
}
|
||||||
|
|
||||||
if Settings?.algolia?.app_id? and Settings?.algolia?.read_only_api_key?
|
if Settings?.algolia?.app_id? and Settings?.algolia?.read_only_api_key?
|
||||||
|
|
|
@ -63,9 +63,10 @@ block content
|
||||||
aside.project-list-sidebar.col-md-2.col-xs-3
|
aside.project-list-sidebar.col-md-2.col-xs-3
|
||||||
include ./list/side-bar
|
include ./list/side-bar
|
||||||
|
|
||||||
.project-list-sidebar-v1-link.col-md-2.col-xs-3
|
if showV1DashLink
|
||||||
span Want to go back to the V1 dashboard?
|
.project-list-sidebar-v1-link.col-md-2.col-xs-3
|
||||||
a.btn.btn-default(href=settings.overleaf.host + "/dash") Go back to V1
|
span Want to go back to the V1 dashboard?
|
||||||
|
a.btn.btn-default(href=settings.overleaf.host + "/dash") Go back to V1
|
||||||
|
|
||||||
.project-list-main.col-md-10.col-xs-9
|
.project-list-main.col-md-10.col-xs-9
|
||||||
include ./list/notifications
|
include ./list/notifications
|
||||||
|
|
Loading…
Reference in a new issue