Skip to content

Commit ea7d0d8

Browse files
committed
create initial configuration
1 parent 928ff97 commit ea7d0d8

File tree

4 files changed

+188
-175
lines changed

4 files changed

+188
-175
lines changed

src/cs_dynamicpages/content/dynamic_page_folder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ class IDynamicPageFolder(model.Schema):
2020

2121
@implementer(IDynamicPageFolder)
2222
class DynamicPageFolder(Container):
23-
"""Content-type class for IDynamicPageFolder"""
23+
"""Content-type class for IDynamicPageFolder"""

src/cs_dynamicpages/views/dynamic_page_folder_view.pt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,8 @@
1818
<tal:define tal:define="
1919
isAnon context/@@plone_portal_state/anonymous;
2020
">
21-
<tal:condition tal:condition="isAnon">
22-
<tal:replace tal:replace="python:context.REQUEST.RESPONSE.redirect(context.aq_parent.absolute_url(),301)">
23-
</tal:replace>
24-
</tal:condition>
25-
<tal:conditionisanon tal:condition="not:isAnon">
26-
<a class="btn btn-primary btn-lg" href="${context/aq_parent/absolute_url}">View dynamic page</a>
27-
</tal:conditionisanon>
21+
<tal:replace tal:replace="python:context.REQUEST.RESPONSE.redirect(context.aq_parent.absolute_url(),301)">
22+
</tal:replace>
2823
</tal:define>
2924

3025
</metal:block>

0 commit comments

Comments
 (0)