Commit e96af6dfedb2c334e1703dad42ca379132489f44

Authored by Antonio Terceiro
1 parent 59117175

Adding RSS feed link besides the blog description.

app/views/content_viewer/blog_page.rhtml
1 1 <%= content_tag('em', _('(external feed was not loaded yet)'), :id => 'external-feed-info', :class => 'metadata') if article.blog? && article.external_feed && article.external_feed.enabled && article.external_feed.fetched_at.nil? %>
2 2  
3   -<div><%= article.body %></div>
  3 +<div>
  4 + <%= link_to(image_tag('icons-mime/rss-feed.png'), article.feed.url, :class => 'blog-feed-link') if article.blog? && article.feed %>
  5 + <div class='blog-description'>
  6 + <%= article.body %>
  7 + </div>
  8 +</div>
4 9 <hr class="pre-posts"/>
5 10 <div class="blog-posts">
6 11 <%= (children.compact.empty? ? content_tag('em', _('(no posts)')) : list_posts(user, children)) %>
... ...
public/stylesheets/application.css
... ... @@ -1190,6 +1190,14 @@ a.comment-picture {
1190 1190 font-size: small;
1191 1191 }
1192 1192  
  1193 +.blog-feed-link {
  1194 + float: right;
  1195 +}
  1196 +
  1197 +.blog-description {
  1198 + margin-right: 30px;
  1199 +}
  1200 +
1193 1201  
1194 1202  
1195 1203 a.button, a.button:visited,
... ...