~fabrixxm/activist

8ea178865ca2a3352093dbb427e64e42fc6ccf62 — fabrixxm a month ago 40e947b
ui object small: render full content
1 files changed, 12 insertions(+), 1 deletions(-)

M activist/templates/f/object-small.tpl.j2
M activist/templates/f/object-small.tpl.j2 => activist/templates/f/object-small.tpl.j2 +12 -1
@@ 1,6 1,5 @@
{#
	obj: AS object to show
	active: [bool] is active
	level: object level
	replies: show relplies
#}


@@ 18,8 17,20 @@
            {# todo: share content rendering between 'object' and 'object-small' #}
            {{ obj.data.content|safe }}

            {% set attachments = obj.data.attachment %}
            {% for a in attachments  %}
                {# TODO: check type and mediaType #}
                <img src="{{ a.url }}" class="img-responsive">
            {% endfor %}

        </div>

        {% if obj.data.url and obj.data.mediaType and obj.data.mediaType.startswith("image/") %}
        <div class="smaller-tile-image">
            <img src="{{ obj.data.url }}" class="img-responsive" title="{{ obj.data.name }}">
        </div>
        {% endif %}

        <div class="smaller-tile-footer">
            {% include 'f/actions.tpl.j2' %}
        </div>