view sat_templates/templates/default/forum/view.html @ 166:178f55b825b7

small refactoring/redesign, better BEM integration: - blog has been redesigned, and almost all blog CSS has been made generic and moved to main styles.css file. - better noscript handling, dynamic elements are created using "magic" classes (dom_update.js) - using better icons for older/newer messages - better state handling, classes now use "state_XXX" - more classes now use BEM convention - menu labels have been moved to a separate template (components/menu_labels.html), so it can be overriden easily by other sites - better styles.css organisation
author Goffi <goffi@goffi.org>
date Wed, 03 Oct 2018 21:00:24 +0200
parents e9f0a4215e46
children
line wrap: on
line source

{% if not embedded %}{% extends 'base/base.html' %}{% endif %}
{% set dates_format='relative' if single else 'short' %}
{% import 'blog/macros.html' as blog with context %}
{% import 'input/textbox.html' as textbox with context %}
{% import 'input/navigation.html' as navigation with context %}

{% block body %}
{{ icon_defs('angle-double-left', 'angle-double-right') }}

<div id="blog_items">
    {{ blog.show_items(items, expanded=true) }}
</div>
<div class="forum_topic_answer">
    {{- textbox.comment_or_login(service=service, node=node, placeholder=_("Enter your message here")) -}}
</div>

{{ navigation.prev_next(_("newer articles"), _("older articles")) }}
{% endblock body %}