From 44004c17e341019cf05050692a7058f72e377b45 Mon Sep 17 00:00:00 2001
From: Jef van Schendel
Date: Fri, 8 Feb 2013 22:54:16 +0100
Subject: [PATCH] Fix "Add to collection" button: remove icon, add text, add to
collections.html
---
mediagoblin/static/images/icon_collect.png | Bin 588 -> 0 bytes
.../mediagoblin/user_pages/media.html | 17 +------
.../mediagoblin/utils/collections.html | 43 ++++++++++++------
3 files changed, 29 insertions(+), 31 deletions(-)
delete mode 100644 mediagoblin/static/images/icon_collect.png
diff --git a/mediagoblin/static/images/icon_collect.png b/mediagoblin/static/images/icon_collect.png
deleted file mode 100644
index 2911af2401d64d623150234805b8ecdedd810e97..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 588
zcmV-S0<-;zP)Px#0%A)?L;wJ)jUzGu000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2iyn|02UkP
z0CDsH00GcRL_t(I%jK0jXcSQthW}L%EF{|5N36`)&34-QAc_bU31Xv#MAS+xgh3G8
zLK56U>`C6_^$cZLv-{5kT4!(fX(p+tSi`;
zlcY9p5p0`7(tZ`ALP9T+{G04AUnONQa)?_DGpeM#L!NX$N+|&|D+M&s9xve|ufUGP
z((VA8XAbOyOP_C%Q6XalN&Zue3MoaGRvnA6S>BV-=}DKuB_>H(q|IBM^=cST$S8)=
zLGNq5fS%YPZZ8R!foYVNhUx{}bxFB9z-HMvfsG*@n!;Z2sbM^uY69$RAU!6tNw6iV
zzl>+IB`9F`kfdE5qkLhS^VT??O?5JWfyRB^`Wme3uPLwj{Y_fmU=I&$R$uPM1-IqR
zr@Te=``j^w)mAJAjf5#L89j3@xE*0wXWYu09`NkcmPK+pcw
aAL9p&ia{)DnPl7m0000
{% 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 %}
--
2.25.1