Changeset 1640

Show
Ignore:
Timestamp:
02/20/08 21:42:25 (3 months ago)
Author:
neuro
Message:

Fix brocken atom link in the themes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/themes/dirtylicious/views/articles/_article.html.erb

    r1578 r1640  
    2828                <% if controller.controller_name == 'articles' and controller.action_name == 'show' %> 
    2929                        <%= content_tag(:span, tag_links(article) << ' | ', :class => 'tags') unless article.tags.empty? %> 
    30                         <a href="<%= url_for :controller => 'xml', :action=>'feed', :type=>'article', :format => 'atom', :id => article %>">atom</a> 
     30                        <a href="<%= @auto_discovery_url_atom %>">atom</a> 
    3131                <% end %> 
    3232        </p> 
  • trunk/themes/scribbish/views/articles/_article.html.erb

    r1552 r1640  
    3131      <%= comments_link(article) << ',' if article.allow_comments? %> 
    3232      <a href="<%= article.permalink_url %>" rel="bookmark">permalink</a>, 
    33       <a href="<%= url_for :controller => 'xml', :action=>'feed', :type=>'article', :format => 'rss',  :id => article %>">rss</a>, 
    34       <a href="<%= url_for :controller => 'xml', :action=>'feed', :type=>'article', :format => 'atom', :id => article %>">atom</a> 
     33      <a href="<%= @auto_discovery_url_rss %>">rss</a>, 
     34      <a href="<%= @auto_discovery_url_atom %>">atom</a> 
    3535    </li> 
    3636  </ul> 
  • trunk/themes/standard_issue/views/articles/_article.html.erb

    r1578 r1640  
    1616        <div class="meta"> 
    1717                <% if controller.controller_name == "articles" and controller.action_name == 'show' %> 
    18                 <p><small>This entry was posted on <abbr class="published" title="<%= article.published_at.xmlschema %>"><%= js_distance_of_time_in_words_to_now article.published_at %></abbr> <%= content_tag(:span, "and " + category_links(@article), :class => 'categories') unless @article.categories.empty? %>. You can follow any any response to this entry through the <a href="<%= url_for :controller => 'xml', :action=>'feed', :type=>'article', :format => 'atom', :id => @article %>">Atom feed</a>. <%= "You can leave a " + link_to_permalink(article, 'comments', 'comments') << ',' if article.allow_comments? %> <%= "Or a " + link_to_permalink(article, 'trackback', 'trackbacks')  << ' from your own site' if article.allow_pings? %>.</small><br /> 
     18                <p><small>This entry was posted on <abbr class="published" title="<%= article.published_at.xmlschema %>"><%= js_distance_of_time_in_words_to_now article.published_at %></abbr> <%= content_tag(:span, "and " + category_links(@article), :class => 'categories') unless @article.categories.empty? %>. You can follow any any response to this entry through the <a href="<%= @auto_discovery_url_atom %>">Atom feed</a>. <%= "You can leave a " + link_to_permalink(article, 'comments', 'comments') << ',' if article.allow_comments? %> <%= "Or a " + link_to_permalink(article, 'trackback', 'trackbacks')  << ' from your own site' if article.allow_pings? %>.</small><br /> 
    1919                        <small><%= tag_links(@article) unless @article.tags.empty? %></small></p> 
    2020                <% else %>