Make "add media to collection" a normal <img/>
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.
This commit is contained in:
parent
42fe4f9965
commit
d2fad5c9c3
@ -219,17 +219,6 @@ footer {
|
||||
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;
|
||||
}
|
||||
|
@ -198,8 +198,10 @@
|
||||
<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 %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user