denny/ShinyCMS-ruby

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

Summary

Maintainability
Test Coverage
    <% if comment.locked? %>
    <span class="locked"><%= t( 'shinycms.comments.locked' ) %></span>
    <% else %>
    <a onclick="toggleHidden('reply_form_<%= comment.id %>')"><%= t( 'shinycms.comments.reply' ) %></a>

    <% if feature_enabled?( :comment_votes ) %>
      <span class="float-right smaller">
      &nbsp;&nbsp;&nbsp;
      <% if feature_enabled?( :comment_downvotes ) %>
        <%= render partial: 'votable/vote_up_down', locals: { resource: comment } %>
      <% else %>
        <%= render partial: 'votable/vote_up', locals: { resource: comment } %>
      <% end %>
      </span>
    <% end %>
    <% end %>

    <%= render partial: 'comments/comment/moderation_links', locals: { comment: comment } %>