Skip to content
Snippets Groups Projects
Select Git revision
  • 07a873702a303d8ccfd028e8279df5bd3b993580
  • master default protected
2 results

bottom-slogan-vertical-logo.js

Blame
  • feed_item_description.html 845 B
    {% load wagtailcore_tags %}
    
    <p>{{ item.perex }}</p>
    
    {% for block in item.content %}
        {% if block.block_type == "text" %}
            {% comment %}
                No need to wrap this in a <p>, as the value already does this
            {% endcomment %}
            {{ block.value }}
        {% elif block.block_type == "quote" %}
            <blockquote>„{{ block.value.quote }}“</blockquote>
            <p>— {{ block.value.autor_name }}</p>
        {% elif block.block_type == "download" %}
            <p>
                Soubor „{{ block.value.file }}“ ke stažení: <a href="{{ block.value.file.url }}">{{ block.value.file.url }}</a>
            </p>
        {% elif block.block_type == "image" %}
            <a href="{{ block.value.href }}">
                <img src="{{ block.value.image.url }}">
            </a>
            <p>{{ block.value.text }}</p>
        {% endif %}
    {% endfor %}