Add comment system
This commit is contained in:
12
app/templates/threads/list.html
Normal file
12
app/templates/threads/list.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}
|
||||
Threads
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Threads</h1>
|
||||
|
||||
{% from "macros/threads.html" import render_threadlist %}
|
||||
{{ render_threadlist(threads) }}
|
||||
{% endblock %}
|
||||
19
app/templates/threads/new.html
Normal file
19
app/templates/threads/new.html
Normal file
@@ -0,0 +1,19 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}
|
||||
New Thread
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% from "macros/forms.html" import render_field, render_submit_field %}
|
||||
<form method="POST" action="" enctype="multipart/form-data">
|
||||
{{ form.hidden_tag() }}
|
||||
|
||||
{{ render_field(form.title) }}
|
||||
{{ render_field(form.comment) }}
|
||||
{{ render_field(form.private) }}
|
||||
{{ render_submit_field(form.submit) }}
|
||||
|
||||
<p>Only the you, the package author, and users of Editor rank and above can read private threads.</p>
|
||||
</form>
|
||||
{% endblock %}
|
||||
25
app/templates/threads/view.html
Normal file
25
app/templates/threads/view.html
Normal file
@@ -0,0 +1,25 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}
|
||||
Threads
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>{% if thread.private %}🔒 {% endif %}{{ thread.title }}</h1>
|
||||
|
||||
{% if thread.package %}
|
||||
<p>
|
||||
Package: <a href="{{ thread.package.getDetailsURL() }}">{{ thread.package.title }}</a>
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
{% if thread.private %}
|
||||
<i>
|
||||
This thread is only visible to its creator, the package owner, and users of
|
||||
Editor rank or above.
|
||||
</i>
|
||||
{% endif %}
|
||||
|
||||
{% from "macros/threads.html" import render_thread %}
|
||||
{{ render_thread(thread, current_user) }}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user