forked from rc/aircox
some fixes
This commit is contained in:
@ -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>
|
||||
|
||||
|
||||
|
@ -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 %}
|
||||
|
Reference in New Issue
Block a user