use button with icon on news.read_more

This commit is contained in:
msquare 2021-12-12 13:13:22 +01:00
parent 65f4af9c7e
commit 03a7faf6d8
4 changed files with 6 additions and 4 deletions

View File

@ -2884,7 +2884,7 @@ msgid "news.is_meeting"
msgstr "[Treffen]" msgstr "[Treffen]"
msgid "news.read_more" msgid "news.read_more"
msgstr "Weiterlesen »" msgstr "Weiterlesen"
msgid "news.updated" msgid "news.updated"
msgstr "Aktualisiert" msgstr "Aktualisiert"

View File

@ -154,7 +154,7 @@ msgid "news.is_meeting"
msgstr "[Meeting]" msgstr "[Meeting]"
msgid "news.read_more" msgid "news.read_more"
msgstr "Continue reading »" msgstr "Continue reading"
msgid "news.updated" msgid "news.updated"
msgstr "Updated" msgstr "Updated"

View File

@ -18,9 +18,11 @@
</a> </a>
{% endmacro %} {% endmacro %}
{% macro button(label, url, type, size, title) %} {% macro button(label, url, type, size, title, icon_left, icon_right) %}
<a href="{{ url }}" class="btn btn-{{ type|default('secondary') }}{% if size %} btn-{{ size }}{% endif %}"{% if title %} title="{{ title }}"{% endif %}> <a href="{{ url }}" class="btn btn-{{ type|default('secondary') }}{% if size %} btn-{{ size }}{% endif %}"{% if title %} title="{{ title }}"{% endif %}>
{%- if icon_left is defined %}{{ _self.icon(icon_left) }}{% endif %}
{{ label }} {{ label }}
{%- if icon_right is defined %}{{ _self.icon(icon_right) }}{% endif %}
</a> </a>
{% endmacro %} {% endmacro %}

View File

@ -62,7 +62,7 @@
<div class="card-body bg-body"> <div class="card-body bg-body">
{{ news.text(not is_overview)|raw|markdown(false) }} {{ news.text(not is_overview)|raw|markdown(false) }}
{% if is_overview and news.text != news.text(false) %} {% if is_overview and news.text != news.text(false) %}
{{ m.button(__('news.read_more'), url('news/' ~ news.id), null, 'sm') }} {{ m.button(__('news.read_more'), url('news/' ~ news.id), null, 'sm', null, null, 'chevron-double-right') }}
{% endif %} {% endif %}
</div> </div>