forked from Combodo/sample-portal-dev-new-brick
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tile.html.twig
17 lines (15 loc) · 1.01 KB
/
tile.html.twig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{# sample-portal-dev-new-brick/tile.html.twig #}
{# Image brick tile layout #}
<div class="col-xs-12 col-sm-{{ brick.GetWidth }}">
{% block pTileWrapper %}
<a href="{{ app.url_generator.generate(brick.GetRouteName, {sBrickId: brick.GetId}) }}{% if app['combodo.portal.instance.routes'][brick.GetRouteName]['hash'] is defined %}#{{ app['combodo.portal.instance.routes'][brick.GetRouteName]['hash'] }}{% endif %}"
{% if app['combodo.portal.instance.routes'][brick.GetRouteName]['navigation_menu_attr'] is defined %}{% for key, value in app['combodo.portal.instance.routes'][brick.GetRouteName]['navigation_menu_attr'] %} {{ key }}="{{ value }}"{% endfor %}{% endif %}
{% if brick.GetModal %}data-toggle="modal" data-target="#modal-for-all"{% endif %}
class="tile{# vertical-center#}"
id="brick-{{ brick.GetId }}"
data-brick-id="{{ brick.GetId }}">
<img src="{{ brick.Url }}" alt="Here shoulb be the image!" style="max-height: 200px;"/>
<div> {{ iTicketCount }} @ {{ sTimestamp }}</div>
</a>
{% endblock %}
</div>