mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-14 20:40:17 -05:00
19 lines
666 B
Text
19 lines
666 B
Text
div.binary-file.full-size(
|
|
ng-controller="BinaryFileController"
|
|
ng-show="ui.view == 'file'"
|
|
ng-if="openFile"
|
|
)
|
|
img(
|
|
ng-src="/project/{{ project_id }}/file/{{ openFile.id }}"
|
|
ng-if="['png', 'jpg', 'jpeg', 'gif'].indexOf(extension(openFile)) > -1"
|
|
)
|
|
img(
|
|
ng-src="/project/{{ project_id }}/file/{{ openFile.id }}?format=png"
|
|
ng-if="['pdf', 'eps'].indexOf(extension(openFile)) > -1"
|
|
)
|
|
p.no-preview(
|
|
ng-if="['png', 'jpg', 'jpeg', 'gif', 'pdf', 'eps'].indexOf(extension(openFile)) == -1"
|
|
) #{translate("no_preview_available")}
|
|
a.btn.btn-info(
|
|
ng-href="/project/{{ project_id }}/file/{{ openFile.id }}"
|
|
) #{translate("download")} {{ openFile.name }}
|