{% extends "templates/marketplace/base.html" %} {%- from "templates/marketplace/macros.html" import button, link, breadcrumbs, badge_gray, badge_green, five_star_rating, approved_badge -%} {%- block title -%} {{ app.title }} - Jingrow Marketplace {%- endblock -%} {%- block content -%}
{{ breadcrumbs([ { 'label': 'Apps', 'url': '/marketplace' }, { 'label': app.title, 'url': '' } ]) }}
{{ app_image(app, 'hidden md:block') }}
{{ app_image(app) }}

{{ app.title }} {%- if app.jingrow_approved -%}
{{ approved_badge() }}
{%- endif -%}

{{ app.description }}

{{ button('Install Now', '/dashboard/install-app/' + app.name, 'primary') }}
{{ no_of_installs | number_k_format }} {{ 'install' if no_of_installs == 1 else 'installs' }}
{{ sidebar() }} {{ main() }}
{%- endblock -%} {% macro sidebar() %} {% endmacro %} {% macro main() %}
{%- if app.screenshots -%}
{%- for image in app.screenshots -%} {%- endfor -%}
{%- endif -%}
{{ jingrow.utils.md_to_html(app.long_description) }}

User Reviews

{{ button('Write a review', link='/dashboard/user-review/' + app.name) }}
{%- if (user_reviews | length) > 0 -%}

{{ ratings_summary.avg_rating }}

{{ ratings_summary.total_num_reviews }} {{ 'rating' if ratings_summary.total_num_reviews == 1 else 'ratings'}}

{{ five_star_rating(ratings_summary.avg_rating) }}

{{ ratings_summary.avg_rating }} out of 5

{%for i in range(5, 0, -1) %}

{{i}} Star

{{ ratings_summary.rating_percentages[i] }}%

{% endfor %}
{% for review in user_reviews %}

{{ review.title }}

{{ five_star_rating(review.rating) }}

{{ review.review }}

{{ review.user_name }} • {{ jingrow.utils.pretty_date(review.creation) }} • {{ link('Reply', url='/dashboard/developer-reply/' + app.name + '/' + review.name) }}
{% for reply in review.developer_reply %}
{% if reply[0] == ',' %} {{ reply[1:] }} {% else %} {{ reply }} {% endif %} {% if reply %}
Developer {% endif %}
{% endfor %}
{% endfor %}
{%- else -%}

No reviews yet, be the first to review.

{%- endif -%}
{% endmacro %} {% macro app_image(app, class='') %}
{%- if app.image -%} {{ app.title }} {%- else -%}
{{ app.title[0].upper() }}
{%- endif -%}
{% endmacro %} {% macro app_plans_list(plans) %}
{%- for plan in plans -%} {{ app_plan_card(plan) }} {%- endfor -%}
{% endmacro %} {% macro app_plan_card(plan) %}

{%- if plan.is_free -%} Free {%- else -%} ${{ jingrow.utils.rounded(plan.price_usd) }} /mo {%- endif -%}

{{ feature_list(plan.features) }}
{{ button('Buy', '/dashboard/install-app/' + app.name, 'primary') }}
{% endmacro %} {% macro feature_list(features) %} {% endmacro %}