-{% extends "telemeta/base.html" %}
+{% extends "telemeta/collection_detail.html" %}
{% load telemeta_utils %}
{% load i18n %}
-{% block head_title %}{% trans "Collection" %}{{collection|prepend:': '}} - {{ block.super }}{% endblock %}
-
-{% if collection %}
-{% block title %}
-<h1>Collection: {{ collection }}</h1>
-{% endblock %}
-{% block title_buttons %}
-<a class="component_icon button icon_previous" href="{% url "telemeta-collection-detail" collection.public_id %}">{% trans "Normal View" %}</a>
-{% endblock %}
-
{% block content %}
+
{% with collection|to_dublincore as resource %}
{% include "telemeta/inc/dublincore.html" %}
{% endwith %}
+
+ {% block dublincore %}
+ <a href="{% url "telemeta-collection-detail" collection.public_id %}" style="float:left;margin-top:0.5em;margin-bottom:1em">
+ <button type="button" class="btn btn-default">
+ <span class="glyphicon glyphicon-arrow-left"></span> {% trans "Normal View" %}
+ </button>
+ </a>
+ {% endblock dublincore %}
+
{% endblock %}
{% block delete %}
-<a class="component_icon button icon_previous" href="{% url "telemeta-collection-detail" collection.public_id %}">{% trans "Normal View" %}</a>
{% if user.is_authenticated and perms.telemeta.delete_mediacollection %}
- <a href="#" onclick="if(confirm(gettrans('delete the collection permanently?'))){window.location.href='{% url "telemeta-collection-delete" collection.public_id %}';};return false;"
- class="component_icon button icon_delete" style="float:right;margin-top:0.5em;margin-bottom:1em">{% trans "Delete" %}</a>
-{% endif %}
-{% endblock %}
-{% else %}
- <p>{% trans "No such collection" %}</p>
+ <a href="#" onclick="if(confirm(gettrans('delete the collection permanently?'))){window.location.href='{% url "telemeta-collection-delete" collection.public_id %}';};return false;" style="float:right;margin-top:0.5em;margin-bottom:1em">
+ <button type="button" class="btn btn-default">
+ <span class="glyphicon glyphicon-trash"></span> {% trans "Delete" %}
+ </button>
+ </a>
{% endif %}
+{% endblock %}
</div>
</fieldset>
</form>
-
+
<br style="clear: right"/>
<table>
<tr>
- <td><label>{{ form.username.label_tag }}</label></td>
+ <td><label>{{ form.username.label_tag }}</label></td>
<td>{{ form.username }}</td>
</tr>
<tr>
soundManager.debugMode = false;
soundManager.allowPolling = true;
soundManager.useHTML5Audio = true;
- soundManager.preferFlash = true;
+ soundManager.preferFlash = false;
//initializing the visualizers to be passed to the player
{% block graphers %}
{% include "telemeta/inc/dublincore.html" %}
{% endwith %}
{% endblock %}
+
+ {% block dublincore %}
+ <a href="{% url "telemeta-item-detail" item.public_id %}" style="float:left;margin-top:0.5em;margin-bottom:1em">
+ <button type="button" class="btn btn-default">
+ <span class="glyphicon glyphicon-arrow-left"></span> {% trans "Normal View" %}
+ </button>
+ </a>
+ {% endblock dublincore %}
+
{% else %}
<p>{% trans "No such item" %}</p>
{% endif %}
{% block delete %}
-<a class="component_icon button icon_previous" style="float:left;margin-top:0.5em;margin-bottom:1em" href="{% url "telemeta-item-detail" item.public_id %}">{% trans "Normal View" %}</a>
+
{% if user.is_authenticated and perms.telemeta.delete_mediaitem %}
- <a href="#" onclick="if(confirm(gettrans('delete the item permanently?'))){window.location.href='{% url "telemeta-item-delete" item.public_id %}';};return false;"
- class="component_icon button icon_delete" style="float:right;margin-top:0.5em;margin-bottom:1em">{% trans "Delete" %}</a>
+ <a href="#" onclick="if(confirm(gettrans('delete the item permanently?'))){window.location.href='{% url "telemeta-item-delete" item.public_id %}';};return false;"
+ style="float:right;margin-top:0.5em;margin-bottom:1em">
+ <button type="button" class="btn btn-default">
+ <span class="glyphicon glyphicon-trash"></span> {% trans "Delete" %}
+ </button>
+ </a>
{% endif %}
{% endblock %}
{% block delete %}
{% if user.is_authenticated and perms.telemeta.delete_mediaresource %}
-
<a href="#" onclick="if(confirm(gettrans('delete the item permanently?'))){window.location.href='{% url "telemeta-resource-delete" type resource.public_id %}';};return false;" style="float:right;margin-top:0.5em;margin-bottom:1em">
<button type="button" class="btn btn-default">
<span class="glyphicon glyphicon-trash"></span> {% trans "Delete" %}
</button>
</a>
-
{% endif %}
{% endblock delete %}
{% block delete %}
{% if user.is_authenticated and perms.telemeta.delete_mediaresource %}
- <a href="#" onclick="if(confirm(gettrans('delete the item permanently?'))){window.location.href='{% url "telemeta-resource-delete" type resource.public_id %}';};return false;" style="float:right;margin-top:0.5em;margin-bottom:1em">
+ <a href="#" onclick="if(confirm(gettrans('delete the resource permanently?'))){window.location.href='{% url "telemeta-resource-delete" type resource.public_id %}';};return false;" style="float:right;margin-top:0.5em;margin-bottom:1em">
<button type="button" class="btn btn-default">
<span class="glyphicon glyphicon-trash"></span> {% trans "Delete" %}
</button>
if suffixes:
return collection.code + '_' + str(max(suffixes)+1)
else:
- return collection.code + '_'
+ return collection.code + '_001'
def get_room(content_type=None, id=None, name=None):