mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 09:53:15 +00:00
PHRAS-2719
This commit is contained in:
@@ -15,7 +15,11 @@
|
||||
|
||||
{% set previewHtml5 = null %}
|
||||
|
||||
{% if app.getAclForUser(app.getAuthenticatedUser()).has_access_to_subdef(record, 'preview') and record.has_preview == true %}
|
||||
{# first check if type audio and there is no preview , fallback to thumbnail #}
|
||||
|
||||
{% if app.getAclForUser(app.getAuthenticatedUser()).has_access_to_subdef(record, 'preview') and record.getType == 'audio' and record.has_preview == false %}
|
||||
{% set preview_obj = record.get_thumbnail() %}
|
||||
{% elseif app.getAclForUser(app.getAuthenticatedUser()).has_access_to_subdef(record, 'preview') %}
|
||||
{% set preview_obj = record.get_preview() %}
|
||||
{% else %}
|
||||
{% set preview_obj = record.get_thumbnail() %}
|
||||
|
@@ -73,9 +73,9 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="editDiaButtons" style="position:absolute; bottom:14px; right:0px; width:30px; height:12px; display:none">
|
||||
<span id="idEditDiaButtonsP_{{i}}" style="cursor:pointer"><i class="icon-round-add_box-24px icomoon" style="font-size: 24px"> </i></span>
|
||||
<span id="idEditDiaButtonsM_{{i}}" style="cursor:pointer"><i class="icon-baseline-indeterminate_check_box-24px icomoon" style="font-size: 24px"> </i></span>
|
||||
<div class="editDiaButtons" style="position:absolute; bottom:8px; right:3px; width:30px; display:none">
|
||||
<span id="idEditDiaButtonsP_{{i}}" style="cursor:pointer"><i class="fa fa-plus editIcon"> </i></span>
|
||||
<span id="idEditDiaButtonsM_{{i}}" style="cursor:pointer"><i class="fa fa-minus editIcon"> </i></span>
|
||||
</div>
|
||||
</div>
|
||||
{% endmacro %}
|
||||
@@ -477,4 +477,5 @@
|
||||
{% endfor %}
|
||||
]
|
||||
};
|
||||
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user