Skip to content

Commit

Permalink
Added content not published message
Browse files Browse the repository at this point in the history
  • Loading branch information
PSkierniewski committed Dec 26, 2016
1 parent 25c1d4d commit b4924f9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions resources/views/content/category.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
</div>
@stop
@section('content')
@include('includes.notPublishedContentMsg')
<h1 class="content-title page-header">
{{ $activeTranslation->title }}
</h1>
Expand Down
1 change: 1 addition & 0 deletions resources/views/content/content.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
</div>
@stop
@section('content')
@include('includes.notPublishedContentMsg')
<h1 class="content-title page-header">
{{ $activeTranslation->title }}
</h1>
Expand Down
8 changes: 8 additions & 0 deletions resources/views/includes/notPublishedContentMsg.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@if(!$content->isActive)
<div class="alert alert-warning" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
@lang('common.content_not_published')
</div>
@endif

0 comments on commit b4924f9

Please sign in to comment.