From a9bf67278329a8aa38cd82f760b8c570d4ee77ab Mon Sep 17 00:00:00 2001 From: Cameron Sutter Date: Thu, 30 Apr 2015 14:52:08 -0600 Subject: [PATCH] student download all the things closes CNVS-20007 test plan: - navigate to a student's profile settings page > there should be a button on the right side bar that says 'Download Submissions' - click that link > it should take you to /dashboard/data_exports > the page should say 'Download Submissions' with a friendly message underneath it > you should be able to click 'Create Export' and download all your submissions Change-Id: Ifefeaffbabd1ddd211ead43f95c81b26b4001fef Reviewed-on: https://gerrit.instructure.com/53233 Reviewed-by: Ryan Taylor Tested-by: Jenkins QA-Review: Amber Taniuchi Product-Review: Hilary Scharton --- app/views/content_exports/index.html.erb | 20 ++++++++++++++++---- app/views/profile/profile.html.erb | 1 + 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/app/views/content_exports/index.html.erb b/app/views/content_exports/index.html.erb index 7c4e9bb485d..c8c348199b2 100644 --- a/app/views/content_exports/index.html.erb +++ b/app/views/content_exports/index.html.erb @@ -1,15 +1,25 @@ -<% title = @context.is_a?(Course) ? t('content_exports', "Content Exports") : t('user_data_exports', "User Data Exports") %> +<% + title = @context.is_a?(Course) ? t('content_exports', "Content Exports") : t('user_data_exports', "Download Submissions") + friendly_message = @context.is_a?(Course) ? nil : t("Creating a Submission Export will allow you to download a zip file of all your assignment submissions in all of your present and past courses. This could be a big file, so it may take a while. You can navigate away from the page and come back later.") +%> + <% add_crumb title %> <% content_for :page_title do %><%= title %><% end %>

<%= title %>

- + + <% if friendly_message %> +

<%= friendly_message %>

+ <% end %> +
- + +
+
<% @exports.each do |export| %> <% unless export.running? %> @@ -32,6 +42,8 @@ <% end %>
+
+
<% if @context.is_a?(Course) %> <%= form_tag course_content_exports_path(@context.id), :id => "exporter_form" do %> @@ -67,7 +79,7 @@ <% end %> <% end %>
- +
<% if @context.is_a?(Course) %> diff --git a/app/views/profile/profile.html.erb b/app/views/profile/profile.html.erb index feaf9680646..81da04e303d 100644 --- a/app/views/profile/profile.html.erb +++ b/app/views/profile/profile.html.erb @@ -15,6 +15,7 @@ <% if mfa_settings == :optional && @user.otp_secret_key %> <%= image_tag "unlock.png" %> <%= t('links.disable_mfa', "Disable Multi-Factor Authentication") %> <% end %> + <%= t("Download Submissions") %> <% if show_request_delete_account %> <%= t('Delete My Account') %> <% end %>