diff --git a/app/views/aspects/index.html.haml b/app/views/aspects/index.html.haml index 5014a8ba3..3d5ee3b2c 100644 --- a/app/views/aspects/index.html.haml +++ b/app/views/aspects/index.html.haml @@ -53,35 +53,6 @@ %br = t(".diaspora_id.content_2") - .section - .title - = image_tag('/images/icons/bookmark.png') - %h5 - = t('bookmarklet.heading') - .content - != t('bookmarklet.explanation', :link => link_to(t('bookmarklet.explanation_link_text'), bookmarklet)) - - .section - .title - = image_tag('/images/icons/cubbies.png') - %h5 - = t('.cubbies.heading') - .content - = t('.cubbies.explanation') - = link_to t('.cubbies.learn_more'), token_path - - .section - .title - = image_tag('/images/icons/monotone_wrench_settings.png') - %h5 - = t('.services.heading') - .content - = t('.services.content') - - AppConfig.configured_services.each do |service| - - unless current_user.services.any?{|x| x.provider == service} - %br= link_to service.titleize, "/auth/#{service}" - - - unless AppConfig[:invites_off] .section .title @@ -95,3 +66,31 @@ .content = render "shared/invitations", :invites => @invites + .section + .title + = image_tag('/images/icons/cubbies.png') + %h5 + = t('.cubbies.heading') + .content + = t('.cubbies.explanation') + = link_to t('.cubbies.learn_more'), token_path + + - unless AppConfig.configured_services.blank? + .section + .title + = image_tag('/images/icons/monotone_wrench_settings.png') + %h5 + = t('.services.heading') + .content + = t('.services.content') + - AppConfig.configured_services.each do |service| + - unless current_user.services.any?{|x| x.provider == service} + %br= link_to service.titleize, "/auth/#{service}" + + .section + .title + = image_tag('/images/icons/bookmark.png') + %h5 + = t('bookmarklet.heading') + .content + != t('bookmarklet.explanation', :link => link_to(t('bookmarklet.explanation_link_text'), bookmarklet)) diff --git a/features/change_email.feature b/features/change_email.feature index d81f4d0e8..14b6d5bbe 100644 --- a/features/change_email.feature +++ b/features/change_email.feature @@ -7,8 +7,8 @@ Feature: Change email And I follow "settings" Then I should be on my account settings page When I fill in "user_email" with "new_email@newplac.es" - And I press "Change E-Mail" - Then I should see "E-Mail Changed" + And I press "Change email" + Then I should see "Email changed" And I follow the "confirm_email" link from the last sent email Then I should see "activated" And my "email" should be "new_email@newplac.es" diff --git a/features/change_password.feature b/features/change_password.feature index 4a44797b5..aef13d451 100644 --- a/features/change_password.feature +++ b/features/change_password.feature @@ -9,8 +9,8 @@ Feature: Change password When I put in my password in "user_current_password" And I fill in "user_password" with "newsecret" And I fill in "user_password_confirmation" with "newsecret" - And I press "Change Password" - Then I should see "Password Changed" + And I press "Change password" + Then I should see "Password changed" Then I should be on the new user session page When I sign in with password "newsecret" Then I should be on the aspects page diff --git a/features/repost.feature b/features/repost.feature index 39567dc9f..0c9251d01 100644 --- a/features/repost.feature +++ b/features/repost.feature @@ -93,6 +93,6 @@ Feature: public repost And I should see "Bob" And I go to the home page - And I should see "1 Reshare" + And I should see "1 reshare" Scenario: Can have text diff --git a/public/javascripts/widgets/lightbox.js b/public/javascripts/widgets/lightbox.js index 8b1e7fd6a..409ade1f1 100644 --- a/public/javascripts/widgets/lightbox.js +++ b/public/javascripts/widgets/lightbox.js @@ -43,6 +43,8 @@ jQuery.fn.center = (function() { evt.preventDefault(); self.resetLightbox(); }); + self.backdrop.click(self.resetLightbox); + self.lightbox.click(self.resetLightbox); self.body.keydown(function(evt) { @@ -82,7 +84,7 @@ jQuery.fn.center = (function() { this.lightboxImageClicked = function(evt) { evt.preventDefault(); - + var selectedImage = $(this).find("img.stream-photo"), imageUrl = selectedImage.attr("data-full-photo"), images = selectedImage.parents('.stream_element').find('img.stream-photo'), @@ -110,7 +112,7 @@ jQuery.fn.center = (function() { this.imagesetImageClicked = function(evt) { evt.preventDefault(); - + evt.stopPropagation(); self.selectImage($(this)); };