mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Add a little 'link' icon beside projects which are link-shared
This commit is contained in:
parent
239f56ca0e
commit
c5a90233b4
2 changed files with 10 additions and 0 deletions
|
@ -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(
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue