Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 
 
 

65 Zeilen
1.9 KiB

  1. {% block title %} {{ title }} {% endblock %}
  2. {% block header %}{% if show_title %}<h2>{{ title }}</h2>{% endif %}{% endblock %}
  3. {% block breadcrumbs %}{% include "templates/includes/breadcrumbs.html" %}{% endblock %}
  4. {% block content %}
  5. <div class="webpage-content">
  6. {# title, breadcrumbs, table of contents #}
  7. {% include "templates/includes/slideshow.html" %}
  8. <div class="web-page-content" id="{{ name }}">
  9. {{ main_section or "" }}
  10. </div>
  11. {# toc, parent, child, next sibling #}
  12. {% if show_toc and toc_list -%}
  13. <div class="well">
  14. <h4>Contents</h4>
  15. <ol>
  16. {% for t in toc_list -%}
  17. <li><a href="{{ t.page_name }}">{{ t.title }}</a></li>
  18. {%- endfor %}
  19. </ol>
  20. </div>
  21. {%- endif %}
  22. {% if links and links.get("parent") -%}
  23. <div class="btn-group pull-right" style="margin: 15px 0px;">
  24. <a class='btn btn-default' href="{{ links.parent.page_name }}">
  25. <i class="icon-arrow-up"></i> {{ links.parent.title }}</a>
  26. {% if links.get("next") -%}
  27. <a class='btn btn-default' href="{{ links.next.page_name }}">
  28. <i class="icon-arrow-right"></i> {{ links.next.title }}</a>
  29. {%- endif -%}
  30. {% if links.get("child") -%}
  31. <a class='btn btn-default' href="{{ links.child.page_name }}">
  32. <i class="icon-arrow-down"></i> {{ links.child.title }}</a>
  33. {%- endif -%}
  34. </div>
  35. <div class="clearfix"></div>
  36. {%- endif %}
  37. {% if enable_comments -%}
  38. <hr>
  39. <h3>Discuss</h3>
  40. {% include 'templates/includes/comments.html' %}
  41. {%- endif %}
  42. </div>
  43. <script>
  44. $(function() {
  45. if(window.logged_in && getCookie("system_user")==="yes") {
  46. wn.has_permission("Web Page", "{{ name }}", "write", function(r) {
  47. wn.require("assets/webnotes/js/wn/website/editable.js");
  48. wn.make_editable($(".web-page-content"), "Web Page", "{{ name }}", "main_section");
  49. });
  50. }
  51. });
  52. </script>
  53. {% endblock %}
  54. {% block sidebar %}{% include "templates/includes/sidebar.html" %}{% endblock %}
  55. {% block style %}{{ style }}{% endblock %}
  56. {% block script %}{{ script }}{% endblock %}