1
0
Fork 0
mirror of https://github.com/overleaf/overleaf.git synced 2025-04-11 00:57:18 +00:00

Show the linked-files UI for project-linked-files

This commit is contained in:
Shane Kilkelly 2018-05-16 10:41:21 +01:00
parent 103832af7d
commit f2702c7b0a

View file

@ -47,7 +47,18 @@ div.binary-file.full-size(
|
| at {{ openFile.created | formatDate:'h:mm a' }} {{ openFile.created | relativeDate }}
span(ng-if="openFile.linkedFileData.provider == 'url'")
div(ng-if="openFile.linkedFileData.provider == 'project_file'")
p
i.fa.fa-fw.fa-external-link-square.fa-rotate-180.linked-file-icon
| Imported from
|
// TODO: Show the project name instead
a(ng-href='/project/{{openFile.linkedFileData.source_project_id}}')
| {{ displayUrl(openFile.linkedFileData.source_project_id) }}
|
| at {{ openFile.created | formatDate:'h:mm a' }} {{ openFile.created | relativeDate }}
span(ng-if="openFile.linkedFileData.provider == 'url' || openFile.linkedFileData.provider == 'project_file'")
button.btn.btn-success(
href, ng-click="refreshFile(openFile)",
ng-disabled="refreshing"