From 626e0a16ef67c97ba5562bb20e88cf05ce15e6ba Mon Sep 17 00:00:00 2001 From: James Allen Date: Thu, 4 Jan 2018 15:49:31 +0000 Subject: [PATCH] Fix acceptance test when overleaf setting not present --- services/web/app/views/project/list/v1-item.pug | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/services/web/app/views/project/list/v1-item.pug b/services/web/app/views/project/list/v1-item.pug index b53349e158..31fd036f7a 100644 --- a/services/web/app/views/project/list/v1-item.pug +++ b/services/web/app/views/project/list/v1-item.pug @@ -5,10 +5,11 @@ tooltip-append-to-body="true" ) span - a.projectName( - href=settings.overleaf.host + "/{{project.id}}" - target="_blank" - ) {{project.name}} + if settings.overleaf && settings.overleaf.host + a.projectName( + href=settings.overleaf.host + "/{{project.id}}" + target="_blank" + ) {{project.name}} //- To re-enable the import dialog (may need style changing for padding/line-height): //- button.btn.btn-link.projectName( //- ng-click="openV1ImportModal(project)"