mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 23:43:12 +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;
|
background-image: none;
|
||||||
border: 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/jquery-ui';
|
||||||
@import 'ui-components/context-menu';
|
@import 'ui-components/context-menu';
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
{{ macro.caption(record, business, display_exif) }}
|
{{ macro.caption(record, business, display_exif) }}
|
||||||
{% elseif view == 'preview' %}
|
{% elseif view == 'preview' %}
|
||||||
{% set display_exif = false %}
|
{% set display_exif = false %}
|
||||||
{{ macro.caption(record, business, display_exif) }}
|
{{ macro.caption(record, business, display_exif, true) }}
|
||||||
{% elseif view == 'basket' %}
|
{% elseif view == 'basket' %}
|
||||||
{% set display_exif = false %}
|
{% set display_exif = false %}
|
||||||
{{ macro.caption(record, business, display_exif) }}
|
{{ macro.caption(record, business, display_exif) }}
|
||||||
|
@@ -116,8 +116,8 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
{% macro caption(record, can_see_business, display_exif) %}
|
{% macro caption(record, can_see_business, display_exif, limitedWidth = false) %}
|
||||||
<dl class="dl-horizontal">
|
<dl class="{% if limitedWidth %}{% else %}dl-horizontal{% endif %}">
|
||||||
{% for name, value in record.getCaption(caption_field_order(record, can_see_business)) %}
|
{% for name, value in record.getCaption(caption_field_order(record, can_see_business)) %}
|
||||||
<dt>{{ name }}</dt>
|
<dt>{{ name }}</dt>
|
||||||
<dd>{{ caption_field(record, name, value)|e|highlight }}</dd>
|
<dd>{{ caption_field(record, name, value)|e|highlight }}</dd>
|
||||||
|
@@ -81,7 +81,7 @@
|
|||||||
<div class="lightbox_container PNB">
|
<div class="lightbox_container PNB">
|
||||||
{% set business = app.getAclForUser(app.getAuthenticatedUser()).has_right_on_base(first_item.getRecord(app).get_base_id(), 'canmodifrecord') %}
|
{% set business = app.getAclForUser(app.getAuthenticatedUser()).has_right_on_base(first_item.getRecord(app).get_base_id(), 'canmodifrecord') %}
|
||||||
{% if first_item %}
|
{% if first_item %}
|
||||||
{{macro.caption(first_item.getRecord(app), business, false)}}
|
{{macro.caption(first_item.getRecord(app), business, false, true)}}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -95,7 +95,7 @@
|
|||||||
<div class="lightbox_container PNB">
|
<div class="lightbox_container PNB">
|
||||||
{% if basket_element %}
|
{% if basket_element %}
|
||||||
{% set business = app.getAclForUser(app.getAuthenticatedUser()).has_right_on_base(basket_element.getRecord(app).get_base_id(), 'canmodifrecord') %}
|
{% 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 %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user