education/classroom

View on GitHub
app/views/organizations/_side_menu.html.erb

Summary

Maintainability
Test Coverage
<% organization = @organization || current_organization %>

<nav class="menu">
  <span class="menu-heading"><%= t('views.organizations.classroom_settings') %></span>

  <%= link_to t('views.organizations.classroom_profile'), edit_organization_path(organization),
              class: "menu-item #{'selected' if current_page?(edit_organization_path(organization))}" %>

  <% if team_management_enabled? %>
    <%= link_to t('views.organizations.team_management'), settings_teams_organization_path(organization),
                class: "menu-item #{'selected' if current_page?(settings_teams_organization_path(organization))}" %>
  <% end %>

  <%= link_to t('views.organizations.classroom_admins'),
              settings_invitations_organization_path(organization),
              class: "menu-item #{'selected' if current_page?(settings_invitations_organization_path(organization))}" %>

  <%= link_to 'Roster management', roster_path(organization),
              class: "menu-item #{'selected' if current_page?(roster_path(organization))}" %>
</nav>