Ver código fonte

Move user status

Visman 2 anos atrás
pai
commit
2a9e27549d

+ 2 - 2
app/lang/ru/topic.po

@@ -46,10 +46,10 @@ msgid "Website"
 msgstr "Сайт"
 msgstr "Сайт"
 
 
 msgid "Online"
 msgid "Online"
-msgstr "Активен"
+msgstr "Online"
 
 
 msgid "Offline"
 msgid "Offline"
-msgstr "Вне форума"
+msgstr "Offline"
 
 
 msgid "Last edit"
 msgid "Last edit"
 msgstr "Последний раз отредактировано %1$s (%2$s)"
 msgstr "Последний раз отредактировано %1$s (%2$s)"

+ 3 - 3
app/templates/topic.forkbb.php

@@ -82,6 +82,9 @@
               <li class="f-username">{{ $post->user->username }}</li>
               <li class="f-username">{{ $post->user->username }}</li>
         @endif
         @endif
               <li class="f-usertitle">{{ $post->user->title() }}</li>
               <li class="f-usertitle">{{ $post->user->title() }}</li>
+        @if (! $post->user->isGuest)
+              <li class="f-userstatus">{!! __($post->user->online ? 'Online' : 'Offline') !!}</li>
+        @endif
         @if ($p->user->showUserInfo && $p->user->showPostCount && $post->user->num_posts)
         @if ($p->user->showUserInfo && $p->user->showPostCount && $post->user->num_posts)
               <li class="f-postcount">{!! __(['%s post', $post->user->num_posts, num($post->user->num_posts)]) !!}</li>
               <li class="f-postcount">{!! __(['%s post', $post->user->num_posts, num($post->user->num_posts)]) !!}</li>
         @endif
         @endif
@@ -118,9 +121,6 @@
         </div>
         </div>
         <footer class="f-post-footer">
         <footer class="f-post-footer">
           <div class="f-post-footer-add">
           <div class="f-post-footer-add">
-        @if (! $post->user->isGuest)
-            <span class="f-userstatus">{!! __($post->user->online ? 'Online' : 'Offline') !!}</span>
-        @endif
           </div>
           </div>
         @if ($post->canReport || $post->canDelete || $post->canEdit || $post->canQuote)
         @if ($post->canReport || $post->canDelete || $post->canEdit || $post->canQuote)
           <div class="f-post-btns">
           <div class="f-post-btns">

+ 1 - 1
public/style/ForkBB/style.css

@@ -1528,7 +1528,7 @@ body,
 }
 }
 
 
 #fork .f-userstatus {
 #fork .f-userstatus {
-  display: none;
+  display: none !important;
 }
 }
 
 
 #fork .f-post-main {
 #fork .f-post-main {