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 .col-xs-2
span.owner {{ownerName()}} 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 .col-xs-4
span.last-modified {{project.lastUpdated | formatDate}} span.last-modified {{project.lastUpdated | formatDate}}
li( li(

View file

@ -463,6 +463,9 @@ define [
else else
"/project/#{project.id}" "/project/#{project.id}"
$scope.isLinkSharingProject = (project) ->
return project.source == 'token'
$scope.ownerName = () -> $scope.ownerName = () ->
if $scope.project.accessLevel == "owner" if $scope.project.accessLevel == "owner"
return "You" return "You"