From 6a1bddc9bca4af0a69df3047f42e952d5d351c96 Mon Sep 17 00:00:00 2001 From: Brian Palmer Date: Thu, 23 Jun 2011 14:16:37 -0600 Subject: [PATCH] enable "download zip" link for students, closes #4305 Change-Id: Ifd22d7d79e21d0cc8a4d1326b062058f06f6a0dc Reviewed-on: https://gerrit.instructure.com/4357 Tested-by: Hudson Reviewed-by: Brian Whitmer --- app/stylesheets/full_files.sass | 10 ++++++ app/views/files/full_index.html.erb | 4 +-- lib/content_zipper.rb | 7 +++- public/javascripts/full_files.js | 5 +-- spec/factories/attachment_factory.rb | 8 +++-- spec/lib/content_zipper_spec.rb | 51 ++++++++++++++++++++++++++++ spec/selenium/files_sel.rb | 13 +++++++ 7 files changed, 90 insertions(+), 8 deletions(-) create mode 100644 spec/lib/content_zipper_spec.rb create mode 100644 spec/selenium/files_sel.rb diff --git a/app/stylesheets/full_files.sass b/app/stylesheets/full_files.sass index 9c9437ae39f..dc8311e1308 100644 --- a/app/stylesheets/full_files.sass +++ b/app/stylesheets/full_files.sass @@ -94,6 +94,16 @@ ul.instTree li.leaf .content_panel.addable_content_panel .links .sub_links display: block +.content_panel.downloadable_content_panel .links .sub_links + display: block + float: right + > span + visibility: hidden + > a + visibility: hidden + > .download_zip + visibility: visible + .content_panel #rename_entry_field font-size: 1.2em diff --git a/app/views/files/full_index.html.erb b/app/views/files/full_index.html.erb index 3c80581dcc2..4ee965e9049 100644 --- a/app/views/files/full_index.html.erb +++ b/app/views/files/full_index.html.erb @@ -90,13 +90,13 @@