Skip to content
Extraits de code Groupes Projets
Valider a7fa3eab rédigé par Benjamin Neff's avatar Benjamin Neff Validation de Jonne Haß
Parcourir les fichiers

Disable autocorrect/autocapitalize for the username

and cleanup the code so it follows the code guidelines

closes #5955

closes #6028
parent 35e75b3c
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -50,6 +50,7 @@ ...@@ -50,6 +50,7 @@
* Only return the current_users participation for post interactions [#6007](https://github.com/diaspora/diaspora/pull/6007) * Only return the current_users participation for post interactions [#6007](https://github.com/diaspora/diaspora/pull/6007)
* Fix tag rendering in emails [#6009](https://github.com/diaspora/diaspora/pull/6009) * Fix tag rendering in emails [#6009](https://github.com/diaspora/diaspora/pull/6009)
* Fix the logo in emails [#6013](https://github.com/diaspora/diaspora/pull/6013) * Fix the logo in emails [#6013](https://github.com/diaspora/diaspora/pull/6013)
* Disable autocorrect for username on mobile sign in [#6028](https://github.com/diaspora/diaspora/pull/6028)
## Features ## Features
* Hide post title of limited post in comment notification email [#5843](https://github.com/diaspora/diaspora/pull/5843) * Hide post title of limited post in comment notification email [#5843](https://github.com/diaspora/diaspora/pull/5843)
......
...@@ -2,47 +2,46 @@ ...@@ -2,47 +2,46 @@
-# licensed under the Affero General Public License version 3 or later. See -# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file. -# the COPYRIGHT file.
:css
.navbar-fixed-top{display: none;}
.session_mobile .session_mobile
.landing .landing
%h1{:class =>"session"} %h1.session
= "#{pod_name}" = pod_name
#main_stream.stream #main_stream.stream
- flash.each do |name, msg| - flash.each do |name, msg|
%p{:class => "login_#{name}"}= msg %p{class: "login_#{name}"}
= msg
#flash_alert.expose #flash_alert.expose
%div{:class => "message", :id => "session"}= msg #session.message
= msg
#login_form #login_form
.login-container .login-container
= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| = form_for(resource, as: resource_name, url: session_path(resource_name)) do |f|
%fieldset %fieldset
%legend %legend
= image_tag("branding/logos/header-logo2x.png", height: 40, width: 40) = image_tag("branding/logos/header-logo2x.png", height: 40, width: 40)
= t('devise.sessions.new.login') = t("devise.sessions.new.login")
.control-group .control-group
= f.label :username, t('username') = f.label :username, t("username")
.controls .controls
= f.text_field :username, :autofocus => true = f.text_field :username, autofocus: true, autocapitalize: "none", autocorrect: "off"
.control-group .control-group
= f.label :password , t('password') = f.label :password , t("password")
.controls .controls
= f.password_field :password = f.password_field :password
= hidden_field(:user, :remember_me, :value => 1) = hidden_field(:user, :remember_me, value: 1)
.controls .controls
= f.submit t('devise.sessions.new.sign_in'), :class => 'btn primary' = f.submit t("devise.sessions.new.sign_in"), class: "btn primary"
- if display_registration_link? - if display_registration_link?
= link_to t('devise.shared.links.sign_up'), new_registration_path(resource_name), :class => 'btn btn-link', :style => "float: right;" = link_to t("devise.shared.links.sign_up"), new_registration_path(resource_name), class: "btn btn-link", style: "float: right;"
%footer %footer
- if display_password_reset_link? - if display_password_reset_link?
= link_to t('devise.passwords.new.forgot_password'), new_password_path(resource_name) = link_to t("devise.passwords.new.forgot_password"), new_password_path(resource_name)
= link_to t('layouts.application.toggle'), toggle_mobile_path = link_to t("layouts.application.toggle"), toggle_mobile_path
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter