diff --git a/assets/less/classes/forum/header.less b/assets/less/classes/forum/header.less index f1891cdf..6c9a1a35 100644 --- a/assets/less/classes/forum/header.less +++ b/assets/less/classes/forum/header.less @@ -8,6 +8,12 @@ &__title { font-size: 2em; line-height: 1.5em; + color: inherit; + text-decoration: none; + + &[href]:hover { + text-decoration: underline; + } } &__input { diff --git a/templates/forum/macros.twig b/templates/forum/macros.twig index 1a812790..87d6c3f5 100644 --- a/templates/forum/macros.twig +++ b/templates/forum/macros.twig @@ -19,7 +19,7 @@ {% endmacro %} -{% macro forum_header(title, breadcrumbs, omit_last_breadcrumb) %} +{% macro forum_header(title, breadcrumbs, omit_last_breadcrumb, title_url) %}
{% if breadcrumbs is iterable and breadcrumbs|length > 0 %}
@@ -38,9 +38,15 @@ {% endif %} {% if title|length > 0 %} -
- {{ title }} -
+ {% if title_url|length > 0 %} + + {{ title }} + + {% else %} +
+ {{ title }} +
+ {% endif %} {% endif %}
{% endmacro %} diff --git a/templates/forum/posting.twig b/templates/forum/posting.twig index 814187d5..9fe6ac4a 100644 --- a/templates/forum/posting.twig +++ b/templates/forum/posting.twig @@ -10,7 +10,7 @@ {{ input_hidden('post[' ~ (is_reply ? 'topic' : 'forum') ~ ']', is_reply ? posting_topic.topic_id : posting_forum.forum_id) }} {{ input_hidden('post[mode]', posting_mode) }} {{ input_csrf('forum_post') }} - {{ forum_header(is_reply ? posting_topic.topic_title : input_text('post[title]', 'forum__header__input', '', 'text', 'Enter your title here...'), posting_breadcrumbs) }} + {{ forum_header(is_reply ? posting_topic.topic_title : input_text('post[title]', 'forum__header__input', '', 'text', 'Enter your title here...'), posting_breadcrumbs, false, is_reply ? '/forum/topic.php?t=' ~ posting_topic.topic_id : '') }} {% if posting_post is defined %} {{ input_hidden('post[id]', posting_post.post_id) }}