<div class="rs-margin-lr <% unless use_new_styles? %>rs-margin-top<% end %>">
  <% if @context.is_a?(Course) %>
    <% if can_do(@context, @current_user, :read_roster) %>
      <%= sidebar_button context_url(@context, :context_groups_url),
                        t('links.view_user_groups', 'View User Groups'),
                        'group' %>
    <% end %>

    <% if can_do(@context, @current_user, :manage_students && @context.enable_user_notes) %>
      <%= sidebar_button course_user_notes_path(@context),
                        t('links.view_faculty_journals', 'View Faculty Journals') %>
    <% end %>

    <% if can_do(@context, @current_user, :manage_admin_users, :manage_students, :read_prior_roster) %>
      <%= sidebar_button course_prior_users_path(@context),
                        t('links.view_prior_enrollments', 'View Prior Enrollments'),
                        'clock' %>
    <% end %>
  <% end %>

  <% if can_do(@context, @current_user, :read_roster) %>
    <%= sidebar_button context_url(@context, :context_user_services_url),
                      t('links.view_services', 'View Registered Services'),
                      'link' %>
  <% end %>
</div>


<div class="rs-margin-lr <% unless use_new_styles? %>rs-margin-top<% end %>">
  <% if @context.is_a?(Course) %>
    <% if can_do(@context, @current_user, :read_roster) %>
      <%= sidebar_button context_url(@context, :context_groups_url),
                        t('links.view_user_groups', 'View User Groups'),
                        'group' %>
    <% end %>

    <% if can_do(@context, @current_user, :manage_students && @context.enable_user_notes) %>
      <%= sidebar_button course_user_notes_path(@context),
                        t('links.view_faculty_journals', 'View Faculty Journals') %>
    <% end %>

    <% if can_do(@context, @current_user, :manage_admin_users, :manage_students, :read_prior_roster) %>
      <%= sidebar_button course_prior_users_path(@context),
                        t('links.view_prior_enrollments', 'View Prior Enrollments'),
                        'clock' %>
    <% end %>
  <% end %>

  <% if can_do(@context, @current_user, :read_roster) %>
    <%= sidebar_button context_url(@context, :context_user_services_url),
                      t('links.view_services', 'View Registered Services'),
                      'link' %>
  <% end %>

  <% if @context.user_is_instructor?(@current_user) && can_do(@context, @current_user, :read_reports) %>
    <%= sidebar_button user_course_teacher_activity_url(@current_user, @context),
                       t('Student Interactions Report'),
                       'user' %>
  <% end %>

</div>


Add Student Interaction Report in Courses > People
Add Student Interaction Report in Courses > People

Closes CNVS-21637

Teachers accessing the Courses > People page now
have a corresponding button to the Student
Interaction Report.

Test Plan:
- As a teacher, navigate to Courses, and then
  select a course. Select 'People'

- There should now be a button for Student
  Interactions Report.

- Selecting the button should take you to
  the corresponding student interaction report.

- As a student, navigate to the Courses >
  People page. The button for Student Interaction
  Report should not be visible.

Change-Id: I13bf86324f679ac1a9f54e5b0082da54717c17f1
Reviewed-on: https://gerrit.instructure.com/58724
Reviewed-by: Jennifer Stern <7e594e5cba47371ac9ee694a84b9d94f9f6ec815@instructure.com>
Product-Review: Jennifer Stern <7e594e5cba47371ac9ee694a84b9d94f9f6ec815@instructure.com>
QA-Review: Jeremy Putnam <b030d6d6f199f844ec424882be473c2ab9adc93b@instructure.com>
Tested-by: Jenkins
