FEATURE: add overview to all static pages
This commit is contained in:
@@ -8,44 +8,48 @@
|
||||
<div class="row" id="static-page-overview" data-equalizer>
|
||||
@forelse($pages as $page)
|
||||
<div class="columns large-3">
|
||||
<div class="callout" data-equalizer-watch>
|
||||
<div class="page callout" data-equalizer-watch>
|
||||
|
||||
<div class="controls pull-right">
|
||||
<button class="button tiny secondary" data-toggle="static-page-{{$page->id}}actions"><i class="fa fa-caret-down"></i></button>
|
||||
{{--<div class="controls pull-right">--}}
|
||||
{{--<button class="button tiny secondary" data-toggle="static-page-{{$page->id}}actions"><i class="fa fa-caret-down"></i></button>--}}
|
||||
|
||||
<div class="dropdown-pane" id="static-page-{{$page->id}}actions" data-dropdown>
|
||||
<div class="row text-center">
|
||||
{{--<div class="dropdown-pane" id="static-page-{{$page->id}}actions" data-dropdown>--}}
|
||||
{{----}}
|
||||
{{--</div>--}}
|
||||
{{--</div>--}}
|
||||
|
||||
<a href="#" class="button secondary has-tip" data-tooltip aria-haspopup="true" title="@lang('staticpages::admin.viewPage')"><i class="fa fa-desktop"></i></a>
|
||||
<a href="#" class="button success has-tip" data-tooltip aria-haspopup="true" title="@lang('staticpages::admin.edit')"><i class="fa fa-edit"></i></a>
|
||||
|
||||
@if($page->status == \App\Models\Content::STATUS_DRAFT)
|
||||
<a href="#" class="button success has-tip" data-tooltip aria-haspopup="true" title="@lang('staticpages::admin.makePublic')"><i class="fa fa-eye"></i></a>
|
||||
@endif
|
||||
|
||||
@if(in_array($page->status, [\App\Models\Content::STATUS_PROTECTED, \App\Models\Content::STATUS_PUBLIC]))
|
||||
<a href="#" class="button warning has-tip" data-tooltip aria-haspopup="true" title="@lang('staticpages::admin.makeDraft')"><i class="fa fa-eye-slash"></i></a>
|
||||
@endif
|
||||
|
||||
<a href="#" class="button alert confirm pull-right has-tip" data-tooltip aria-haspopup="true" title="@lang('staticpages::admin.deletePage')"><i class="fa fa-remove"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3>{{$page->title}}</h3>
|
||||
<h4>{{$page->title}}</h4>
|
||||
<span class="date">{{$page->created_at}}</span>
|
||||
<span class="author">{{$page->author_name}}</span>
|
||||
|
||||
@if ($page->meta_description)
|
||||
<p>{{str_limit($page->meta_description)}}</p>
|
||||
<p class="perex">
|
||||
@if (trim($page->meta_description))
|
||||
{{str_limit($page->meta_description)}}
|
||||
@else
|
||||
<p>{{str_limit(strip_tags($page->content))}}</p>
|
||||
{{str_limit(strip_tags($page->content))}}
|
||||
@endif
|
||||
</p>
|
||||
|
||||
@if ($page->meta_keywords)
|
||||
<p class="keywords">{{$page->meta_keywords}}</p>
|
||||
@endif
|
||||
|
||||
<p class="controls row text-center">
|
||||
|
||||
<a href="#" class="button tiny secondary has-tip" data-tooltip aria-haspopup="true" title="@lang('staticpages::admin.viewPage')"><i class="fa fa-desktop"></i></a>
|
||||
<a href="#" class="button tiny success has-tip" data-tooltip aria-haspopup="true" title="@lang('staticpages::admin.edit')"><i class="fa fa-edit"></i></a>
|
||||
|
||||
@if($page->status == \App\Models\Content::STATUS_DRAFT)
|
||||
<a href="#" class="button tiny success confirm has-tip" data-tooltip aria-haspopup="true" title="@lang('staticpages::admin.makePublic')"><i class="fa fa-eye"></i></a>
|
||||
@endif
|
||||
|
||||
@if(in_array($page->status, [\App\Models\Content::STATUS_PROTECTED, \App\Models\Content::STATUS_PUBLIC]))
|
||||
<a href="#" class="button tiny warning confirm has-tip" data-tooltip aria-haspopup="true" title="@lang('staticpages::admin.makeDraft')"><i class="fa fa-eye-slash"></i></a>
|
||||
@endif
|
||||
|
||||
<a href="#" class="button tiny alert confirm has-tip" data-tooltip aria-haspopup="true" title="@lang('staticpages::admin.deletePage')"><i class="fa fa-remove"></i></a>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@empty
|
||||
|
||||
Vendored
+28
@@ -34,6 +34,34 @@
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
#static-page-overview .page {
|
||||
position: relative;
|
||||
padding-bottom: 3em;
|
||||
}
|
||||
|
||||
#static-page-overview .page .controls {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
#static-page-overview .page .controls .button {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
#static-page-overview .date, #static-page-overview .author {
|
||||
font-size: 80%;
|
||||
|
||||
}
|
||||
|
||||
#static-page-overview .perex {
|
||||
|
||||
}
|
||||
|
||||
#static-page-overview .keywords {
|
||||
margin-bottom: 0;
|
||||
font-size: 80%;
|
||||
background:red;
|
||||
}
|
||||
|
||||
.red {
|
||||
color: red;
|
||||
|
||||
Reference in New Issue
Block a user