public
Description: This contains various plugins for Feather
Clone URL: git://github.com/eldiablo/feather-plugins.git
Click here to lend your support to: feather-plugins and make a donation at www.pledgie.com !
only add atom subtitle element if tag_line is set
granth (author)
Sun May 18 22:20:28 -0700 2008
commit  9c8fd78e29cbb90e6391d2453cd4039bd0cd500c
tree    4e93ea9426111ccf0cdbbd1cd715585a51476096
parent  d12ccc1144d1886cc9e203fbb58121a383dec57c
...
31
32
33
34
 
35
36
37
...
89
90
91
92
 
93
94
95
...
31
32
33
 
34
35
36
37
...
89
90
91
 
92
93
94
95
0
@@ -31,7 +31,7 @@ class Feeds < Application
0
       content_type :atom
0
       xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
0
         xml.title Configuration.current.title
0
- xml.subtitle Configuration.current.tag_line
0
+ xml.subtitle Configuration.current.tag_line if Configuration.current.tag_line
0
         xml.link :href => "http://#{request.env['HTTP_HOST']}#{request.uri}", :rel => "self"
0
         xml.link :href => "http://#{request.env['HTTP_HOST']}"
0
         # The parentheses are needed, otherwise one gets a pretty weird error complaining about String not having strftime
0
@@ -89,7 +89,7 @@ class Feeds < Application
0
     when "atom"
0
       xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
0
         xml.title Configuration.current.title
0
- xml.subtitle Configuration.current.tag_line
0
+ xml.subtitle Configuration.current.tag_line if Configuration.current.tag_line
0
         xml.link :href => "http://#{request.env['HTTP_HOST']}#{request.uri}", :rel => "self"
0
         xml.link :href => "http://#{request.env['HTTP_HOST']}"
0
         # The parentheses are needed, otherwise one gets a pretty weird error complaining about String not having strftime

Comments

    No one has commented yet.