From fc4a042b7c53c2eac94aa37225eca364cdcc4bf7 Mon Sep 17 00:00:00 2001 From: Sasha Boginsky <41092741+sashadev-sky@users.noreply.github.com> Date: Wed, 11 Sep 2019 10:08:07 -0400 Subject: [PATCH] Fix front ui (#1011) * h * h * updates * fix front-ui --- app/assets/stylesheets/style.scss | 3 +++ app/views/front_ui/index.html.erb | 24 ++---------------------- app/views/layouts/_login_form.html.erb | 2 +- 3 files changed, 6 insertions(+), 23 deletions(-) diff --git a/app/assets/stylesheets/style.scss b/app/assets/stylesheets/style.scss index 12db7fd41..667f1a96b 100644 --- a/app/assets/stylesheets/style.scss +++ b/app/assets/stylesheets/style.scss @@ -41,6 +41,9 @@ It was originally created by Caroline Hadilaksono: http://www.hadilaksono.com width: 45%; font-size: 1em; } + .btn.btn-default { + width: auto; + } } .jumbotron { diff --git a/app/views/front_ui/index.html.erb b/app/views/front_ui/index.html.erb index a6c620fd7..551c92633 100644 --- a/app/views/front_ui/index.html.erb +++ b/app/views/front_ui/index.html.erb @@ -69,28 +69,8 @@
-

We strongly prefer that you should Log in via -

-

- <%= hidden_field_tag :authenticity_token, form_authenticity_token -%> - <%= hidden_field_tag :back_to, params[:back_to] || request.path -%> - <%= button_tag 'Google', name: "subaction", value: "google_oauth2" do %> - - - - <% end %> - <%= button_tag submit: 'Twitter', name: "subaction", value: "twitter" do %> - - - - <% end %> - <%= button_tag 'Facebook', name: "subaction", value: "facebook" do%> - - - - <% end %> -
-

+

We strongly prefer that you should + <%= render partial: "layouts/login_form" %> OR sign up for a Public Lab account
before making a map. However, if you wish to remain anonymous for privacy reasons, click here to create a map. Also, note that, Anonymous maps have some limitations, click here to learn more. diff --git a/app/views/layouts/_login_form.html.erb b/app/views/layouts/_login_form.html.erb index 27e268538..8ba149b92 100644 --- a/app/views/layouts/_login_form.html.erb +++ b/app/views/layouts/_login_form.html.erb @@ -7,7 +7,7 @@

<%= button_tag submit: 'Log in via PublicLab.org' do %> - + <% end %>