+ Added an indicator and link to unread posts in topics

This commit is contained in:
Visman 2018-10-28 21:02:40 +07:00
parent 547d89455f
commit 914b90517b
4 changed files with 23 additions and 5 deletions

View file

@ -145,7 +145,13 @@ msgid "New posts"
msgstr "New posts"
msgid "New posts info"
msgstr "Go to the first new post in this topic."
msgstr "Go to the first new post in this topic"
msgid "Unread posts"
msgstr "Unread posts"
msgid "Unread posts info"
msgstr "Go to the first unread post in this topic"
msgid "Username"
msgstr "Username"

View file

@ -145,7 +145,13 @@ msgid "New posts"
msgstr "Новые сообщения"
msgid "New posts info"
msgstr "Перейти к первому новому сообщению в теме."
msgstr "Перейти к первому новому сообщению в теме"
msgid "Unread posts"
msgstr "Непрочитанные сообщения"
msgid "Unread posts info"
msgstr "Перейти к первому непрочитанному сообщению в теме"
msgid "Username"
msgstr "Имя"

View file

@ -122,6 +122,9 @@
@endif
@if (false !== $topic->hasNew)
<span class="f-newtxt"><a href="{!! $topic->linkNew !!}" title="{!! __('New posts info') !!}">{!! __('New posts') !!}</a></span>
@endif
@if (false !== $topic->hasUnread)
<span class="f-unreadtxt"><a href="{!! $topic->linkUnread !!}" title="{!! __('Unread posts info') !!}">{!! __('Unread posts') !!}</a></span>
@endif
</h3>
<p><!-- inline -->

View file

@ -1236,18 +1236,21 @@ body,
content: "\e906";
}
#fork .f-ftlist .f-newtxt {
#fork .f-newtxt,
#fork .f-unreadtxt {
font-family: Arial, Helvetica, sans-serif;
font-size: 0.875rem;
font-weight: normal;
white-space: nowrap;
}
#fork .f-ftlist .f-newtxt:before {
#fork .f-newtxt:before,
#fork .f-unreadtxt:before {
content: "[ ";
}
#fork .f-ftlist .f-newtxt:after {
#fork .f-newtxt:after,
#fork .f-unreadtxt:after {
content: " ]";
}