Noosfero/noosfero

View on GitHub
plugins/comment_classification/views/comment/comment_extra.html.erb

Summary

Maintainability
Test Coverage
<div class='comment-classification-options'>

  <% unless comment.label.nil? %>
          <span class="<%= "label-name comment-classification-label-#{comment.label.color}" %>">
      <%= comment.label.name %>
    </span>
  <% end %>

  <% statuses = CommentClassificationPlugin::Status.enabled %>
  <% if profile.organization? && user && user.has_permission?(:moderate_comments, profile) && !statuses.empty? %>
    <span class='comment-classification-status'>
      <%= link_to(_('Status'), :profile => profile.identifier, :controller => :comment_classification_plugin_myprofile, :action => :add_status, :id => comment.id)
    %>
    </span>
  <% end %>

</div>