Replace the cover with a placeholder if no cover exists. re #79

This commit is contained in:
Sébastien Lucas 2014-07-27 14:54:07 +02:00
parent 2a5dc86484
commit a2df3ea481
2 changed files with 4 additions and 0 deletions

View file

@ -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; }

View file

@ -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>{{?}}