diff options
author | Vitaly Takmazov | 2018-02-07 12:49:00 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-02-07 12:49:00 +0300 |
commit | 5ed39dda637059d56f6d8c501880ec9bca7b2fee (patch) | |
tree | 1e94c1da18ef7e3798a12c7869b1fb23e30fd635 /juick-www/src/main/webapp/WEB-INF/layouts | |
parent | a2fcaac118db98ddf0b028639f4276f417e45d8f (diff) |
www: hide navigation in post
Diffstat (limited to 'juick-www/src/main/webapp/WEB-INF/layouts')
3 files changed, 33 insertions, 18 deletions
diff --git a/juick-www/src/main/webapp/WEB-INF/layouts/content.html b/juick-www/src/main/webapp/WEB-INF/layouts/content.html index f4ca0d84..4c283116 100644 --- a/juick-www/src/main/webapp/WEB-INF/layouts/content.html +++ b/juick-www/src/main/webapp/WEB-INF/layouts/content.html @@ -44,23 +44,7 @@ </script> </head> <body id="body" {% if visitor.uid > 0 %}data-hash="{{visitor.authHash}}"{% endif %}> -{% include "views/partial/navigation" %} -<div id="wrapper"> - {% if visitor.uid == 0 %} - <div class="page"> - <p>{{ i18n("messages","message.loginForSending", "/login") | raw }}.</p> - </div> - {% endif %} -<section id="content" - {% if msg | default('') is not empty %}data-mid="{{ msg.mid }}"{% endif %}> - {% block content %} - {% endblock %} -</section> -<aside id="column"> - {% block column %} - {% endblock %} -</aside> -</div> -{% include "views/partial/footer" %} +{% block body %} +{% endblock %} </body> </html> diff --git a/juick-www/src/main/webapp/WEB-INF/layouts/default.html b/juick-www/src/main/webapp/WEB-INF/layouts/default.html new file mode 100644 index 00000000..f056322f --- /dev/null +++ b/juick-www/src/main/webapp/WEB-INF/layouts/default.html @@ -0,0 +1,21 @@ +{% extends "layouts/content" %} +{% block body %} +{% include "views/partial/navigation" %} +<div id="wrapper"> + {% if visitor.uid == 0 %} + <div class="page"> + <p>{{ i18n("messages","message.loginForSending", "/login") | raw }}.</p> + </div> + {% endif %} + <section id="content" + {% if msg | default('') is not empty %}data-mid="{{ msg.mid }}"{% endif %}> + {% block content %} + {% endblock %} + </section> + <aside id="column"> + {% block column %} + {% endblock %} + </aside> +</div> +{% include "views/partial/footer" %} +{% endblock %}
\ No newline at end of file diff --git a/juick-www/src/main/webapp/WEB-INF/layouts/minimal.html b/juick-www/src/main/webapp/WEB-INF/layouts/minimal.html new file mode 100644 index 00000000..15924521 --- /dev/null +++ b/juick-www/src/main/webapp/WEB-INF/layouts/minimal.html @@ -0,0 +1,10 @@ +{% extends "layouts/content" %} +{% block body %} +<div id="wrapper"> + <section id="minimal_content"> + {% block content %} + {% endblock %} + </section> +</div> +{% include "views/partial/footer" %} +{% endblock %}
\ No newline at end of file |