Skip to content
Browse files

fixed gratar in forum posts for deleted users

  • Loading branch information...
1 parent dcecd84 commit 0bc72ab3ba303cc76bbae630d09c152ac0865d84 @chrismatthieu committed Jun 21, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 vendor/plugins/simple-forum.git/lib/views/posts/_post.html.erb
View
4 vendor/plugins/simple-forum.git/lib/views/posts/_post.html.erb
@@ -20,12 +20,16 @@
<%# img_opts = {:title => @profile.user.login, :alt => @profile.user.login, :class => "50"} %>
<%# link_to avatar_tag(@profile, {:size => "50", :file_column_version => "50" }, img_opts) + ' ' + @profile.user.login, '/' + @profile.user.login %>
+ <% if @profile %>
+
<%= image_tag @profile.gravatar_url, :width => "50" rescue ""%>
<br />
Posted by <%= link_to h(@profile.user.login), "/#{@profile.user.login}" %><br/>
about <%= time_ago_in_words post.created_at %> ago<br/>
+ <% end %>
+
<% if forum_session.can_edit_post? post -%>
<%# link_to "Edit", edit_forum_topic_post_path(@forum, @topic, post) %>
<% end -%>

0 comments on commit 0bc72ab

Please sign in to comment.
Something went wrong with that request. Please try again.