{% extends "base.html" %} {% block title %} {{ _("Review") }} {% endblock %} {% block link %} {{ package.title }} {% endblock %} {% block content %}

{{ _("Post a review for %(title)s by %(author)s", title=self.link(), author=package.author.display_name) }}

{% if package.issueTracker %}

{{ _("Found a bug? Post on the issue tracker instead.", url=package.issueTracker) }}

{% endif %} {% from "macros/forms.html" import render_field, render_submit_field, render_toggle_field %}
{{ form.hidden_tag() }}
{{ current_user.display_name }}

{{ _("Do you recommend this %(type)s?", type=package.type.text | lower) }}

{{ render_toggle_field(form.rating, icons={"5":"fa-birthday-cake", "3": "fa-minus", "1":"fa-thumbs-down"}) }}

{{ _("Why or why not? Try to be constructive") }}

{{ render_field(form.title) }} {{ render_field(form.comment, label="", class_="m-0", fieldclass="form-control markdown") }}
{{ render_submit_field(form.submit) }}
{% if review %}
{{ _("Delete review.") }} {{ _("This will convert the review into a thread, keeping the comments but removing its effect on the package's rating.") }}
{% endif %} {% endblock %}