<div style="margin-top: 1ex;">
<h1><img src="{% url telemeta-images "playlist_title.png" %}" alt="playlists" style="vertical-align:middle" />
{% trans "Musical selection" %}</h1>
-<table><tr>
+<table style="font-size: 90%"><tr>
{% for item in sound_items %}
-<td><iframe width='375' height='215' frameborder='0' scrolling='no' marginheight='0' marginwidth='0' src='/items/{{item.public_id }}/player/362x130/'></iframe></td>
+<td width="390"><a href="{% url telemeta-item-detail item.public_id %}">{{ item }}</a>{% if item.alt_title %} ({{ item.alt_title }}){% endif %}<br /><span style="font-size: 90%">{{ item.location.fullnames|to_string }}</span><br />
+<iframe width='375' height='215' frameborder='0' scrolling='no' marginheight='0' marginwidth='0' src='/items/{{item.public_id }}/player/362x130/'></iframe></td>
{% endfor %}
</tr>
</table>
{% endblock %}
{% block title_buttons %}
+ <a href="{% url telemeta-items %}" class="component_icon button icon_filter">{% trans "All" %}</a>
+ <a href="{% url telemeta-items-sound %}" class="component_icon button icon_filter">{% trans "Sound" %}</a>
{% if user.is_authenticated and perms.telemeta.add_mediaitem %}
<a href="{% url telemeta-item-add %}" class="component_icon button icon_add">{% trans "Add" %}</a>
{% endif %}
# query sets for Django generic views
all_items = { 'queryset': MediaItem.objects.enriched().order_by('code', 'old_code') }
+all_sound_items = { 'queryset': MediaItem.objects.sound().order_by('code', 'old_code') }
all_collections = { 'queryset': MediaCollection.objects.enriched(), }
# CREM collections
url(r'^items/$', 'django.views.generic.list_detail.object_list',
dict(all_items, paginate_by=20, template_name="telemeta/mediaitem_list.html"),
name="telemeta-items"),
+ url(r'^items_sound/$', 'django.views.generic.list_detail.object_list',
+ dict(all_sound_items, paginate_by=20, template_name="telemeta/mediaitem_list.html"), name="telemeta-items-sound"),
url(r'^items/(?P<public_id>[A-Za-z0-9._-]+)/$', item_view.item_detail,
name="telemeta-item-detail"),
url(r'^items/(?P<public_id>[A-Za-z0-9._-]+)/dc/$', item_view.item_detail,