mirror of
https://github.com/minetest/contentdb.git
synced 2024-11-10 17:43:46 +01:00
307b8f8dde
Fixes #173
49 lines
1.4 KiB
HTML
49 lines
1.4 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}
|
|
Threads
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
{% if current_user.is_authenticated %}
|
|
{% if current_user in thread.watchers %}
|
|
<form method="post" action="{{ thread.getUnsubscribeURL() }}" class="float-right">
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
|
<input type="submit" class="btn btn-primary" value="Unsubscribe" />
|
|
</form>
|
|
{% else %}
|
|
<form method="post" action="{{ thread.getSubscribeURL() }}" class="float-right">
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
|
<input type="submit" class="btn btn-primary" value="Subscribe" />
|
|
</form>
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
<h1>
|
|
{% if thread.review %}
|
|
{% if thread.review.recommends %}
|
|
<i class="fas fa-thumbs-up mr-2" style="color:#6f6;"></i>
|
|
{% else %}
|
|
<i class="fas fa-thumbs-down mr-2" style="color:#f66;"></i>
|
|
{% endif %}
|
|
{% endif %}
|
|
{% 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 %}
|