Switch "atom feed" to "Atom feed" and made the icons and text separate links
authorChristopher Allan Webber <cwebber@dustycloud.org>
Fri, 19 Aug 2011 00:57:24 +0000 (19:57 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Fri, 19 Aug 2011 00:57:24 +0000 (19:57 -0500)
Before doing the latter there was an ugly underline spanning the icon
and the text.

mediagoblin/templates/mediagoblin/listings/tag.html
mediagoblin/templates/mediagoblin/user_pages/gallery.html
mediagoblin/templates/mediagoblin/user_pages/user.html

index d047096be3f66303888c6fccdd748f288430f692..f36f3df48be71265781dc9d1084878129a5ed594 100644 (file)
   </div>
 
   <div class="grid_16">
-    <a href="{{ request.urlgen(
-                  'mediagoblin.listings.tag_atom_feed',
-                  tag=tag_slug) }}"
-                  ><img src="{{ request.staticdirect('/images/icon_feed.png') }}"
-                     class="media_icon" />{%- trans %}atom feed{% endtrans -%}
+    {% set feed_url = request.urlgen(
+               'mediagoblin.listings.tag_atom_feed',
+               tag=tag_slug) %}
+    <a href="{{ feed_url }}">
+      <img src="{{ request.staticdirect('/images/icon_feed.png') }}"
+             class="media_icon" />
     </a>
+    <a href="{{ feed_url }}">{%- trans %}Atom feed{% endtrans -%}</a>
   </div>
 {% endblock %}
index ff935ac4a6d52e09d65ea6205994a773d539a294..6acee9ef4571b45352f4cff9b2763bed4aeb3e38 100644 (file)
       {%- endtrans %}
     </h1>
 
-    </div>
     <div class="container_16 media_gallery">
       {{ object_gallery(request, media_entries, pagination) }}
     </div>
+
     <div class="grid_16">
-      <a href="{{ request.urlgen(
-                     'mediagoblin.user_pages.atom_feed',
-                     user=user.username) }}">
-        {%- trans %}atom feed{% endtrans -%}
+      {% set feed_url = request.urlgen(
+                'mediagoblin.user_pages.atom_feed',
+                user=user.username) %}
+      <a href="{{ feed_url }}">
+        <img src="{{ request.staticdirect('/images/icon_feed.png') }}"
+               class="media_icon" />
       </a>
+      <a href="{{ feed_url }}">{%- trans %}Atom feed{% endtrans -%}</a>
     </div>
   {% else %}
     {# This *should* not occur as the view makes sure we pass in a user. #}
index f189ed94a00c4c6a40ffa98a57d4362c398f57b4..56f6503c225071161045d23158f273a05ed1a6d5 100644 (file)
             View all of {{ username }}'s media{% endtrans -%}
         </a>
       </p>
-      <a href="{{ request.urlgen( 'mediagoblin.user_pages.atom_feed',
-                     user=user.username) }}"
-                     ><img src="{{ request.staticdirect('/images/icon_feed.png') }}"
-                     class="media_icon" />{%- trans %}atom feed{% endtrans -%}
+      {% set feed_url = request.urlgen(
+                'mediagoblin.user_pages.atom_feed',
+                user=user.username) %}
+      <a href="{{ feed_url }}">
+        <img src="{{ request.staticdirect('/images/icon_feed.png') }}"
+               class="media_icon" />
       </a>
+      <a href="{{ feed_url }}">{%- trans %}Atom feed{% endtrans -%}</a>
     </div>
 
     <div class="clear"></div>