From 7337f604916717fe273873b159b89807d0a16141 Mon Sep 17 00:00:00 2001 From: Eai Date: Fri, 8 Feb 2019 23:45:25 +0900 Subject: [PATCH] =?UTF-8?q?=E3=81=8A=E7=9F=A5=E3=82=89=E3=81=9B=E3=81=8Cpi?= =?UTF-8?q?nned=E3=81=AE=E5=A0=B4=E5=90=88=E3=83=94=E3=83=B3=E7=95=99?= =?UTF-8?q?=E3=82=81=E3=81=AE=E8=A1=A8=E7=A4=BA=E3=82=92=E3=81=99=E3=82=8B?= =?UTF-8?q?=20(#58)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/guest.blade.php | 3 +++ resources/views/home.blade.php | 3 +++ resources/views/info/index.blade.php | 3 +++ resources/views/info/show.blade.php | 7 ++++++- 4 files changed, 15 insertions(+), 1 deletion(-) diff --git a/resources/views/guest.blade.php b/resources/views/guest.blade.php index fb670f0..3b21fa6 100644 --- a/resources/views/guest.blade.php +++ b/resources/views/guest.blade.php @@ -31,6 +31,9 @@
@foreach($informations as $info) + @if ($info->pinned) + ピン留め + @endif {{ $categories[$info->category]['label'] }} {{ $info->title }} - {{ $info->created_at->format('n月j日') }} @endforeach diff --git a/resources/views/home.blade.php b/resources/views/home.blade.php index aa9d64f..3ebad66 100644 --- a/resources/views/home.blade.php +++ b/resources/views/home.blade.php @@ -34,6 +34,9 @@
@foreach($informations as $info) + @if ($info->pinned) + ピン留め + @endif {{ $categories[$info->category]['label'] }} {{ $info->title }} - {{ $info->created_at->format('n月j日') }} @endforeach diff --git a/resources/views/info/index.blade.php b/resources/views/info/index.blade.php index dd7119b..62376bb 100644 --- a/resources/views/info/index.blade.php +++ b/resources/views/info/index.blade.php @@ -9,6 +9,9 @@
@foreach($informations as $info) + @if ($info->pinned) + ピン留め + @endif {{ $categories[$info->category]['label'] }} {{ $info->title }} - {{ $info->created_at->format('n月j日') }} @endforeach diff --git a/resources/views/info/show.blade.php b/resources/views/info/show.blade.php index 8dba829..3e0b597 100644 --- a/resources/views/info/show.blade.php +++ b/resources/views/info/show.blade.php @@ -11,7 +11,12 @@

{{ $category['label'] }} {{ $info->title }}

-

{{ $info->created_at->format('Y年n月j日') }}

+

+ @if ($info->pinned) + ピン留め + @endif + {{ $info->created_at->format('Y年n月j日') }} +

@parsedown($info->content)
@endsection \ No newline at end of file