From 68fb6dcb57f26b7f66c1724031ef56f595ae7e4e Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Sun, 2 Jul 2023 14:04:31 +0200 Subject: [PATCH] [ticket/17155] Default to first unread post on topics Also removed the unread post icon and instead opted for playing with font weight and color for indication. PHPBB3-17155 --- phpBB/styles/prosilver/template/search_results.html | 11 +++++------ .../prosilver/template/ucp_main_bookmarks.html | 10 +++++----- phpBB/styles/prosilver/template/ucp_main_front.html | 12 ++++++------ .../prosilver/template/ucp_main_subscribed.html | 10 +++++----- phpBB/styles/prosilver/template/viewforum_body.html | 13 +++++++------ phpBB/styles/prosilver/theme/colours.css | 3 +-- phpBB/styles/prosilver/theme/links.css | 8 ++++++-- 7 files changed, 35 insertions(+), 32 deletions(-) diff --git a/phpBB/styles/prosilver/template/search_results.html b/phpBB/styles/prosilver/template/search_results.html index 44256d8283..c448ea52fd 100644 --- a/phpBB/styles/prosilver/template/search_results.html +++ b/phpBB/styles/prosilver/template/search_results.html @@ -99,12 +99,11 @@ {% endif %}
- - - {{ Icon('iconify', 'fa:file', lang('NEW_POST'), true, 'c-topic-unread-icon') }} - - - {searchresults.TOPIC_TITLE} + {% if searchresults.S_UNREAD_TOPIC and not S_IS_BOT %} + {{ searchresults.TOPIC_TITLE }} + {% else %} + {{ searchresults.TOPIC_TITLE }} + {% endif %} {{ Icon('iconify', 'fa:question', lang('TOPIC_UNAPPROVED'), true, 'c-uapproved-icon') }} diff --git a/phpBB/styles/prosilver/template/ucp_main_bookmarks.html b/phpBB/styles/prosilver/template/ucp_main_bookmarks.html index 72b13d4f2a..47bb3cbfac 100644 --- a/phpBB/styles/prosilver/template/ucp_main_bookmarks.html +++ b/phpBB/styles/prosilver/template/ucp_main_bookmarks.html @@ -54,11 +54,11 @@ {% endif %}
- - - {{ Icon('iconify', 'fa:file', NEW_POST, true, 'c-topic-unread-icon') }} - - {topicrow.TOPIC_TITLE} + {% if topicrow.S_UNREAD_TOPIC %} + {{ topicrow.TOPIC_TITLE }} + {% else %} + {{ topicrow.TOPIC_TITLE }} + {% endif %} {{ Icon('iconify', 'fa:question', lang('TOPIC_UNAPPROVED'), true, 'c-unapproved-icon') }} diff --git a/phpBB/styles/prosilver/template/ucp_main_front.html b/phpBB/styles/prosilver/template/ucp_main_front.html index 7c6c083d8d..2744d28dd9 100644 --- a/phpBB/styles/prosilver/template/ucp_main_front.html +++ b/phpBB/styles/prosilver/template/ucp_main_front.html @@ -33,12 +33,12 @@ {% endif %}
- - - {{ Icon('iconify', 'fa:file', NEW_POST, true, 'c-topic-unread-icon') }} - - - {topicrow.TOPIC_TITLE}
+ {% if topicrow.S_UNREAD %} + {{ topicrow.TOPIC_TITLE }} + {% else %} + {{ topicrow.TOPIC_TITLE }} + {% endif %} +