add CSS classes to book display elements
This commit is contained in:
parent
346d041be4
commit
1504375a25
1 changed files with 17 additions and 12 deletions
|
@ -1,8 +1,9 @@
|
||||||
<html i18n:domain="loops">
|
<html i18n:domain="loops">
|
||||||
|
|
||||||
|
|
||||||
<metal:children define-macro="children"
|
<div metal:define-macro="children"
|
||||||
tal:define="children children|python:list(item.children())">
|
tal:define="children children|python:list(item.children())"
|
||||||
|
class="book-children">
|
||||||
<tal:child repeat="related children">
|
<tal:child repeat="related children">
|
||||||
<div tal:define="children python:list(related.children());
|
<div tal:define="children python:list(related.children());
|
||||||
resources python:list(related.resources());
|
resources python:list(related.resources());
|
||||||
|
@ -20,7 +21,7 @@
|
||||||
</tal:nested>
|
</tal:nested>
|
||||||
</div>
|
</div>
|
||||||
</tal:child>
|
</tal:child>
|
||||||
</metal:children>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<metal:nested define-macro="nested_children"
|
<metal:nested define-macro="nested_children"
|
||||||
|
@ -38,13 +39,15 @@
|
||||||
</metal:nested>
|
</metal:nested>
|
||||||
|
|
||||||
|
|
||||||
<metal:book define-macro="book">
|
<div metal:define-macro="book"
|
||||||
|
class="book">
|
||||||
<metal:info use-macro="view/concept_macros/concepttitle" />
|
<metal:info use-macro="view/concept_macros/concepttitle" />
|
||||||
<metal:info use-macro="item/book_macros/children" />
|
<metal:info use-macro="item/book_macros/children" />
|
||||||
</metal:book>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<metal:section define-macro="section">
|
<div metal:define-macro="section"
|
||||||
|
class="book-section">
|
||||||
<metal:navigation define-macro="navigation"
|
<metal:navigation define-macro="navigation"
|
||||||
tal:condition="item/showNavigation">
|
tal:condition="item/showNavigation">
|
||||||
<div tal:define="parent nocall:item/breadcrumbsParent;
|
<div tal:define="parent nocall:item/breadcrumbsParent;
|
||||||
|
@ -125,13 +128,14 @@
|
||||||
<br style="clear: both" />
|
<br style="clear: both" />
|
||||||
<metal:navigation use-macro="item/book_macros/navigation" />
|
<metal:navigation use-macro="item/book_macros/navigation" />
|
||||||
<br />
|
<br />
|
||||||
</metal:section>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<metal:topic define-macro="topic"
|
<div metal:define-macro="topic"
|
||||||
tal:define="children children|python:list(item.children());
|
tal:define="children children|python:list(item.children());
|
||||||
textResources textResources|item/textResources;
|
textResources textResources|item/textResources;
|
||||||
resources item/otherResources">
|
resources item/otherResources"
|
||||||
|
clas="book-topic">
|
||||||
<metal:info use-macro="view/concept_macros/concepttitle" />
|
<metal:info use-macro="view/concept_macros/concepttitle" />
|
||||||
<h2 i18n:translate=""
|
<h2 i18n:translate=""
|
||||||
tal:condition="children">Children</h2>
|
tal:condition="children">Children</h2>
|
||||||
|
@ -164,8 +168,9 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<metal:info use-macro="view/concept_macros/conceptresources" />
|
<metal:info use-macro="view/concept_macros/conceptresources" />
|
||||||
</metal:topic>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Add table
Reference in a new issue