From 2d3c0680ea3b940b9d30dd74c5dd4c8c64e74fe9 Mon Sep 17 00:00:00 2001 From: Steffen van Bergerem Date: Tue, 21 Apr 2015 00:20:47 +0200 Subject: [PATCH] Fix uppercase registration/login labels and btn style --- Changelog.md | 1 + app/assets/stylesheets/mobile/mobile.scss | 1 + app/views/registrations/new.mobile.haml | 12 ++++++------ app/views/sessions/new.mobile.haml | 10 +++++----- 4 files changed, 13 insertions(+), 11 deletions(-) diff --git a/Changelog.md b/Changelog.md index d00bfd7a145..f59b18d20db 100644 --- a/Changelog.md +++ b/Changelog.md @@ -165,6 +165,7 @@ diaspora* no longer adds a `div.container` to wrap custom splash pages. This add * Update help section [#5857](https://github.com/diaspora/diaspora/pull/5857) [#5859](https://github.com/diaspora/diaspora/pull/5859) * Fix asset precompilation check in script/server [#5863](https://github.com/diaspora/diaspora/pull/5863) * Convert MySQL databases to utf8mb4 [#5530](https://github.com/diaspora/diaspora/pull/5530) [#5624](https://github.com/diaspora/diaspora/pull/5624) [#5865](https://github.com/diaspora/diaspora/pull/5865) +* Don't upcase labels on mobile sign up/sign in [#5872](https://github.com/diaspora/diaspora/pull/5872) ## Features * Don't pull jQuery from a CDN by default [#5105](https://github.com/diaspora/diaspora/pull/5105) diff --git a/app/assets/stylesheets/mobile/mobile.scss b/app/assets/stylesheets/mobile/mobile.scss index e43135d888b..f5f48ea65df 100644 --- a/app/assets/stylesheets/mobile/mobile.scss +++ b/app/assets/stylesheets/mobile/mobile.scss @@ -154,6 +154,7 @@ h3 { .login-container { padding: 10px; + label, legend { text-transform: uppercase; } } } diff --git a/app/views/registrations/new.mobile.haml b/app/views/registrations/new.mobile.haml index 1def3be9823..3813a6625ec 100644 --- a/app/views/registrations/new.mobile.haml +++ b/app/views/registrations/new.mobile.haml @@ -18,25 +18,25 @@ %fieldset %legend = image_tag('branding/header-logo2x.png', :height => 40, :width => 40) - = t('aspects.aspect_stream.make_something').upcase + = t('aspects.aspect_stream.make_something') .control-group - = f.label :username, t('username').upcase + = f.label :username, t('username') .controls = f.text_field :username, :placeholder => "jedi_guy" .control-group - = f.label :email, t('email').upcase + = f.label :email, t('email') .controls = f.text_field :email, :placeholder => "luke@hoth.net" .control-group - = f.label :password, t('password').upcase + = f.label :password, t('password') .controls = f.password_field :password, :placeholder => "••••••••" .control-group - = f.label :password_confirmation, t('password_confirmation').upcase + = f.label :password_confirmation, t('password_confirmation') .controls = f.password_field :password_confirmation, :placeholder => "••••••••" @@ -50,7 +50,7 @@ .controls = f.submit t('registrations.new.create_my_account'), :class => 'btn primary', :disable_with => t('registrations.new.submitting') - = link_to t('devise.sessions.new.sign_in'), new_user_session_path(), :class => 'btn primary', :style => "float: right;" + = link_to t('devise.sessions.new.sign_in'), new_user_session_path(), :class => 'btn btn-link', :style => "float: right;" %footer = link_to t('layouts.application.toggle'), toggle_mobile_path diff --git a/app/views/sessions/new.mobile.haml b/app/views/sessions/new.mobile.haml index 04cf6308c75..02a68033977 100644 --- a/app/views/sessions/new.mobile.haml +++ b/app/views/sessions/new.mobile.haml @@ -22,15 +22,15 @@ %fieldset %legend = image_tag('branding/header-logo2x.png', :height => 40, :width => 40) - = t('devise.sessions.new.login').upcase - + = t('devise.sessions.new.login') + .control-group - = f.label :username, t('username').upcase + = f.label :username, t('username') .controls = f.text_field :username, :autofocus => true .control-group - = f.label :password , t('password').upcase + = f.label :password , t('password') .controls = f.password_field :password @@ -39,7 +39,7 @@ .controls = f.submit t('devise.sessions.new.sign_in'), :class => 'btn primary' - if display_registration_link? - = link_to t('devise.shared.links.sign_up'), new_registration_path(resource_name), :class => 'btn primary', :style => "float: right;" + = link_to t('devise.shared.links.sign_up'), new_registration_path(resource_name), :class => 'btn btn-link', :style => "float: right;" %footer - if display_password_reset_link?