From b284ab6935216116f4b40a7342b98ad0a135ed4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20B=C3=B6sch?= Date: Sat, 8 Jun 2019 13:53:14 +0200 Subject: [PATCH] MDL-65876 forum: same arrows forum/activity navigation --- mod/forum/renderer.php | 10 ++++++---- mod/forum/styles.css | 17 +---------------- 2 files changed, 7 insertions(+), 20 deletions(-) diff --git a/mod/forum/renderer.php b/mod/forum/renderer.php index 74c2d017aca..733b558f8ec 100644 --- a/mod/forum/renderer.php +++ b/mod/forum/renderer.php @@ -48,15 +48,17 @@ class mod_forum_renderer extends plugin_renderer_base { if ($prev) { $url = new moodle_url('/mod/forum/discuss.php', array('d' => $prev->id)); $html .= html_writer::start_tag('li', array('class' => 'prev-discussion')); - $html .= html_writer::link($url, format_string($prev->name), - array('aria-label' => get_string('prevdiscussiona', 'mod_forum', format_string($prev->name)))); + $html .= html_writer::link($url, $this->output->larrow() . ' ' . format_string($prev->name), + array('aria-label' => get_string('prevdiscussiona', 'mod_forum', format_string($prev->name)), + 'class' => 'btn btn-link')); $html .= html_writer::end_tag('li'); } if ($next) { $url = new moodle_url('/mod/forum/discuss.php', array('d' => $next->id)); $html .= html_writer::start_tag('li', array('class' => 'next-discussion')); - $html .= html_writer::link($url, format_string($next->name), - array('aria-label' => get_string('nextdiscussiona', 'mod_forum', format_string($next->name)))); + $html .= html_writer::link($url, format_string($next->name) . ' ' . $this->output->rarrow(), + array('aria-label' => get_string('nextdiscussiona', 'mod_forum', format_string($next->name)), + 'class' => 'btn btn-link')); $html .= html_writer::end_tag('li'); } $html .= html_writer::end_tag('ul'); diff --git a/mod/forum/styles.css b/mod/forum/styles.css index 6343e1d9192..43cb738229e 100644 --- a/mod/forum/styles.css +++ b/mod/forum/styles.css @@ -273,22 +273,7 @@ span.unread { .path-mod-forum .discussion-nav ul { margin: 0; list-style: none; -} - -.path-mod-forum .discussion-nav .prev-discussion:before { - /*rtl:raw: - content: ' ► '; - */ - /*rtl:remove*/ - content: ' ◄ '; -} - -.path-mod-forum .discussion-nav .next-discussion:after { - /*rtl:raw: - content: ' ◄ '; - */ - /*rtl:remove*/ - content: ' ► '; + padding-left: 0; } .path-mod-forum .discussion-nav .next-discussion {