Replace the cover with a placeholder if no cover exists. re #79
This commit is contained in:
parent
2a5dc86484
commit
a2df3ea481
|
@ -59,6 +59,8 @@
|
||||||
display:block;
|
display:block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.cover-image { min-height:164px;}
|
||||||
|
|
||||||
.panel-heading { padding: 10px 7px; }
|
.panel-heading { padding: 10px 7px; }
|
||||||
|
|
||||||
.panel { margin-bottom: 5px; }
|
.panel { margin-bottom: 5px; }
|
||||||
|
|
|
@ -32,6 +32,7 @@
|
||||||
<h2 class="panel-title"><a href="{{=str_format (it.c.url.detailUrl, entry.book.id, it.databaseId)}}">{{=htmlspecialchars (entry.title)}}</a></h2>
|
<h2 class="panel-title"><a href="{{=str_format (it.c.url.detailUrl, entry.book.id, it.databaseId)}}">{{=htmlspecialchars (entry.title)}}</a></h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
|
<div class="cover-image">
|
||||||
{{? entry.book.hasCover == 1}}
|
{{? entry.book.hasCover == 1}}
|
||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
<a href="{{=str_format (it.c.url.coverUrl, entry.book.id, it.databaseId)}}">
|
<a href="{{=str_format (it.c.url.coverUrl, entry.book.id, it.databaseId)}}">
|
||||||
|
@ -39,6 +40,7 @@
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{{?}}
|
{{?}}
|
||||||
|
</div>
|
||||||
<div class="ellipsis"><span class="glyphicon glyphicon-user"></span> <span class="sa">{{=htmlspecialchars (entry.book.authorsName)}}</span></div>
|
<div class="ellipsis"><span class="glyphicon glyphicon-user"></span> <span class="sa">{{=htmlspecialchars (entry.book.authorsName)}}</span></div>
|
||||||
{{? entry.book.tagsName != ""}}<div class="ellipsis"><span class="glyphicon glyphicon-tag"></span> <span class="se">{{=htmlspecialchars (entry.book.tagsName)}}</span></div>{{?}}
|
{{? entry.book.tagsName != ""}}<div class="ellipsis"><span class="glyphicon glyphicon-tag"></span> <span class="se">{{=htmlspecialchars (entry.book.tagsName)}}</span></div>{{?}}
|
||||||
{{? entry.book.seriesName != ""}}<div class="ellipsis"><span class="glyphicon glyphicon-list"></span> <span class="ss">{{=htmlspecialchars (entry.book.seriesName)}} ({{=entry.book.seriesIndex}})</span></div>{{?}}
|
{{? entry.book.seriesName != ""}}<div class="ellipsis"><span class="glyphicon glyphicon-list"></span> <span class="ss">{{=htmlspecialchars (entry.book.seriesName)}} ({{=entry.book.seriesIndex}})</span></div>{{?}}
|
||||||
|
|
Loading…
Reference in a new issue