From caaf524060896838aba3f7948b669a4f7d167ceb Mon Sep 17 00:00:00 2001 From: Matchu Date: Sun, 3 May 2015 16:01:08 -0500 Subject: [PATCH] download link in left sidebar --- app/assets/javascripts/outfits/edit.js | 2 +- app/assets/stylesheets/outfits/_edit.sass | 3 +-- app/views/outfits/edit.html.haml | 3 ++- config/locales/en-MEEP.yml | 2 ++ config/locales/en.yml | 1 + 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/outfits/edit.js b/app/assets/javascripts/outfits/edit.js index 5b79c1d9..0db5f14e 100644 --- a/app/assets/javascripts/outfits/edit.js +++ b/app/assets/javascripts/outfits/edit.js @@ -497,7 +497,7 @@ View.Outfits = function (wardrobe) { } $('#preview-sidebar-navbar-closet').click(showCloset); - $('#preview-sidebar-navbar-sharing').click(function () { + $('#preview-sidebar-navbar-sharing, #preview-mode-download').click(function () { sharing.startLoading(); wardrobe.outfits.share(); showSharing(); diff --git a/app/assets/stylesheets/outfits/_edit.sass b/app/assets/stylesheets/outfits/_edit.sass index 74163ec3..d11c0dea 100644 --- a/app/assets/stylesheets/outfits/_edit.sass +++ b/app/assets/stylesheets/outfits/_edit.sass @@ -168,8 +168,7 @@ body.outfits-edit button font-size: 75% width: 100% - #toggle-big-picture, #preview-mode-note, #report-broken-image - display: block + #preview-mode a font-size: 75% margin-top: .5em text-align: center diff --git a/app/views/outfits/edit.html.haml b/app/views/outfits/edit.html.haml index 29f0788f..7322e6f4 100644 --- a/app/views/outfits/edit.html.haml +++ b/app/views/outfits/edit.html.haml @@ -36,7 +36,8 @@ %li#preview-mode-image= t '.preview.mode.image.name' = link_to t('.preview.big_picture'), 'javascript:void(0)', id: 'toggle-big-picture' - = link_to t('.preview.mode.image.report_broken'), '#', + = link_to t('.preview.download'), 'javascript:void(0)', id: 'preview-mode-download' + = link_to t('.preview.mode.image.report_broken'), 'javascript:void(0)', :id => 'report-broken-image', :target => '_blank', 'data-base-url' => new_broken_image_report_path #preview-sidebar %nav#preview-sidebar-navbar diff --git a/config/locales/en-MEEP.yml b/config/locales/en-MEEP.yml index 09edc274..25e969bd 100644 --- a/config/locales/en-MEEP.yml +++ b/config/locales/en-MEEP.yml @@ -504,6 +504,8 @@ en-MEEP: preview: requirements: Flash and Javascript (but not Java!) are required to meep outfeets. + big_picture: Big Meepit + download: Downmeep mode: flash: name: Fleesh diff --git a/config/locales/en.yml b/config/locales/en.yml index e36ee2f3..a8e0100b 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -563,6 +563,7 @@ en: requirements: Flash and Javascript (but not Java!) are required to preview outfits. big_picture: Big Picture + download: Download mode: flash: name: Flash