From: Jef van Schendel
Date: Fri, 8 Feb 2013 21:54:16 +0000 (+0100)
Subject: Fix "Add to collection" button: remove icon, add text, add to collections.html
X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=44004c17e341019cf05050692a7058f72e377b45;p=mediagoblin.git
Fix "Add to collection" button: remove icon, add text, add to collections.html
---
diff --git a/mediagoblin/static/images/icon_collect.png b/mediagoblin/static/images/icon_collect.png
deleted file mode 100644
index 2911af24..00000000
Binary files a/mediagoblin/static/images/icon_collect.png and /dev/null differ
diff --git a/mediagoblin/templates/mediagoblin/user_pages/media.html b/mediagoblin/templates/mediagoblin/user_pages/media.html
index 1cc2a763..7550c6c1 100644
--- a/mediagoblin/templates/mediagoblin/user_pages/media.html
+++ b/mediagoblin/templates/mediagoblin/user_pages/media.html
@@ -149,9 +149,7 @@
{% include "mediagoblin/utils/tags.html" %}
{% endif %}
- {% if media.collections %}
- {% include "mediagoblin/utils/collections.html" %}
- {% endif %}
+ {% include "mediagoblin/utils/collections.html" %}
{% include "mediagoblin/utils/license.html" %}
@@ -183,19 +181,6 @@
{% endif %}
- {% if request.user %}
-
-
-
-
-
- {% endif %}
-
{% template_hook("media_sideinfo") %}
{% block mediagoblin_sidebar %}
diff --git a/mediagoblin/templates/mediagoblin/utils/collections.html b/mediagoblin/templates/mediagoblin/utils/collections.html
index 0afd9ed8..d9e4c8e4 100644
--- a/mediagoblin/templates/mediagoblin/utils/collections.html
+++ b/mediagoblin/templates/mediagoblin/utils/collections.html
@@ -17,20 +17,33 @@
#}
{% block collections_content -%}
- {% trans collected=media.collected %}Collected in{% endtrans %}
-
- {% for collection in media.collections %}
- {% if loop.last %}
- {# the 'and' should only appear if there is more than one collections #}
- {% if media.collections|length > 1 %}
- ·
+ {% if media.collections %}
+
{% trans collected=media.collected %}Collected in{% endtrans %}
+
+ {% for collection in media.collections %}
+ {% if loop.last %}
+ {# the 'and' should only appear if there is more than one collections #}
+ {% if media.collections|length > 1 %}
+ ·
+ {% endif %}
+ {{ collection['title'] }}
+ {% elif loop.revindex == 2 %}
+ {{ collection['title'] }}
+ {% else %}
+ {{ collection['title'] }} ·
{% endif %}
- {{ collection['title'] }}
- {% elif loop.revindex == 2 %}
- {{ collection['title'] }}
- {% else %}
- {{ collection['title'] }} ·
- {% endif %}
- {% endfor %}
-
+ {% endfor %}
+
+ {% endif %}
+ {% if request.user %}
+
+
+ Add to a collection
+
+
+ {% endif %}
{% endblock %}