kotti/templates/edit/master.pt
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:metal="http://xml.zope.org/namespaces/metal"
xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
tal:define="page_slots api.slots; dummy api.edit_needed; has_location_context api.is_location(context);"
metal:define-macro="main">
<head>
<meta charset="utf-8" />
<title metal:define-slot="page-title">${api.page_title | api.site_title}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="${context.description | ''}" />
${api.render_template('kotti:templates/icons.pt')}
<metal:headmore define-slot="head-more" tal:omit-tag=""></metal:headmore>
<!-- 'edit_inhead' slots: support third party injection of things that
go into the head -->
<tal:slots tal:define="snippets page_slots.edit_inhead"
tal:condition="snippets"
tal:repeat="snippet snippets"
tal:replace="structure snippet" />
<script tal:condition="api.is_location(context)">
kotti_context_url = '${request.resource_url(context)}';
</script>
</head>
<body class="view-${request.view_name or 'default'} ${api.body_css_class} logged-in">
<nav tal:omit-tag="" metal:define-slot="nav-bar">
<nav tal:replace="api.render_template('kotti:templates/view/nav.pt')" ></nav>
</nav>
<editbar tal:omit-tag="" metal:define-slot="editor-bar">
<div tal:condition="request.user is not None"
tal:replace="api.render_template('kotti:templates/editor-bar.pt')" ></div>
</editbar>
<div class="container">
<div class="row">
<div class="col-md-12">
<div tal:replace="api.render_template('kotti:templates/edit/breadcrumbs.pt')"></div>
<div tal:replace="api.render_template('kotti:templates/messages.pt')"></div>
<div class="inner-content">
<metal:content define-slot="content">
<h1>${context.title}</h1>
</metal:content>
</div>
</div>
</div>
<footer tal:replace="api.render_template('kotti:templates/edit/footer.pt')">
</footer>
</div>
<metal:jsmore define-slot="js-more" tal:omit-tag=""></metal:jsmore>
</body>
</html>