<% # Copyright (C) 2011 - present Instructure, Inc. # # This file is part of Canvas. # # Canvas is free software: you can redistribute it and/or modify it under # the terms of the GNU Affero General Public License as published by the Free # Software Foundation, version 3 of the License. # # Canvas is distributed in the hope that it will be useful, but WITHOUT ANY # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR # A PARTICULAR PURPOSE. See the GNU Affero General Public License for more # details. # # You should have received a copy of the GNU Affero General Public License along # with this program. If not, see . %> <% provide :page_title do %><%= join_title t(:page_title, "Collaboration"), @context.name %><% end %> <% js_bundle :collaborations %> <% provide :right_side do %>

<%= t 'collaborations.explanation', "Free online web tools are an excellent place for students to work on group projects or papers, take shared notes, etc. Teachers or students can set up group collaborations." %>

<% end %> <% if @domain_root_account.feature_enabled?(:instui_nav) %>

<%= t 'titles.collaborations', "Collaborations" %>

<% if can_do(@context, @current_user, :create_collaborations) && !@hide_create_ui %> <%= t('links.collaboration', 'Collaboration') %> <% end %>
<% else %>

<%= t 'titles.current', "Current Collaborations" %>

<% if can_do(@context, @current_user, :create_collaborations) && !@hide_create_ui %> <%= t('links.new', 'Start a new collaboration') %> <% end %>
<% end %>
<% if can_do(@context, @current_user, :manage_content, *RoleOverride::GRANULAR_MANAGE_COURSE_CONTENT_PERMISSIONS) %>

<%= mt :description_teacher, "**What do we mean by collaborations?** We're talking about web-based tools that students are already familiar with. Students can use online web tools to work collaboratively on tasks like group papers or note-taking. This page gives teachers and students an easy place to keep track of those collaborations, and also to set them up without having to swap emails." %>

<% else %>

<%= mt :description_student, "**What do we mean by collaborations?** We're talking about web-based tools for working together on a shared document. You can use online web tools to work collaboratively on tasks like group papers or note-taking. This page is an easy place to keep track of those collaborations, and also to set them up without having to swap emails." %>

<% end %> <% if can_do(@context, @current_user, :create_collaborations) && !@hide_create_ui %>

<%= t :how_to_start_a_new_collaboration, 'To find out more about a particular type of collaboration, click "Start a New Collaboration" and then choose that type in the dropdown list.' %>

<% end %>
<%= @collaborations.map {|c| collaboration(c, @current_user, @user_has_google_drive)}.join.html_safe %>
<% if can_do(@context, @current_user, :create_collaborations) && !@hide_create_ui %> <%= render :partial => 'collaborations/forms' %> <% end %>