# HG changeset patch # User Goffi # Date 1517294931 -3600 # Node ID 5f4e147e98950f1cb79ec0793e79d8cf3af50bcf # Parent b085ede4d9af7825435575d8a5b7038015fecb1a forum/topic: topic generation page diff -r b085ede4d9af -r 5f4e147e9895 default/forum/view_topics.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/default/forum/view_topics.html Tue Jan 30 07:48:51 2018 +0100 @@ -0,0 +1,39 @@ +{% if not embedded %}{% extends 'base/base.html' %}{% endif %} +{% import 'input/field.html' as field with context%} +{% import 'input/textbox.html' as textbox with context %} +{% import 'input/navigation.html' as navigation with context %} +{% import 'components/avatar.html' as avatar with context %} + +{% block body %} + + {% if not topics %} +
+ {% trans %}There is not message yet in this forum.{% endtrans %} + {% if profile %} + {% trans %}You can start a topic of interest by filling this form.{% endtrans %} + {% else %} + {% trans %}You can login to create a new topic.{% endtrans %} + {% endif %} +
+ {% endif %} + {% if profile %} +
+ {% call textbox.textbox(service, node, placeholder=_("Your message"), submit_label=_("Create topic"), type="new_topic") %} + {{ field.text("title", placeholder=_("Your topic (try to be short and explicit)"), required=True) }} + {% endcall %} +
+ {% endif %} + +
+ {% for topic in topics %} +
+ + {{ avatar.avatar(topic.author) }} + {{topic.title}} + +
+ {% endfor %} +
+ + {{ navigation.prev_next(_("older topics"), _("newer topics")) }} +{% endblock body %}