{% extends "base.html" %} {% block title %} {%- if thread.package -%} {%- if thread.review -%} {%- if thread.review.rating > 3 -%} {%- set rating = "👍" -%} {%- elif thread.review.rating < 3 -%} {%- set rating = "👎" -%} {%- else -%} {%- set rating = "-" -%} {%- endif -%} {%- endif -%} {{ rating }} {{ thread.title }} - {{ thread.package.title }} {%- else -%} {{ thread.title }} {%- endif -%} {% endblock %} {% block description -%} {{ thread.get_description() }} {%- endblock %} {% block headextra %} {% endblock %} {% block scriptextra %} {% if current_user.is_authenticated %} {% endif %} {% from "macros/forms.html" import easymde_scripts %} {{ easymde_scripts() }} {% endblock %} {% block content %} {% if current_user.is_authenticated %} {% if current_user in thread.watchers %}
{% else %} {% endif %} {% if thread.check_perm(current_user, "DELETE_THREAD") %} {{ _('Delete') }} {% endif %} {% if thread.review and thread.review.check_perm(current_user, "DELETE_REVIEW") and current_user.username != thread.review.author.username %} {% endif %} {% if thread.check_perm(current_user, "LOCK_THREAD") %} {% if thread.locked %} {% else %} {% endif %} {% endif %} {% endif %} {% if current_user == thread.author and thread.review %} {{ _("Edit Review") }} {% endif %}{{ _("Package") }}: {{ thread.package.title }}
{% endif %} {% if thread.private %} {% endif %} {% from "macros/threads.html" import render_thread %} {{ render_thread(thread, current_user, form) }} {% endblock %}