%
# 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 .
%>
<%
js_bundle :eportfolio
%>
<% provide :page_title do %>
<%= t(:page_title, "My ePortfolios") %>
<% end %>
<%= t('headers.eportfolios', "ePortfolios") %>
<% provide :right_side do %>
<% if Eportfolio.new.grants_right?(@current_user, :create) %>
<% end %>
<% end %>
<% if @portfolios.empty? %>
<%= t('headers.what', "What's an ePortfolio?") %>
<%= mt('what.details1', <<-DETAILS)
ePortfolios are a place where you can display and discuss the significant
submissions and experiences that are happening during your learning
process. You can use an ePortfolio to:
* Display the papers you're proud of for more than just your instructor to see
* Talk about all the thought and work that went into your class submissions
* Gather an overview of your educational experience as a whole
* Share your work with friends, future employers, etc.
ePortfolios can be public for everyone to see, or private so only those you
allow can see, and you can change that setting at any time.
Ready to get started? Click the button.
DETAILS
%>
<% else %>
<%= t('headers.my_eportfolios', "My ePortfolios") %>
<%= render :partial => "eportfolio", :collection => @portfolios %>
<% end %>
<%= form_for Eportfolio.new, :url => eportfolios_path, :html => {:style => "display: none;", :id => "add_eportfolio_form"} do |f| %>
<%= t('headers.add_eportfolio', "Make an ePortfolio") %>
<% end %>