mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
PHRAS-914 - fix lightbox captions display, fix videoTips width and height
This commit is contained in:
@@ -589,3 +589,7 @@ hr {
|
||||
background-image: none;
|
||||
border: none;
|
||||
}
|
||||
.videoTips {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
@@ -518,6 +518,10 @@ h4 {
|
||||
}
|
||||
}
|
||||
}
|
||||
.videoTips {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
@import 'ui-components/jquery-ui';
|
||||
@import 'ui-components/context-menu';
|
||||
|
@@ -9,7 +9,7 @@
|
||||
{{ macro.caption(record, business, display_exif) }}
|
||||
{% elseif view == 'preview' %}
|
||||
{% set display_exif = false %}
|
||||
{{ macro.caption(record, business, display_exif) }}
|
||||
{{ macro.caption(record, business, display_exif, true) }}
|
||||
{% elseif view == 'basket' %}
|
||||
{% set display_exif = false %}
|
||||
{{ macro.caption(record, business, display_exif) }}
|
||||
|
@@ -116,8 +116,8 @@
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro caption(record, can_see_business, display_exif) %}
|
||||
<dl class="dl-horizontal">
|
||||
{% macro caption(record, can_see_business, display_exif, limitedWidth = false) %}
|
||||
<dl class="{% if limitedWidth %}{% else %}dl-horizontal{% endif %}">
|
||||
{% for name, value in record.getCaption(caption_field_order(record, can_see_business)) %}
|
||||
<dt>{{ name }}</dt>
|
||||
<dd>{{ caption_field(record, name, value)|e|highlight }}</dd>
|
||||
|
@@ -81,7 +81,7 @@
|
||||
<div class="lightbox_container PNB">
|
||||
{% set business = app.getAclForUser(app.getAuthenticatedUser()).has_right_on_base(first_item.getRecord(app).get_base_id(), 'canmodifrecord') %}
|
||||
{% if first_item %}
|
||||
{{macro.caption(first_item.getRecord(app), business, false)}}
|
||||
{{macro.caption(first_item.getRecord(app), business, false, true)}}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -95,7 +95,7 @@
|
||||
<div class="lightbox_container PNB">
|
||||
{% if basket_element %}
|
||||
{% set business = app.getAclForUser(app.getAuthenticatedUser()).has_right_on_base(basket_element.getRecord(app).get_base_id(), 'canmodifrecord') %}
|
||||
{{macro.caption(basket_element.getRecord(app), business, false)}}
|
||||
{{macro.caption(basket_element.getRecord(app), business, false, true)}}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user