mirror of
https://github.com/minetest/contentdb.git
synced 2024-11-14 19:43:48 +01:00
39 lines
1.1 KiB
HTML
39 lines
1.1 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}
|
|
Threads
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<h1>{% if thread.private %}🔒 {% endif %}{{ thread.title }}</h1>
|
|
{% if thread.package or current_user.is_authenticated %}
|
|
{% if thread.package %}
|
|
<p>Package: <a href="{{ thread.package.getDetailsURL() }}">{{ thread.package.title }}</a></p>
|
|
{% endif %}
|
|
|
|
{% if current_user.is_authenticated %}
|
|
{% if current_user in thread.watchers %}
|
|
<form method="post" action="{{ thread.getUnsubscribeURL() }}">
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
|
<input type="submit" value="Unsubscribe" />
|
|
</form>
|
|
{% else %}
|
|
<form method="post" action="{{ thread.getSubscribeURL() }}">
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
|
<input type="submit" value="Subscribe" />
|
|
</form>
|
|
{% endif %}
|
|
{% endif %}
|
|
{% 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 %}
|