Template are now cleanly split. Properly handle synchronization with jquery. re #73
--HG-- rename : templates/default/frontpage.html => templates/default/header.html rename : templates/default/frontpage.html => templates/default/main.html
This commit is contained in:
parent
5e1cae2fd8
commit
bf54e6a7b9
7 changed files with 113 additions and 141 deletions
41
templates/default/main.html
Normal file
41
templates/default/main.html
Normal file
|
@ -0,0 +1,41 @@
|
|||
<section>
|
||||
{{? it.page == 13}}
|
||||
{{#def.bookdetail}}
|
||||
{{??}}
|
||||
{{~it.entries:entry:i}}
|
||||
{{? it.containsBook == 0}}
|
||||
<article>
|
||||
<div class="frontpage">
|
||||
<a href="{{=entry.navlink}}">
|
||||
<h2>{{=htmlEscape (entry.title)}}</h2>
|
||||
<h4>{{=entry.content}}</h4>
|
||||
</a>
|
||||
</div>
|
||||
</article>
|
||||
{{??}}
|
||||
<article class="books">
|
||||
<span class="cover">
|
||||
{{? entry.book.hasCover == 1}}
|
||||
<a data-fancybox-group="group" class="fancycover" href="{{=entry.coverurl}}"><img src="{{=entry.thumbnailurl}}" alt="{{=it.i18n.coverAlt}}" /></a>
|
||||
{{?}}
|
||||
</span>
|
||||
<h2 class="download">
|
||||
{{~entry.book.preferedData:data:j}}
|
||||
<a href="{{=data.url}}">{{=data.name}}</a><br />
|
||||
{{~}}
|
||||
</h2>
|
||||
<a class="fancydetail" href="{{=entry.book.detailUrl}}">
|
||||
<div class="fullclickpopup">
|
||||
<h2><span class="st">{{=htmlEscape (entry.title)}}</span>
|
||||
{{? entry.book.pubDate != ""}}<span class="sp">({{=entry.book.pubDate}})</span>{{?}}
|
||||
{{? entry.book.rating != ""}}<span class="sr">{{=entry.book.rating}}</span>{{?}}
|
||||
</h2>
|
||||
<h4>{{=it.i18n.authorsTitle}} : </h4><span class="sa">{{=htmlEscape (entry.book.authorsName)}}</span><br />
|
||||
{{? entry.book.tagsName != ""}}<h4>{{=it.i18n.tagsTitle}} : </h4>{{=htmlEscape (entry.book.tagsName)}}<br />{{?}}
|
||||
{{? entry.book.seriesName != ""}}<h4>{{=it.i18n.seriesTitle}} : </h4>{{=htmlEscape (entry.book.seriesName)}}<br />{{?}}
|
||||
</div></a>
|
||||
</article>
|
||||
{{?}}
|
||||
{{~}}
|
||||
{{?}}
|
||||
</section>
|
Loading…
Add table
Add a link
Reference in a new issue