correctif sur affichage widget
This commit is contained in:
parent
0fc6edbb4d
commit
82b09a4fc1
|
@ -196,17 +196,7 @@
|
||||||
{% set stylewidgetbody = "" %}
|
{% set stylewidgetbody = "" %}
|
||||||
{% set stylewidgetbody = stylewidgetbody ~ "background-color: #" ~ colorbodyback ~ "; " %}
|
{% set stylewidgetbody = stylewidgetbody ~ "background-color: #" ~ colorbodyback ~ "; " %}
|
||||||
{% set stylewidgetbody = stylewidgetbody ~ "color: #" ~ colorbodyfont ~ "; " %}
|
{% set stylewidgetbody = stylewidgetbody ~ "color: #" ~ colorbodyfont ~ "; " %}
|
||||||
{% if not entity.autoajust %}
|
|
||||||
{% set stylewidgetbody = stylewidgetbody ~ "height: " ~ (entity.height-50-2) ~ "px; overflow-y: auto;" %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if entity.border %}
|
|
||||||
{% set stylewidgetbody = stylewidgetbody ~ "padding:10px" %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if not entity.opened %}
|
|
||||||
{% set stylewidgetbody = stylewidgetbody ~ "display:none" %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{{ stylewidgetbody }}
|
{{ stylewidgetbody }}
|
||||||
|
|
||||||
|
|
|
@ -54,13 +54,13 @@
|
||||||
<div class="grid-gutter-sizer grid-gutter-sizer-preview"></div>
|
<div class="grid-gutter-sizer grid-gutter-sizer-preview"></div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div class="grid-item grid-preview">
|
<div class="grid-item grid-preview" style="{{ stylewidgetbodyreverse }};">
|
||||||
<a href onClick="showFrameitem('blog','{{ path('cadoles_portal_'~access~'_blogarticle_view',{'id':blogarticle.id}) }}',true)">
|
<a href onClick="showFrameitem('blog','{{ path('cadoles_portal_'~access~'_blogarticle_view',{'id':blogarticle.id}) }}',true)">
|
||||||
{% if blogarticle.image is not empty %}
|
{% if blogarticle.image is not empty %}
|
||||||
<img src="/{{alias}}/{{blogarticle.image|replace({"/blogarticle/":"/blogarticle/thumb-"})}}" width="100%">
|
<img src="/{{alias}}/{{blogarticle.image|replace({"/blogarticle/":"/blogarticle/thumb-"})}}" width="100%">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="caption" style="{{ stylewidgetbodyreverse }}">
|
<div class="caption">
|
||||||
<h1 class="grid-preview-title" style="color: #{{ stylewidgetbodyreverse }};">{{ blogarticle.name}}</h1>
|
<h1 class="grid-preview-title" style="{{ stylewidgetbodyreverse }};">{{ blogarticle.name}}</h1>
|
||||||
<small>publié par {{ blogarticle.user.username }} le {{ blogarticle.submit|date("d/m/Y à H:i") }}<br>dans le blog {{blogarticle.blog.name }}</small>
|
<small>publié par {{ blogarticle.user.username }} le {{ blogarticle.submit|date("d/m/Y à H:i") }}<br>dans le blog {{blogarticle.blog.name }}</small>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -37,9 +37,9 @@
|
||||||
<div class="grid-sizer grid-small"></div>
|
<div class="grid-sizer grid-small"></div>
|
||||||
<div class="grid-gutter-sizer"></div>
|
<div class="grid-gutter-sizer"></div>
|
||||||
{% for group in groups %}
|
{% for group in groups %}
|
||||||
<div class="grid-item grid-small">
|
<div class="grid-item grid-small" style="{{ stylewidgetbodyreverse }};">
|
||||||
<a href="{{path('cadoles_core_home',{id:group.id})}}" target="_top">
|
<a href="{{path('cadoles_core_home',{id:group.id})}}" target="_top" style="{{ stylewidgetbodyreverse }};">
|
||||||
<div class="grid-item-content" style="{{ stylewidgetbodyreverse }}">
|
<div class="grid-item-content">
|
||||||
<div class="grid-item-logo">
|
<div class="grid-item-logo">
|
||||||
{% if group.icon %}
|
{% if group.icon %}
|
||||||
<img class="grid-item-img" height="110" src="/{{ alias }}{{ group.icon }}" />
|
<img class="grid-item-img" height="110" src="/{{ alias }}{{ group.icon }}" />
|
||||||
|
|
Loading…
Reference in New Issue