Commit e96af6dfedb2c334e1703dad42ca379132489f44
1 parent
59117175
Exists in
master
and in
28 other branches
Adding RSS feed link besides the blog description.
Showing
2 changed files
with
14 additions
and
1 deletions
Show diff stats
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