選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

web_page.html 1.6 KiB

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