Merge pull request #9 from OsmosysSoftware/feature-181

Feature 181
This commit is contained in:
Abijeet 2017-07-13 15:50:43 +05:30 committed by GitHub
commit 21a8df78ee
5 changed files with 12 additions and 4 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

@ -280,7 +280,7 @@ $btt-size: 40px;
margin-bottom: 32px; margin-bottom: 32px;
height: 330px; height: 330px;
overflow: hidden; overflow: hidden;
border: 1px solid #9e9e9e; border: 1px solid #ccc;
h4 { h4 {
font-size: 1.2em; font-size: 1.2em;
text-align: center; text-align: center;
@ -301,4 +301,10 @@ $btt-size: 40px;
img { img {
border-radius: 3px; border-radius: 3px;
} }
} }
.cover {
height: 192px;
width: 120px;
border-radius: 3px;
}

View File

@ -21,7 +21,7 @@
'currentImage' => @isset($model) ? $model->getBookCover(80) : baseUrl('/default.png') , 'currentImage' => @isset($model) ? $model->getBookCover(80) : baseUrl('/default.png') ,
'currentId' => @isset($model) ? $model->image : 0, 'currentId' => @isset($model) ? $model->image : 0,
'name' => 'image', 'name' => 'image',
'imageClass' => 'avatar cover' 'imageClass' => 'cover'
]) ])
</div> </div>
<div class="form-group"> <div class="form-group">

View File

@ -1,4 +1,4 @@
<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3" data-entity-type="book" data-entity-id="{{$book->id}}"> <div class="col-xs-6 col-sm-4 col-md-4 col-lg-3" data-entity-type="book" data-entity-id="{{$book->id}}">
<div class="gallery-item"> <div class="gallery-item">
<h4> <h4>
<a class="text-book entity-list-item-link" href="{{$book->getUrl()}}"><i class="zmdi zmdi-book"></i><span class="entity-list-item-name">{{$book->name}}</span> <a class="text-book entity-list-item-link" href="{{$book->getUrl()}}"><i class="zmdi zmdi-book"></i><span class="entity-list-item-name">{{$book->name}}</span>

View File

@ -24,12 +24,14 @@
<h1>{{ trans('entities.books') }}</h1> <h1>{{ trans('entities.books') }}</h1>
@if(count($books) > 0) @if(count($books) > 0)
@if($books_display=='grid') @if($books_display=='grid')
<div class="row">
@foreach($books as $book) @foreach($books as $book)
@include('books/grid-item', ['book' => $book]) @include('books/grid-item', ['book' => $book])
@endforeach @endforeach
<div class="col-xs-12"> <div class="col-xs-12">
{!! $books->render() !!} {!! $books->render() !!}
</div> </div>
</div>
@else @else
@foreach($books as $book) @foreach($books as $book)
@include('books/list-item', ['book' => $book]) @include('books/list-item', ['book' => $book])