forked from rc/aircox
work on layout.css
This commit is contained in:
@ -1,17 +0,0 @@
|
||||
{% extends "aircox_cms/sections/section_item.html" %}
|
||||
{% load wagtailimages_tags %}
|
||||
|
||||
{% block content %}
|
||||
{% with link=self.as_dict %}
|
||||
<a href="{{ link.url }}" {% if self.info %}title="{{ self.info }}"{% endif %}>
|
||||
{% if link.icon %}
|
||||
{% image link.icon fill-32x32 class="icon link_icon" height='' width='' %}
|
||||
{% elif link.icon_path %}
|
||||
<img src="{{ link.icon_path }}" class="icon link_icon"/>
|
||||
{% endif %}
|
||||
{{ link.text }}
|
||||
</a>
|
||||
{% endwith %}
|
||||
{% endblock %}
|
||||
|
||||
|
@ -1,15 +1,10 @@
|
||||
{% extends "aircox_cms/sections/section_item.html" %}
|
||||
{% load wagtailimages_tags %}
|
||||
{% load aircox_cms %}
|
||||
|
||||
{% block content %}
|
||||
{% for item in object_list %}
|
||||
{% with link=item.as_dict %}
|
||||
<a href="{{ link.url }}"
|
||||
{% if item.css_class %}class="{{ item.css_class }}"{% endif %}>
|
||||
{% if link.icon %}{% image link.icon fill-24x24 class="icon" %}{% endif %}
|
||||
{{ link.text }}
|
||||
</a>
|
||||
{% endwith %}
|
||||
{% for item in self.links.all %}
|
||||
{% render_template_mixin item %}
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
|
||||
|
Reference in New Issue
Block a user