diff options
author | Mike Schwörer <mailport@mikescher.de> | 2016-04-25 20:01:31 +0200 |
---|---|---|
committer | Mike Schwörer <mailport@mikescher.de> | 2016-04-25 20:01:31 +0200 |
commit | 44412f83c2feb31b6a005aa6419a5eb1a82fcc8c (patch) | |
tree | 563dc7e0705f394fd3cd796ae92d5cd78cd10fcb | |
parent | bfe2c4863c58231e36dc6247f18153b418ee1bed (diff) | |
download | cops-44412f83c2feb31b6a005aa6419a5eb1a82fcc8c.zip cops-44412f83c2feb31b6a005aa6419a5eb1a82fcc8c.tar.gz cops-44412f83c2feb31b6a005aa6419a5eb1a82fcc8c.tar.bz2 |
Updated bootstrap template for use with custom columns
-rw-r--r-- | templates/bootstrap/bookdetail.html | 5 | ||||
-rw-r--r-- | templates/bootstrap/main.html | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/templates/bootstrap/bookdetail.html b/templates/bootstrap/bookdetail.html index cbf5397..07052a3 100644 --- a/templates/bootstrap/bookdetail.html +++ b/templates/bootstrap/bookdetail.html @@ -60,6 +60,11 @@ <h4>{{=it.c.i18n.languagesTitle}}: </h4>{{=it.book.languagesName}}
</p>
{{?}}
+ {{~it.book.customcolumns_preview :column:column_index}}
+ <p>
+ <h4>{{=column.customColumnType.columnTitle}}: </h4>{{=column.htmlvalue}}
+ </p>
+ {{~}}
{{? it.book.content != ""}}
<br />
<h4>{{=it.c.i18n.contentTitle}}</h4>
diff --git a/templates/bootstrap/main.html b/templates/bootstrap/main.html index d0b43be..59b65d3 100644 --- a/templates/bootstrap/main.html +++ b/templates/bootstrap/main.html @@ -27,7 +27,7 @@ </div>
{{??}}
<div class="col-lg-2 col-md-3 col-sm-4 col-xs-6 books">
- <div class="panel panel-default" style="height: 320px;">
+ <div class="panel panel-default" style="min-height: 320px;">
<div class="panel-heading">
<h2 class="panel-title"><a href="{{=str_format (it.c.url.detailUrl, entry.book.id, it.databaseId)}}">{{=htmlspecialchars (entry.title)}}</a></h2>
</div>
@@ -42,6 +42,9 @@ <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.seriesName != ""}}<div class="ellipsis"><span class="glyphicon glyphicon-list"></span> <span class="ss">{{=htmlspecialchars (entry.book.seriesName)}} ({{=entry.book.seriesIndex}})</span></div>{{?}}
+ {{~entry.book.customcolumns_list :column:column_index}}
+ <div class="ellipsis"><span class="glyphicon glyphicon-minus"></span> <span class="ss">{{=column.customColumnType.columnTitle}} : {{=column.htmlvalue}}</span></div>
+ {{~}}
<div class="text-center bottomright">
{{~entry.book.preferedData:data:j}}
<a href="{{=data.url}}" class="btn btn-primary btn-sm" role="button">{{=data.name}}</a>
|