Skip to content
Snippets Groups Projects
Select Git revision
  • ffde522654aa7b3c0dfe10f61fe4c444a328eba4
  • master default protected
  • feat/new-image-formats
  • clickable-select-chevron
  • 2.20.0
  • 2.19.0
  • 2.18.0
  • 2.17.0
  • 2.16.1
  • 2.16.0
  • 2.15.0
  • 2.14.0
  • 2.13.0
  • 2.12.1
  • 2.11.0
  • 2.10.0
  • 2.9.1
  • 2.9.0
  • 2.8.0
  • 2.7.1
  • 2.7.0
  • 2.6.0
  • 2.5.2
  • 2.5.1
24 results

subnav.mustache

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 %}