This button used to be a css style <a href=...> </a> (note:
No contents for the <a>). Using this approach has various
drawbacks. Most notably:
- Not clickable in text mode browsers
- Possibly getting marked as a hidden (spam) link
- No alt attribute
So replaced with a real <img/>.
I have no idea what to put in the alt attribute.
font-family: 'Lato', sans-serif;
}
-.button_collect {
- background-image: url("../images/icon_collect.png");
- background-repeat: no-repeat;
- background-position:top center;
- height: 30px;
- width: 30px;
- margin: 0px;
- padding: 3px 3px 2px 3px;
- position: relative;
-}
-
.pagination {
text-align: center;
}
<a type="submit" href="{{ request.urlgen('mediagoblin.user_pages.media_collect',
user=media.get_uploader.username,
media=media._id) }}"
- class="button_action button_collect"
+ class="button_action"
title="{% trans %}Add media to collection{% endtrans %}">
+ <img src="{{ request.staticdirect('/images/icon_collect.png') }}"
+ />
</a>
</p>
{% endif %}