{% load cache %} {% load util %} {% load ratings %} {% if sound %} {% comment %} If you change this cache index, be sure to change the invalidation in ratings/views.py as well {% endcomment %} {% cache 43200 display_sound sound_id request.user.is_authenticated sound.processing_state sound.moderation_state request.user.profile.is_adult %}
{% if is_explicit %}
Warning: this sound may be inappropriate for some users Dismiss
{% endif %}
{% include "sounds/player_medium.html" %}
{% sound_ratings %}

{{sound.description|striptags|safe|truncatewords:20}}

    {% for tag in sound_tags %}
  • {{tag}}
  • {% endfor %}

{% if sound.moderation_state != 'OK' or sound.processing_state != 'OK' %}

{% if sound.processing_state != 'OK' %} Processing state: {% if sound.processing_state == 'PE' %} Pending {% else %} {% if sound.processing_state == 'QU' %} Queued {% else %} {% if sound.processing_state == 'FA' %} Failed {% else %} {% if sound.processing_state == 'PR' %} Processing {% else %} {{sound.processing_state}} {% endif %} {% endif %} {% endif %} {% endif %}
{% endif %} {% if sound.moderation_state != 'OK' %} Moderation state: {% if sound.moderation_state == 'PE' %} Pending {% elif sound.moderation_state == 'DE' %} Deferred {% else %} {{sound.moderation_state}} {% endif %} {% endif %} {% endif %}

{{sound_user}}
{{sound.created|date:"F jS, Y"}}
{{sound.num_downloads}} download{{sound.num_downloads|pluralize}}
{{sound.num_comments}} comment{{sound.num_comments|pluralize}}
{% if request.user.is_authenticated %} Bookmark {% endif %} {% if sound.similarity_state == 'OK' %} Similar {% endif %} {% if sound.pack_id %} Pack {% endif %} {% if sound.remixgroup_id %} Remixes {% endif %} {% if sound.geotag_id %} Geotagged {% endif %} {% if license_name == 'Sampling+' %} Sampling+ license {% endif %} {% if license_name == 'Creative Commons 0' %} Public Domain license {% endif %} {% if license_name == 'Attribution' %} Creative Commons Attribution license {% endif %} {% if license_name == 'Attribution Noncommercial' %} Creative Commons Attribution Non-Commercial license {% endif %}
{% endcache %} {% endif %}