|
- {% block title %} {{ title }} {% endblock %}
-
- {% block header %}{% if show_title %}<h2>{{ title }}</h2>{% endif %}{% endblock %}
-
- {% block breadcrumbs %}{% include "templates/includes/breadcrumbs.html" %}{% endblock %}
-
- {% block content %}
- <div class="webpage-content">
- {# title, breadcrumbs, table of contents #}
-
- {% include "templates/includes/slideshow.html" %}
- <div class="web-page-content" id="{{ name }}">
- {{ main_section or "" }}
- </div>
-
- {# toc, parent, child, next sibling #}
- {% if show_toc and toc_list -%}
- <div class="well">
- <h4>Contents</h4>
- <ol>
- {% for t in toc_list -%}
- <li><a href="{{ t.page_name }}">{{ t.title }}</a></li>
- {%- endfor %}
- </ol>
- </div>
- {%- endif %}
- {% if links and links.get("parent") -%}
- <div class="btn-group pull-right" style="margin: 15px 0px;">
- <a class='btn btn-default' href="{{ links.parent.page_name }}">
- <i class="icon-arrow-up"></i> {{ links.parent.title }}</a>
- {% if links.get("next") -%}
- <a class='btn btn-default' href="{{ links.next.page_name }}">
- <i class="icon-arrow-right"></i> {{ links.next.title }}</a>
- {%- endif -%}
- {% if links.get("child") -%}
- <a class='btn btn-default' href="{{ links.child.page_name }}">
- <i class="icon-arrow-down"></i> {{ links.child.title }}</a>
- {%- endif -%}
- </div>
- <div class="clearfix"></div>
- {%- endif %}
- {% if enable_comments -%}
- <hr>
- <h3>Discuss</h3>
- {% include 'templates/includes/comments.html' %}
- {%- endif %}
- </div>
- <script>
- $(function() {
- if(window.logged_in && getCookie("system_user")==="yes") {
- wn.has_permission("Web Page", "{{ name }}", "write", function(r) {
- wn.require("assets/webnotes/js/wn/website/editable.js");
- wn.make_editable($(".web-page-content"), "Web Page", "{{ name }}", "main_section");
- });
- }
- });
- </script>
- {% endblock %}
-
- {% block sidebar %}{% include "templates/includes/sidebar.html" %}{% endblock %}
-
- {% block style %}{{ style }}{% endblock %}
-
- {% block script %}{{ script }}{% endblock %}
|