Skip to content

Commit

Permalink
#14794 - user full name instead of username
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanttb committed Oct 24, 2017
1 parent 50725df commit 30a2d36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/views/refinery/blog/posts/_post.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<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 => :long)) %>
</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? %>
<%= "#{t('by', :scope => 'refinery.blog.posts.show')} #{@post.author.full_name}" if @post.author.present? %>
<%#= content_tag(:div, "#{t('by', :scope => 'refinery.blog.posts.show')} #{@post.author.full_name}", :class => "blog_author") if @post.author.present? %>
<% if @post.source_url.present? %>
<div class="blog_source">
<%= "#{t('source', :scope => 'refinery.blog.posts.show')}: " %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/refinery/blog/shared/_post.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<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 => :long)) %>
</time>
<%= "#{t('by', :scope => 'refinery.blog.posts.show')} #{post.author.username}" if post.author.present? %>
<%= "#{t('by', :scope => 'refinery.blog.posts.show')} #{post.author.full_name}" if post.author.present? %>
<% if (categories = post.categories).any? %>
<aside class="filed_in">
<%= t('filed_in', :scope => 'refinery.blog.posts.show') %>
Expand Down

0 comments on commit 30a2d36

Please sign in to comment.