use button with icon on news.read_more
This commit is contained in:
parent
65f4af9c7e
commit
03a7faf6d8
|
@ -2884,7 +2884,7 @@ msgid "news.is_meeting"
|
|||
msgstr "[Treffen]"
|
||||
|
||||
msgid "news.read_more"
|
||||
msgstr "Weiterlesen »"
|
||||
msgstr "Weiterlesen"
|
||||
|
||||
msgid "news.updated"
|
||||
msgstr "Aktualisiert"
|
||||
|
|
|
@ -154,7 +154,7 @@ msgid "news.is_meeting"
|
|||
msgstr "[Meeting]"
|
||||
|
||||
msgid "news.read_more"
|
||||
msgstr "Continue reading »"
|
||||
msgstr "Continue reading"
|
||||
|
||||
msgid "news.updated"
|
||||
msgstr "Updated"
|
||||
|
|
|
@ -18,9 +18,11 @@
|
|||
</a>
|
||||
{% 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 %}>
|
||||
{%- if icon_left is defined %}{{ _self.icon(icon_left) }}{% endif %}
|
||||
{{ label }}
|
||||
{%- if icon_right is defined %}{{ _self.icon(icon_right) }}{% endif %}
|
||||
</a>
|
||||
{% endmacro %}
|
||||
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
<div class="card-body bg-body">
|
||||
{{ news.text(not is_overview)|raw|markdown(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 %}
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue