Fix "Add to collection" button: remove icon, add text, add to collections.html
This commit is contained in:
parent
252de2b857
commit
44004c17e3
Binary file not shown.
Before Width: | Height: | Size: 588 B |
@ -149,9 +149,7 @@
|
|||||||
{% include "mediagoblin/utils/tags.html" %}
|
{% include "mediagoblin/utils/tags.html" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if media.collections %}
|
|
||||||
{% include "mediagoblin/utils/collections.html" %}
|
{% include "mediagoblin/utils/collections.html" %}
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% include "mediagoblin/utils/license.html" %}
|
{% include "mediagoblin/utils/license.html" %}
|
||||||
|
|
||||||
@ -183,19 +181,6 @@
|
|||||||
</p>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if request.user %}
|
|
||||||
<p>
|
|
||||||
<a type="submit" href="{{ request.urlgen('mediagoblin.user_pages.media_collect',
|
|
||||||
user=media.get_uploader.username,
|
|
||||||
media=media.id) }}"
|
|
||||||
class="button_action"
|
|
||||||
title="{% trans %}Add media to collection{% endtrans %}">
|
|
||||||
<img src="{{ request.staticdirect('/images/icon_collect.png') }}"
|
|
||||||
/>
|
|
||||||
</a>
|
|
||||||
</p>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% template_hook("media_sideinfo") %}
|
{% template_hook("media_sideinfo") %}
|
||||||
|
|
||||||
{% block mediagoblin_sidebar %}
|
{% block mediagoblin_sidebar %}
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
#}
|
#}
|
||||||
|
|
||||||
{% block collections_content -%}
|
{% block collections_content -%}
|
||||||
|
{% if media.collections %}
|
||||||
<h3>{% trans collected=media.collected %}Collected in{% endtrans %}</h3>
|
<h3>{% trans collected=media.collected %}Collected in{% endtrans %}</h3>
|
||||||
<p>
|
<p>
|
||||||
{% for collection in media.collections %}
|
{% for collection in media.collections %}
|
||||||
@ -33,4 +34,16 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</p>
|
</p>
|
||||||
|
{% endif %}
|
||||||
|
{% if request.user %}
|
||||||
|
<p>
|
||||||
|
<a type="submit" href="{{ request.urlgen('mediagoblin.user_pages.media_collect',
|
||||||
|
user=media.get_uploader.username,
|
||||||
|
media=media.id) }}"
|
||||||
|
class="button_action"
|
||||||
|
title="{% trans %}Add media to collection{% endtrans %}">
|
||||||
|
Add to a collection
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user