<%= @context.is_a?(Account) ? t('account_groups', 'Account Groups') : t('course_groups', 'Course Groups') %>
<%= t 'group_explanation', <<~TEXT
Groups are a good place to collaborate on projects or to figure out schedules for study sessions
and the like. Every group gets a calendar, a wiki, discussions, and a little bit of space to store
files. Groups can collaborate on documents, or even schedule web conferences.
It's really like a mini-course where you can work with a smaller number of students on a
more focused project.
TEXT
%>
<%= render :partial => 'group', :collection => @user_groups, :locals => {:in_group => true} %>
<%= render :partial => 'group', :object => nil, :locals => {:in_group => true} %>
<% if @available_groups && !@available_groups.empty? %>
<%= t 'headings.available_groups', "Available Groups" %>
<%= render :partial => 'group', :collection => @available_groups, :locals => {:in_categories => @user_groups.map{ |g| g.group_category }.compact.uniq, :in_group => false} %>
<% end %>
<%= form_for :group, :url => context_url(@context, :context_groups_url), :html => {:id => "add_group_form", :style => "display: none;"} do |f| %>
<%= t 'headings.new_group', 'Make a New Group' %>
<%= image_tag "warning.png", :alt => '' %>
<%= t :student_group_warning, <<~TEXT
If your teacher has talked about putting you into
groups as part of an assignment, this is not the way to make that happen.
Groups you organize yourself can't be used for grading... you can still form
your own groups, but you won't be able to turn in an electric copy of any
assignments unless your teacher builds the groups for you.
TEXT
%>