Add Forum

This commit is contained in:
Skia
2017-01-21 03:42:06 +01:00
parent fcaa740710
commit ea52462217
19 changed files with 449 additions and 1 deletions
+33
View File
@@ -0,0 +1,33 @@
{% extends "core/base.jinja" %}
{% from 'core/macros.jinja' import user_profile_link %}
{% from 'forum/macros.jinja' import display_forum %}
{% block head %}
{{ super() }}
<style type="text/css" media="all">
.forum {
background: lightblue;
padding: 2px;
margin: 2px;
}
.category {
background: skyblue;
}
</style>
{% endblock %}
{% block content %}
<h3>{% trans %}Forum{% endtrans %}</h3>
<a href="{{ url('forum:new_forum') }}">New forum</a>
{% for f in forum_list %}
<div style="padding: 4px; margin: 4px">
{{ display_forum(f) }}
{% for c in f.children.all() %}
{{ display_forum(c) }}
{% endfor %}
</div>
{% endfor %}
{% endblock %}