ref: master
plugins/comment_classification/views/comment_classification_plugin_labels/index.html.erb
<%= _("Manage comments labels") %>
<% if @labels.empty? %> <%= _('(no label registered yet)') %> <% else %><% end %> <%= button_bar do %> <%= button(:add, _('Add a new label'), :action => 'create')%> <%= button :back, c_('Back to admin panel'), :controller => 'admin_panel' %> <% end %>
<% @labels.each do |label| %> <%= _('Label') %> <%= _('Color') %> <%= _('Enabled') %> <%= _('Actions') %> <% end %> <%= label.name %> <%= label.color %> <%= label.enabled %> <%= button_without_text :edit, c_('Edit'), {:action => 'edit', :id => label} %> <%= button_without_text :delete, c_('Remove'), {action: 'destroy', id: label}, data: {confirm: _('Are you sure you want to remove this label?')} %>