{{submission.title}}

{# This should only be added for derby winners #} {#

{{_('You Like')}}

#}

{{ submission.summary }}

{% if tech_tags_for_object(submission)|length > 0 %}

{{_('Built using')}} {% for tag in tags_for_object(submission) %} {% if tag.name.startswith('tech:') %} {{ tag_title(tag) }}{% if not loop.last %}, {% endif %} {% endif %} {% endfor %}

{% endif %}
    {% set launches = submission.launches.total %} {% set likes = submission.likes.total %} {% set comments = submission.comments_total %}
  • {{ngettext('{count} view', '{count} views', launches) | f(count=launches) }}
  • {{ _('{comment_count} comments') | f(comment_count=comments) }}
    {% if submission.video_url %}
  • {{ submission.video_url.embed_html }}
  • {% endif %} {% for idx in range(1, 6) %} {% set screenshot_url = submission.screenshot_url(idx) %} {% if screenshot_url %}
  • {% endif %} {% endfor %}
{# only shown to admins and the demo owner #} {# TODO: The whole UL should be hidden if none of the conditions are met. Logged-out users get served an empty list, which is invalid HTML and can trigger layout weirdness. #} {% set p_edit = submission.allows_editing_by(request.user) %} {% set p_delete = submission.allows_deletion_by(request.user) %} {% set p_hide = submission.allows_hiding_by(request.user) %} {% set show_buttons = ( p_edit or p_delete or p_hide ) %} {% if show_buttons %}
    {% if p_edit %}
  • {{_('Edit Demo')}}
  • {% endif %} {% if p_delete %}
  • {{_("Remove demo")}}
  • {% endif %} {% if p_hide %} {% if submission.hidden %}
  • {{ csrf() }}
  • {% else %}
  • {{ csrf() }}
  • {% endif %} {% endif %}
{% endif %} {% if submission.description %}

{{_('More About This Demo From The Author')}}

{{ submission.description | nl2br }}

{% endif %}
{% if submission.comments_total == 0 %}

{{_('No comments yet.')}}

{% else %}

{{ ngettext('{comments_total} comment so far', '{comments_total} comments so far', submission.comments_total) | f(comments_total=submission.comments_total) }}

{% endif %} {% if request.user.is_authenticated() %} {% trans %}

Why not Add your own?

{% endtrans %} {% else %} {% trans login_url=url('users.login') %}

Log in to add your own.

{% endtrans %} {% endif %}
    {{ comments_tree(request, submission, get_threaded_comment_tree(submission)) }}
{% if request.user.is_authenticated() %}
{{ csrf() }}
{{_('Add your comment')}}

{% endif %}

{{_('Get the Source Code')}}

{% trans file_ksize=(submission.demo_package.size/1024)|round(2,'ceil')|e %}Download the Source {{file_ksize}} KB · ZIP File{% endtrans %}

{% if submission.source_code_url %}

Browse the Source {# TODO: Show "hosted by {{domain}}?" #} {% if false %}Hosted on GitHub{% endif %}

{% endif %} {% if submission.license_name == 'mpl' %} {% set license_class = 'mpl' %} {% elif submission.license_name == 'gpl' %} {% set license_class = 'gpl' %} {% elif submission.license_name == 'bsd' %} {% set license_class = 'bsd' %} {% elif submission.license_name == 'apache' %} {% set license_class = 'apache' %} {% else %} {% set license_class = 'publicdomain' %} {% endif %}

{% trans link=license_link(submission.license_name)|e, title=license_title(submission.license_name)|e %} This demo is released under the {{title}} license. {% endtrans %}

{% if more_by | length > 1 %}

{{ _('More by {creator}')|fe(creator=submission_creator(submission)) }}

{% endif %}