denny/ShinyCMS-ruby

View on GitHub
plugins/ShinyCMS/app/views/shinycms/comments/comment/_posted_by.html.erb

Summary

Maintainability
Test Coverage
Posted by
<% if comment.authenticated_author? %>
    <%= user_profile_link( comment.author ) %>
<% elsif comment.pseudonymous_author? %>
  <% if comment.author.url.present? %>
    <%= link_to comment.author.name, comment.author.url %>
  <% else %>
    <%= comment.author.name %>
  <% end %>
<% elsif comment.anonymous_author? %>
  <%= t( 'shinycms.discussions.anonymous' ) %>
<% end %>
at <%= display_time_on_date( comment.posted_at ) %>