From: yomguy Date: Thu, 3 Mar 2011 00:30:21 +0000 (+0100) Subject: make collection player unified X-Git-Tag: 1.1~415 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=37e60270ae00c51dace1fe10aaf60763d2396765;p=telemeta.git make collection player unified --- diff --git a/telemeta/templates/telemeta_default/collection_detail.html b/telemeta/templates/telemeta_default/collection_detail.html index 21703eff..4e0166e3 100644 --- a/telemeta/templates/telemeta_default/collection_detail.html +++ b/telemeta/templates/telemeta_default/collection_detail.html @@ -15,7 +15,10 @@ Dublin Core {% if user.is_authenticated %} - EDIT + {% block tools %} + + EDIT + {% endblock tools %} {% endif %} @@ -45,6 +48,7 @@ {% endif %} + {% block infos %}
{% if collection.items.count %}{{ collection.items.count }} {% ifequal collection.items.count 1 %}item{% else %}items{% endifequal %}{% else %}No item{% endif %}
@@ -159,6 +163,7 @@ {% endwith %} --> + {% endblock infos %} {% endblock %} {% else %} diff --git a/telemeta/templates/telemeta_default/collection_detail_edit.html b/telemeta/templates/telemeta_default/collection_detail_edit.html index f70d98cd..1a8b17e4 100644 --- a/telemeta/templates/telemeta_default/collection_detail_edit.html +++ b/telemeta/templates/telemeta_default/collection_detail_edit.html @@ -1,29 +1,11 @@ -{% extends "telemeta/base.html" %} -{% load telemeta_utils %} -{% load i18n %} +{% extends "telemeta/collection_detail.html" %} -{% block head_title %}{% trans "Collection" %}{{collection|prepend:': '}} - {{ block.super }}{% endblock %} - -{% block stylesheets %} -{{ block.super }} - - - -{% endblock %} -{% block extra_javascript %} -{% endblock %} - -{% if collection %} - -{% block submenu %} -
Dublin Core +{% block tools %} -
{% endblock %} -{% block content %} -

Collection: {{ collection }}

+{% block infos %}
{% csrf_token %} @@ -36,8 +18,4 @@ -{% endblock %} -{% else %} -

No such collection

-{% endif %} - +{% endblock infos%}