Skip to content

Commit

Permalink
be good citizen in Plone-land and fill content-core slot instead of main
Browse files Browse the repository at this point in the history
  • Loading branch information
erral committed Jul 10, 2012
1 parent af1e9d3 commit f3c6c00
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions collective/plonetruegallery/browser/views/templates/layout.pt
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,12 @@
</metal:js>

<body>
<metal:main fill-slot="main">
<tal:main-macro metal:define-macro="main" tal:define="desc context/Description|nothing">
<h1 class="gallery-title" tal:content="context/Title" />
<p class="gallery-desc" tal:content="desc" tal:condition="desc" />

<metal:core fill-slot="content-core">
<tal:core-macro metal:define-macro="content-core">

<div class="noimages" tal:condition="python: view.adapter.number_of_images == 0">
<p class="discreet" i18n:translate="label_no_images_in_gallery">
There are no images in this gallery.
There are no images in this gallery.
</p>
</div>

Expand All @@ -39,7 +37,7 @@

<tal:subgallery tal:replace="structure view/subgallery_template" />

</tal:main-macro>
</metal:main>
</tal:core-macro>
</metal:core>
</body>
</html>

0 comments on commit f3c6c00

Please sign in to comment.