ソースを参照

Move user status

Visman 2 年 前
コミット
2a9e27549d
3 ファイル変更6 行追加6 行削除
  1. 2 2
      app/lang/ru/topic.po
  2. 3 3
      app/templates/topic.forkbb.php
  3. 1 1
      public/style/ForkBB/style.css

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

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

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

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

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

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