X-Git-Url: https://git.rvb.name/openlib.git/blobdiff_plain/bb5933a6e7cbc75001b8de80b4dce4078ac5e76b..3114ea22d53f6e5f2e38507a95f54e50b1c558cf:/www/templates/default/bookdetail.html diff --git a/www/templates/default/bookdetail.html b/www/templates/default/bookdetail.html index 84c7334..be7e54a 100644 --- a/www/templates/default/bookdetail.html +++ b/www/templates/default/bookdetail.html @@ -1,7 +1,19 @@ <article class="bookpopup"> + {{? it.book.hasCover == 1}} + <div id="openModal" class="modalDialog"> + <div> + <a href="#close" title="Close" class="close">X</a> + {{~it.book.authors:author:j}} + {{? j > 0}}, {{?}}<h3>{{=htmlEscape (author.name)}}</h3> + {{~}} + <h2>{{=htmlEscape (it.title)}}</h2> + <img src="{{=it.book.coverurl}}" alt="{{=it.const.i18n.coverAlt}}" /> + </div> + </div> + {{?}} <span class="cover"> {{? it.book.hasCover == 1}} - <a href="{{=it.book.coverurl}}"> + <a href="#openModal"> <img src="{{=it.book.thumbnailurl}}" alt="{{=it.const.i18n.coverAlt}}" /> </a> {{?}}