noesya/osuny

View on GitHub
app/views/admin/education/programs/tree.html.erb

Summary

Maintainability
Test Coverage
<% content_for :title, t('.title') %>

<ul class="list-unstyled treeview js-treeview <%= 'treeview--sortable js-treeview-sortable js-treeview-sortable-container' if can?(:reorder, @programs.first) %>" data-id="" data-sort-url="<%= reorder_admin_education_programs_path %>">
  <%= render 'treebranch', programs: @programs %>
</ul>

<% content_for :action_bar_left do %>
  <%= link_to t('admin.education.programs.view_as_list'),
              admin_education_programs_path,
              class: button_classes %>
<% end %>

<% content_for :action_bar_right do %>
  <%= create_link Education::Program %>
<% end %>