overleaf/services/web/app/views/project/editor/binary-file.jade

20 lines
666 B
Text
Raw Normal View History

2014-07-03 12:05:50 -04:00
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"
2014-07-31 12:07:43 -04:00
) #{translate("no_preview_available")}
2014-07-03 12:05:50 -04:00
a.btn.btn-info(
ng-href="/project/{{ project_id }}/file/{{ openFile.id }}"
2014-07-31 12:07:43 -04:00
) #{translate("download")} {{ openFile.name }}