some fixes

This commit is contained in:
bkfox
2016-11-15 21:58:55 +01:00
parent f183669c04
commit fc8b15eb03
4 changed files with 75 additions and 22 deletions

View File

@ -1,8 +1,10 @@
<section class="section_item {{ self.css_class }} {{ self.snake_name }}">
{% block section_content %}
{% block title %}
{% if self.show_title %}<h2>{{ self.title }}</h2>{% endif %}
{% endblock %}
{% block content %}{{ content|safe }}{% endblock %}
{% endblock %}
</section>

View File

@ -3,8 +3,12 @@
{% block content %}
{% with link=self.as_dict %}
<a href="{{ link.url }}">
{% if link.icon %}{% image link.icon fill-32x32 class="icon link_icon" height='' width='' %}{% endif %}
<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 %}