From c5a90233b4ce7759639afb2ce6789d2ed73f3d9d Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Fri, 27 Oct 2017 15:17:41 +0100 Subject: [PATCH] Add a little 'link' icon beside projects which are link-shared --- services/web/app/views/project/list/project-list.pug | 7 +++++++ .../public/coffee/main/project-list/project-list.coffee | 3 +++ 2 files changed, 10 insertions(+) diff --git a/services/web/app/views/project/list/project-list.pug b/services/web/app/views/project/list/project-list.pug index 96ece4f837..5d1866fab7 100644 --- a/services/web/app/views/project/list/project-list.pug +++ b/services/web/app/views/project/list/project-list.pug @@ -171,6 +171,13 @@ .col-xs-2 span.owner {{ownerName()}} + span(ng-if="isLinkSharingProject(project)") + |   + i.fa.fa-link.small( + tooltip=translate("link_sharing") + tooltip-placement="right" + tooltip-append-to-body="true" + ) .col-xs-4 span.last-modified {{project.lastUpdated | formatDate}} li( diff --git a/services/web/public/coffee/main/project-list/project-list.coffee b/services/web/public/coffee/main/project-list/project-list.coffee index 8e3af1140f..f994151a3c 100644 --- a/services/web/public/coffee/main/project-list/project-list.coffee +++ b/services/web/public/coffee/main/project-list/project-list.coffee @@ -463,6 +463,9 @@ define [ else "/project/#{project.id}" + $scope.isLinkSharingProject = (project) -> + return project.source == 'token' + $scope.ownerName = () -> if $scope.project.accessLevel == "owner" return "You"