From 03a7faf6d898e7797f8e41577f5103ad8c0e7ae5 Mon Sep 17 00:00:00 2001 From: msquare Date: Sun, 12 Dec 2021 13:13:22 +0100 Subject: [PATCH] use button with icon on news.read_more --- resources/lang/de_DE/default.po | 2 +- resources/lang/en_US/default.po | 2 +- resources/views/macros/base.twig | 4 +++- resources/views/pages/news/overview.twig | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/resources/lang/de_DE/default.po b/resources/lang/de_DE/default.po index 670fd1bd..0a7fa636 100644 --- a/resources/lang/de_DE/default.po +++ b/resources/lang/de_DE/default.po @@ -2884,7 +2884,7 @@ msgid "news.is_meeting" msgstr "[Treffen]" msgid "news.read_more" -msgstr "Weiterlesen »" +msgstr "Weiterlesen" msgid "news.updated" msgstr "Aktualisiert" diff --git a/resources/lang/en_US/default.po b/resources/lang/en_US/default.po index c23582b6..f2407744 100644 --- a/resources/lang/en_US/default.po +++ b/resources/lang/en_US/default.po @@ -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" diff --git a/resources/views/macros/base.twig b/resources/views/macros/base.twig index dbc58acf..6e324bcd 100644 --- a/resources/views/macros/base.twig +++ b/resources/views/macros/base.twig @@ -18,9 +18,11 @@ {% endmacro %} -{% macro button(label, url, type, size, title) %} +{% macro button(label, url, type, size, title, icon_left, icon_right) %} + {%- if icon_left is defined %}{{ _self.icon(icon_left) }}{% endif %} {{ label }} + {%- if icon_right is defined %}{{ _self.icon(icon_right) }}{% endif %} {% endmacro %} diff --git a/resources/views/pages/news/overview.twig b/resources/views/pages/news/overview.twig index b769a6f4..22db4d8e 100644 --- a/resources/views/pages/news/overview.twig +++ b/resources/views/pages/news/overview.twig @@ -62,7 +62,7 @@
{{ 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 %}