{% extends "base.html" %} {% block title %}Reviews - {{ tool.owner }}/{{ tool.name }} - CmdForge{% endblock %} {% block content %}

Reviews for {{ tool.name }}

{% if session.get('auth_token') %} Write Review {% endif %}
{% if rating.rating_count and rating.rating_count > 0 %}
{{ "%.1f"|format(rating.average_rating) }}
{% set avg = rating.average_rating|default(0)|float %} {% for i in range(1, 6) %} {% endfor %}

{{ rating.rating_count }} reviews

{% for star in range(5, 0, -1) %} {% set count = rating.distribution[star|string]|default(0) %} {% set pct = (count / rating.rating_count * 100)|int if rating.rating_count else 0 %}
{{ star }}
{{ count }}
{% endfor %}
{% endif %} {% if reviews %}
{% for review in reviews %}
{% for i in range(1, 6) %} {% endfor %}
{% if review.title %}

{{ review.title }}

{% endif %}
{{ review.created_at|timeago }}
{% if review.content %}

{{ review.content }}

{% endif %}
by {{ review.reviewer_name }}
{{ review.helpful_count }} found helpful
{% endfor %}
{% if pagination.pages > 1 %}
{% if pagination.has_prev %} Previous {% endif %} Page {{ pagination.page }} of {{ pagination.pages }} {% if pagination.has_next %} Next {% endif %}
{% endif %} {% else %}

No reviews yet for this tool.

{% if session.get('auth_token') %} Be the first to review {% endif %}
{% endif %}
{% endblock %}