--- a/src/pyams_default_theme/page.py Wed Jun 13 14:50:00 2018 +0200
+++ b/src/pyams_default_theme/page.py Wed Jun 13 14:50:33 2018 +0200
@@ -25,3 +25,8 @@
@layout_config(template='templates/layout.pt', layer=IPyAMSDefaultLayer)
class BaseIndexPage(object):
"""Default base index page"""
+
+
+@layout_config(template='templates/preview-layout.pt', layer=IPyAMSDefaultLayer)
+class BasePreviewPage(object):
+ """Default base preview page"""
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/pyams_default_theme/templates/preview-layout.pt Wed Jun 13 14:50:33 2018 +0200
@@ -0,0 +1,43 @@
+<!DOCTYPE html>
+<html lang="en" i18n:domain="pyams_default_theme"
+ tal:define="config extension:configuration;
+ anonymous request.principal.id == '__none__';"
+ tal:attributes="lang request.locale_name">
+<head>
+ <tal:var replace="structure extension:metas" />
+
+ <title tal:attributes="data-ams-title-prefix config.get_title_prefix(request)"
+ tal:content="config.title"></title>
+
+ <tal:if define="icon config.icon | nothing; url extension:absolute_url(icon);" condition="icon">
+ <!-- Favorite icon -->
+ <link rel="shortcut icon" tal:attributes="href url" type="image/x-icon">
+ <link rel="icon" tal:attributes="href url" type="image/x-icon">
+ </tal:if>
+
+ <tal:var replace="extension:resources" />
+
+ <!-- Javascript extensions -->
+ <tal:var content="structure provider:pyams.jsextensions" />
+ <!-- end javascript extensions -->
+
+</head>
+<body class="no-margin no-padding">
+
+ <!-- Main panel -->
+ <div id="main" class="no-margin" role="main">
+
+ <!-- Content -->
+ <div id="content" style="opacity: 1;">
+ <!--[if lt IE 9]>
+ <h1 i18n:translate="">Your browser is too old. Please install version 9 or higher of Internet Explorer.</h1>
+ <![endif]-->
+ <tal:var content="structure provider:pagelet" />
+ </div>
+ <!-- end content -->
+
+ </div>
+ <!-- end main panel -->
+
+</body>
+</html>