<% if !@issue.blank? && @issue.checklists.any? && User.current.allowed_to?(:view_checklists, @project) %>
<%= link_to l("label_checklist_hide_closed"), '#', id: 'switch_link' %>

<%=l(:label_checklist_plural)%>

<%= javascript_tag do %> new Redmine.ChecklistToggle('<%= l("label_checklist_show_closed") %>', '<%= l("label_checklist_hide_closed") %>'); $("#checklist_items").checklist(); <% end %> <% end %>