@@ -47,14 +47,17 @@ function approval_action() {
47
47
<h2 >{{ $post -> title } } </h2 >
48
48
49
49
{{-- 投稿日時 --}}
50
- <b >{{ $post -> created_at -> format (' Y年n月j日 H時i分' )} } </b >
50
+ <b >{{ $post -> created_at -> format (' Y年n月j日 H時i分' )} } [ {{ $post -> created_name } } ] </b >
51
51
</header >
52
52
53
53
{{-- 記事本文 --}}
54
54
{!! $post -> body ! !}
55
55
56
56
{{-- post データは以下のように2重配列で渡す(Laravelが配列の0番目のみ使用するので) --}}
57
57
<footer class =" row" >
58
+ <div class =" col-12 text-right mb-1" >
59
+ {{ $post -> getUpdatedAt ()} }
60
+ </div >
58
61
<div class =" col-12 text-right mb-1" >
59
62
{{-- 一時保存 --}}
60
63
@if ($post -> status == 1 )
@@ -121,15 +124,15 @@ function approval_action() {
121
124
<div class =" card mb-3" >
122
125
{{-- 詳細でのスレッド記事の展開方法:すべて閉じるの場合は、card のヘッダに根記事のタイトルを表示 --}}
123
126
<div class =" card-header" >
124
- {{ $thread_root_post -> title } }@if ($thread_root_post -> status == 1 ) <span class =" badge badge-warning align-bottom" >一時保存</span >@elseif ($thread_root_post -> status == 2 ) <span class =" badge badge-warning align-bottom" >承認待ち</span >@endif <span class =" float-right" >{{ $thread_root_post -> created_at -> format (' Y-m-d ' )} } [{{ $thread_root_post -> created_name } } ]</span >
127
+ {{ $thread_root_post -> title } }@if ($thread_root_post -> status == 1 ) <span class =" badge badge-warning align-bottom" >一時保存</span >@elseif ($thread_root_post -> status == 2 ) <span class =" badge badge-warning align-bottom" >承認待ち</span >@endif <span class =" float-right" >{{ $thread_root_post -> created_at -> format (' Y年n月j日 ' )} } [{{ $thread_root_post -> created_name } } ]</span >
125
128
</div >
126
129
{{-- 詳細でのスレッド記事の展開方法:すべて閉じるの場合は、card のボディに根記事を含めた記事のタイトル一覧を表示 --}}
127
130
<div class =" card-body" >
128
131
{{-- 根記事(スレッドの記事は古い順なので、根記事は最初) --}}
129
- @include (' plugins.user.bbses.default.post_title_div' , [' view_post' => $thread_root_post , ' current_post' => $post ] )
132
+ @include (' plugins.user.bbses.default.post_title_div' , [' view_post' => $thread_root_post , ' current_post' => $post , ' list_class ' => ' ' ] )
130
133
{{-- スレッド記事 --}}
131
134
@foreach ($children_posts -> where (" thread_root_id" , $thread_root_post -> id ) as $children_post )
132
- @include (' plugins.user.bbses.default.post_title_div' , [' view_post' => $children_post , ' current_post' => $post ] )
135
+ @include (' plugins.user.bbses.default.post_title_div' , [' view_post' => $children_post , ' current_post' => $post , ' list_class ' => ' ' ] )
133
136
@endforeach
134
137
</div >
135
138
</div >
@@ -141,63 +144,60 @@ function approval_action() {
141
144
@if ($plugin_frame -> thread_format != 0 )
142
145
{{-- 詳細でのスレッド記事の展開方法が詳細表示している記事のみ展開の場合 --}}
143
146
<div class =" card-header" >
144
- @include (' plugins.user.bbses.default.post_title' , [' view_post' => $thread_root_post , ' current_post' => $post ] )
147
+ @include (' plugins.user.bbses.default.post_title' , [' view_post' => $thread_root_post , ' current_post' => $post , ' list_class ' => ' ' ] )
145
148
</div >
146
149
{{-- 詳細でのスレッド記事の展開方法:すべて閉じるの場合は、card のボディに根記事を含めた記事のタイトル一覧を表示 --}}
147
150
<div class =" card-body" >
148
151
{{-- 根記事(スレッドの記事は古い順なので、根記事は最初) --}}
149
152
@if ($thread_root_post -> id == $post -> id )
150
153
<div class =" card mb-2" >
151
154
<div class =" card-header" >
152
- @include (' plugins.user.bbses.default.post_title_div' , [' view_post' => $thread_root_post , ' current_post' => $post ] )
155
+ @include (' plugins.user.bbses.default.post_title_div' , [' view_post' => $thread_root_post , ' current_post' => $post , ' list_class ' => ' ' ] )
153
156
</div >
154
157
<div class =" card-body" >
155
158
{!! $thread_root_post -> body ! !}
156
159
</div >
157
160
</div >
158
161
@else
159
- @include (' plugins.user.bbses.default.post_title_div' , [' view_post' => $thread_root_post , ' current_post' => $post ] )
162
+ @include (' plugins.user.bbses.default.post_title_div' , [' view_post' => $thread_root_post , ' current_post' => $post , ' list_class ' => ' ' ] )
160
163
@endif
161
164
162
165
{{-- スレッド記事 --}}
163
166
@foreach ($children_posts -> where (" thread_root_id" , $thread_root_post -> id ) as $children_post )
164
167
@if ($children_post -> id == $post -> id )
165
168
<div class =" card mb-2" >
166
169
<div class =" card-header" >
167
- @include (' plugins.user.bbses.default.post_title_div' , [' view_post' => $children_post , ' current_post' => $post ] )
170
+ @include (' plugins.user.bbses.default.post_title_div' , [' view_post' => $children_post , ' current_post' => $post , ' list_class ' => ' ' ] )
168
171
</div >
169
172
<div class =" card-body" >
170
173
{!! $children_post -> body ! !}
171
174
</div >
172
175
</div >
173
176
@else
174
- @include (' plugins.user.bbses.default.post_title_div' , [' view_post' => $children_post , ' current_post' => $post ] )
177
+ @include (' plugins.user.bbses.default.post_title_div' , [' view_post' => $children_post , ' current_post' => $post , ' list_class ' => ' ' ] )
175
178
@endif
176
179
@endforeach
177
180
</div >
178
181
@else
179
182
<div class =" card-header" >
180
- @include (' plugins.user.bbses.default.post_title ' , [' view_post' => $thread_root_post , ' current_post' => $post ] )
183
+ @include (' plugins.user.bbses.default.post_title_div ' , [' view_post' => $thread_root_post , ' current_post' => $post , ' list_class ' => ' ' ] )
181
184
</div >
182
185
<div class =" card-body" >
183
186
{!! $thread_root_post -> body ! !}
184
187
@foreach ($children_posts as $children_post )
185
188
<div class =" card mt-3" >
186
189
<div class =" card-header" >
187
- @include (' plugins.user.bbses.default.post_title ' , [' view_post' => $children_post , ' current_post' => $post ] )
190
+ @include (' plugins.user.bbses.default.post_title_div ' , [' view_post' => $children_post , ' current_post' => $post , ' list_class ' => ' ' ] )
188
191
</div >
189
192
<div class =" card-body" >
190
193
{!! $children_post -> body ! !}
191
194
</div >
192
195
</div >
193
196
@endforeach
194
- </div >
197
+ </div >
195
198
@endif
196
199
</div >
197
200
@endif
198
-
199
-
200
-
201
201
@endif
202
202
203
203
{{-- / post がある想定の処理 --}}
0 commit comments