Add a little 'link' icon beside projects which are link-shared

This commit is contained in:
Shane Kilkelly 2017-10-27 15:17:41 +01:00
parent 239f56ca0e
commit c5a90233b4
2 changed files with 10 additions and 0 deletions

View file

@ -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(

View file

@ -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"