<%= link_to l(:label_helpdesk_new_canned_response), {:controller => "canned_responses", :action => 'new'}, :class => 'icon icon-add' %>

<%= l(:label_helpdesk_canned_response_plural) %>

<% if @canned_responses.any? %> <% @canned_responses.each do |canned_response| %> <% end %>
<%= l(:field_name) %> <%= l(:field_content) %> <%= l(:field_is_public) %> <%= l(:field_author) %> <%= l(:field_project) %>
<%= canned_response.name %> <%= canned_response.content.gsub(/$/, ' ').truncate(250) %> <%= checked_image canned_response.is_public? %> <%= canned_response.user.try(:name) %> <%= canned_response.project ? canned_response.project.name : l(:field_is_for_all) %> <%= link_to l(:button_edit), edit_canned_response_path(canned_response), :class => 'icon icon-edit' %> <%= delete_link canned_response_path(canned_response, :project_id => canned_response.project) %>
<% if @canned_response_pages %>

<%= pagination_links_full @canned_response_pages %>

<% end %> <% else %>

<%= l(:label_no_data) %>

<% end %>