mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-20 05:43:38 +00:00
don't show the user details area on project list if algolia instituions has not be setup
This commit is contained in:
parent
df44792a10
commit
cc1b9472b2
2 changed files with 26 additions and 25 deletions
|
@ -99,6 +99,7 @@ module.exports =
|
|||
return res.send 500
|
||||
logger.log results:results, user_id:user_id, "rendering project list"
|
||||
viewModel = _buildListViewModel results.projects[0], results.projects[1], results.projects[2], results.tags[0], results.tags[1]
|
||||
viewModel.showUserDetailsArea = Settings?.algolia?.institutions?.app_id? and Settings?.algolia?.institutions?.api_key?
|
||||
res.render 'project/list', viewModel
|
||||
timer.done()
|
||||
|
||||
|
|
|
@ -100,7 +100,7 @@ block content
|
|||
i.icon-remove
|
||||
ul#projectList
|
||||
mixin projectList(projects)
|
||||
|
||||
- if (showUserDetailsArea)
|
||||
.span3#userProfileInformation(ng-cloak)
|
||||
div(ng-controller="UpdateForm").userProfileInformationArea
|
||||
div(ng-hide="hidePersonalInfoSection").alert.alert-info
|
||||
|
|
Loading…
Reference in a new issue