#254: no 404 if no main file for a document

This commit is contained in:
Benjamin Gamard 2018-11-01 16:29:22 +01:00
parent cee82f39c2
commit 4ebf621e11

View File

@ -284,7 +284,7 @@
<div ng-repeat-start="document in documents" class="col-md-4"> <div ng-repeat-start="document in documents" class="col-md-4">
<div class="thumbnail" ng-class="{ active: $stateParams.id == document.id }"> <div class="thumbnail" ng-class="{ active: $stateParams.id == document.id }">
<a href="#/document/view/{{ document.id }}" class="file-thumbnail"> <a href="#/document/view/{{ document.id }}" class="file-thumbnail">
<img class="img-responsive" ng-src="../api/file/{{ document.file_id }}/data?size=thumb" /> <img class="img-responsive" ng-if="document.file_id" ng-src="../api/file/{{ document.file_id }}/data?size=thumb" />
</a> </a>
<div class="file-info"> <div class="file-info">