templates: update forms' category variable name (#70415)
This commit is contained in:
parent
3aad9021ae
commit
57e678818e
|
@ -6,9 +6,9 @@
|
|||
<span>{{ title }}</span>
|
||||
</h2>
|
||||
{% include "combo/asset_picture_fragment.html" %}
|
||||
{% if description %}
|
||||
{% if category_description %}
|
||||
<div class="intro">
|
||||
{{ description|safe }}
|
||||
{{ category_description|safe }}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock cell-header %}
|
||||
|
|
|
@ -8,9 +8,9 @@
|
|||
<img src="{% asset_url "wcs:category:picture:"|add:cell.category_reference size="265x174" crop="center" %}" alt="">
|
||||
</picture>
|
||||
<h2 style="background-image: url({% asset_url "wcs:category:logo:"|add:cell.category_reference size="65x65" %})"><span>{{ title }}</span></h2>
|
||||
{% if description %}
|
||||
{% if category_description %}
|
||||
<div class="intro">
|
||||
{{ description|safe }}
|
||||
{{ category_description|safe }}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock cell-top-content %}
|
||||
|
|
|
@ -9,9 +9,9 @@
|
|||
<img src="{% asset_url asset size="660x360" crop="center" upscale=False %}" alt="">
|
||||
</picture>
|
||||
{% endif %}
|
||||
{% if description %}
|
||||
{% if category_description %}
|
||||
<div class="intro">
|
||||
{{ description|safe }}
|
||||
{{ category_description|safe }}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
{% block cell-header %}
|
||||
{% get_asset "wcs:category:picture:"|add:cell.category_reference as asset %}
|
||||
<h2{% if asset %} class="with-asset" style="background-image: url({% asset_url asset crop="center" %})"{% endif %}><span>{{ title }}</span></h2>
|
||||
{% if description %}
|
||||
{% if category_description %}
|
||||
<div class="intro">
|
||||
{{ description|safe }}
|
||||
{{ category_description|safe }}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
{% load i18n %}
|
||||
<div class="wcs-forms-of-category-{{slug}}">
|
||||
<h2>{{ title }}</h2>
|
||||
{% if description %}
|
||||
{% if category_description %}
|
||||
<div class="intro">
|
||||
{{ description|safe }}
|
||||
{{ category_description|safe }}
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="links-list">
|
||||
|
|
|
@ -8,9 +8,9 @@
|
|||
{% include "combo/asset_picture_fragment.html" %}
|
||||
{{ title }}
|
||||
</h1>
|
||||
{% if description %}
|
||||
{% if category_description %}
|
||||
<div class="description page-header--description">
|
||||
{{ description|safe }}
|
||||
{{ category_description|safe }}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
|
|
@ -6,9 +6,9 @@
|
|||
<h3 class="cell--title">
|
||||
<a href="{{ portal_url }}{{ category_path }}{{ slug }}">{{ title }}</a>
|
||||
</h3>
|
||||
{% if description %}
|
||||
{% if category_description %}
|
||||
<div class="cell--body description">
|
||||
{{ description|safe }}
|
||||
{{ category_description|safe }}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
|
||||
<h2>{{ title }}</h2>
|
||||
|
||||
{% if description %}
|
||||
{% if category_description %}
|
||||
<div class="intro">
|
||||
{{ description|safe }}
|
||||
{{ category_description|safe }}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
{% block cell-header %}
|
||||
{% get_asset "wcs:category:picture:"|add:cell.category_reference as asset %}
|
||||
<h2 {% if asset %}class="has-picture" style="background-image: url({% asset_url asset size="160x160" crop="center" %})"{% endif %}>{{ title }}</h2>
|
||||
{% if description %}
|
||||
{% if category_description %}
|
||||
<div class="intro">
|
||||
{{ description|safe }}
|
||||
{{ category_description|safe }}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
</picture>
|
||||
{% endif %}
|
||||
<h2>{{ title }}</h2>
|
||||
{% if description %}
|
||||
{% if category_description %}
|
||||
<div class="intro">
|
||||
{{ description|safe }}
|
||||
{{ category_description|safe }}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock cell-top-content %}
|
||||
|
|
Loading…
Reference in New Issue