[Jifty-commit] r6180 - in wifty/trunk: lib/Wifty/View

Jifty commits jifty-commit at lists.jifty.org
Wed Dec 24 19:21:24 EST 2008


Author: trs
Date: Wed Dec 24 19:21:24 2008
New Revision: 6180

Modified:
   wifty/trunk/   (props changed)
   wifty/trunk/lib/Wifty/View/Page.pm

Log:
 r42711 at zot:  tom | 2008-12-24 19:21:12 -0500
 Use at least a little bit of text to differentiate the feed types


Modified: wifty/trunk/lib/Wifty/View/Page.pm
==============================================================================
--- wifty/trunk/lib/Wifty/View/Page.pm	(original)
+++ wifty/trunk/lib/Wifty/View/Page.pm	Wed Dec 24 19:21:24 2008
@@ -72,12 +72,14 @@
     my $self = shift;
     my %link = @_;
     if ( ($link{rel}||'') eq 'alternate' && ($link{type}||'') eq 'application/atom+xml' ) {
+        my ($type) = $link{'href'} =~ m{/(\w+)$};
         a { attr { href => $link{'href'} };
             img { attr {
                 src => '/static/images/feed-icon-14x14.png',
                 width => 14, heigth => 14,
                 title => $link{'title'}
-            } }
+            } };
+            outs(" " . ucfirst $type);
         }
     }
     return '';


More information about the Jifty-commit mailing list