diff options
author | Jeff Shumate <jeff@catapulsion.net> | 2012-01-25 22:27:46 -0700 |
---|---|---|
committer | Jeff Shumate <jeff@catapulsion.net> | 2012-01-25 22:27:46 -0700 |
commit | e274bb1757aa3c27645c181bae6164131a7a35dd (patch) | |
tree | 2c896df9bd0a66aa288bfdf8f30fe767516ec0bc /app/views/refinery/blog/posts/_post.html.erb | |
parent | d1ad82d42eceb53b203716e1c37f4fbb326a2ee8 (diff) | |
download | refinerycms-blog-e274bb1757aa3c27645c181bae6164131a7a35dd.tar.gz refinerycms-blog-e274bb1757aa3c27645c181bae6164131a7a35dd.tar.bz2 refinerycms-blog-e274bb1757aa3c27645c181bae6164131a7a35dd.zip |
add source url for post
Diffstat (limited to 'app/views/refinery/blog/posts/_post.html.erb')
-rw-r--r-- | app/views/refinery/blog/posts/_post.html.erb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/views/refinery/blog/posts/_post.html.erb b/app/views/refinery/blog/posts/_post.html.erb index 020ba41..77e43ff 100644 --- a/app/views/refinery/blog/posts/_post.html.erb +++ b/app/views/refinery/blog/posts/_post.html.erb @@ -10,7 +10,13 @@ <time datetime="<%=l @post.published_at.to_date, :format => :default %>" class='posted_at'> <%= t('created_at', :scope => 'refinery.blog.shared.posts', :when => l(@post.published_at.to_date, :format => :short)) %> </time> - <%= "#{t('by', :scope => 'refinery.blog.posts.show')} #{@post.author.username}" if @post.author.present? %>. + <%= content_tag(:div, "#{t('by', :scope => 'refinery.blog.posts.show')} #{@post.author.username}", :class => "blog_author") if @post.author.present? %> + <% if @post.source_url.present? %> + <div class='blog_source'> + <%= "#{t('source', :scope => 'refinery.blog.posts.show')}: " %> + <%= link_to (@post.source_url_title.blank? ? @post.source_url : @post.source_url_title), @post.source_url %> + </div> + <% end %> <% if (categories = @post.categories).any? %> <aside class='filed_in'> <%= t('filed_in', :scope => 'refinery.blog.posts.show') %> |