work on layout.css

This commit is contained in:
bkfox
2016-11-16 02:23:36 +01:00
parent fc8b15eb03
commit e5f47be608
8 changed files with 140 additions and 93 deletions

View File

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

View File

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