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:
parent
103832af7d
commit
f2702c7b0a
1 changed files with 12 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue