1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-31 20:11:54 +02:00

[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
This commit is contained in:
Marc Alexander
2023-07-02 14:04:31 +02:00
parent 3e2d2d240a
commit 68fb6dcb57
7 changed files with 35 additions and 32 deletions

View File

@@ -99,12 +99,11 @@
{% endif %}
<div class="list-inner">
<!-- EVENT topiclist_row_prepend -->
<!-- IF searchresults.S_UNREAD_TOPIC and not S_IS_BOT -->
<a class="unread" href="{searchresults.U_NEWEST_POST}">
{{ Icon('iconify', 'fa:file', lang('NEW_POST'), true, 'c-topic-unread-icon') }}
</a>
<!-- ENDIF -->
<a href="{searchresults.U_VIEW_TOPIC}" class="topictitle">{searchresults.TOPIC_TITLE}</a>
{% if searchresults.S_UNREAD_TOPIC and not S_IS_BOT %}
<a href="{{ searchresults.U_NEWEST_POST }}" class="topictitle unread">{{ searchresults.TOPIC_TITLE }}</a>
{% else %}
<a href="{{ searchresults.U_VIEW_TOPIC }}" class="topictitle">{{ searchresults.TOPIC_TITLE }}</a>
{% endif %}
<!-- IF searchresults.S_TOPIC_UNAPPROVED or searchresults.S_POSTS_UNAPPROVED -->
<a href="{searchresults.U_MCP_QUEUE}" title="{L_TOPIC_UNAPPROVED}">
{{ Icon('iconify', 'fa:question', lang('TOPIC_UNAPPROVED'), true, 'c-uapproved-icon') }}