Browse Source

Minor change in templates and style

Visman 4 years ago
parent
commit
d41f4d1501

+ 1 - 1
app/Models/Pages/Delete.php

@@ -76,7 +76,7 @@ class Delete extends Page
         $this->formTitle  = __($deleteTopic ? 'Delete topic' : 'Delete post');
         $this->crumbs     = $this->crumbs($this->formTitle, $topic);
         $this->posts      = [$post];
-        $this->postsTitle = __('Delete info');
+        $this->postsTitle = 'Delete info';
         $this->form       = $this->formDelete($args, $post, $deleteTopic);
 
         return $this;

+ 1 - 1
app/Models/Pages/Post.php

@@ -161,7 +161,7 @@ class Post extends Page
         $this->crumbs     = $this->crumbs(__('Post a reply'), $topic);
         $this->formTitle  = __('Post a reply');
         $this->form       = $this->messageForm($topic, 'NewReply', $args, false, false, false);
-        $this->postsTitle = __('Topic review');
+        $this->postsTitle = 'Topic review';
         $this->posts      = $topic->review();
 
         return $this;

+ 1 - 1
app/templates/layouts/iswev.forkbb.php

@@ -1,4 +1,4 @@
-      <aside>
+      <aside class="f-iswev-wrap">
 @if ($iswev['i'])
         <section class="f-iswev f-info">
           <h2>Info message</h2>

+ 2 - 2
app/templates/post.forkbb.php

@@ -4,7 +4,7 @@
 @yield ('crumbs')
     </div>
 @if ($p->previewHtml)
-    <section class="f-main f-preview">
+    <section class="f-preview">
       <h2>{!! __('Post preview') !!}</h2>
       <div class="f-post-body">
         <div class="f-post-main">
@@ -26,7 +26,7 @@
 @endif
 @if ($p->posts)
     <section class="f-view-posts">
-      <h2>{!! $p->postsTitle !!}</h2>
+      <h2>{!! __($p->postsTitle) !!}</h2>
     @foreach ($p->posts as $post)
         @if ($post->id)
       <article id="p{{ $post->id }}" class="f-post">

+ 10 - 2
public/style/ForkBB/style.css

@@ -588,13 +588,20 @@ html[lang="ru"] #fork details[open] > summary::after {
 
 /*********/
 /* iswev */
-/********/
+/*********/
+#fork main > .f-iswev-wrap {
+  margin: 1rem 0;
+}
+
 #fork .f-iswev {
   border: 0.0625rem solid;
-  margin: 1rem 0;
   padding: 0.625rem;
 }
 
+#fork .f-iswev + .f-iswev {
+  margin-top: 1rem;
+}
+
 #fork .f-info,
 #fork .f-icontent > a  {
   color: #00529B;
@@ -1679,6 +1686,7 @@ html[lang="ru"] #fork details[open] > summary::after {
 /****************/
 #fork .f-preview {
   border-top: 0.0625rem solid #AA7939;
+  margin-bottom: 1rem;
 }
 
 #fork .f-preview > h2 {