<%= link_to post.user, post.user, class: ("admin" if post.user.admin?) %>
<%= image_tag post.user.profile.avatar.url %>
<% if post.user.team %>
<%= namelink post.user.team %>
<% end %>
- Posts
- <%= post.user.posts.count %>
- Location
- <%= post.user.from %>
- Joined
- <%= longdate post.user.created_at %>
<%= post.text_parsed.html_safe %>
<%= post.user.profile.signature_parsed.html_safe if post.user.profile.signature_parsed %>
<%= link_to "Send PM", { controller: "messages", action: "new", id: "User", id2: post.user }, class: 'button tiny' %>
<% if post.topic.posts.build.can_create? cuser %>
<%= link_to_function 'Quote Reply', "QuoteText(#{post.id}); $('#reply').fadeIn('slow')", class: 'button tiny' %>
<% end %>
<% if post.can_update? cuser %>
<%= link_to 'Edit', edit_post_path(post), class: 'button tiny' %>
<% end %>
<% if post.can_destroy? cuser %>
<%= link_to 'Delete', post, confirm: 'Are you sure?', method: :delete, class: 'button tiny' %>
<% end %>