Merge pull request #4754 from consul/remove_madrid_code
Remove legacy code from Madrid's fork
This commit is contained in:
@@ -5,7 +5,7 @@ class WelcomeController < ApplicationController
|
|||||||
before_action :set_user_recommendations, only: :index, if: :current_user
|
before_action :set_user_recommendations, only: :index, if: :current_user
|
||||||
before_action :authenticate_user!, only: :welcome
|
before_action :authenticate_user!, only: :welcome
|
||||||
|
|
||||||
layout "devise", only: [:welcome, :verification]
|
layout "devise", only: :welcome
|
||||||
|
|
||||||
def index
|
def index
|
||||||
@header = Widget::Card.header.first
|
@header = Widget::Card.header.first
|
||||||
@@ -26,10 +26,6 @@ class WelcomeController < ApplicationController
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def verification
|
|
||||||
redirect_to verification_path if signed_in?
|
|
||||||
end
|
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def set_user_recommendations
|
def set_user_recommendations
|
||||||
|
|||||||
@@ -1,14 +0,0 @@
|
|||||||
<h2><%= t("welcome.verification.title") %></h2>
|
|
||||||
|
|
||||||
<div class="text-center margin-top">
|
|
||||||
<h3><%= t("welcome.verification.question", org_name: setting["org_name"]) %></h3>
|
|
||||||
<br>
|
|
||||||
<div class="row">
|
|
||||||
<div class="small-12 medium-6 column">
|
|
||||||
<%= link_to(t("welcome.verification.i_have_an_account"), verification_path, class: "button success radius expand") %>
|
|
||||||
</div>
|
|
||||||
<div class="small-12 medium-6 column">
|
|
||||||
<%= link_to(t("welcome.verification.i_dont_have_an_account"), new_user_registration_path(use_redeemable_code: true), class: "button radius expand") %>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@@ -892,11 +892,6 @@ en:
|
|||||||
budget_investments:
|
budget_investments:
|
||||||
title: Recommended investments
|
title: Recommended investments
|
||||||
slide: "See %{title}"
|
slide: "See %{title}"
|
||||||
verification:
|
|
||||||
i_dont_have_an_account: I don't have an account
|
|
||||||
i_have_an_account: I already have an account
|
|
||||||
question: Do you already have an account in %{org_name}?
|
|
||||||
title: Account verification
|
|
||||||
welcome:
|
welcome:
|
||||||
go_to_index: Not now, go to index page
|
go_to_index: Not now, go to index page
|
||||||
start_using_consul: Go to index page
|
start_using_consul: Go to index page
|
||||||
|
|||||||
@@ -892,11 +892,6 @@ es:
|
|||||||
budget_investments:
|
budget_investments:
|
||||||
title: Presupuestos recomendados
|
title: Presupuestos recomendados
|
||||||
slide: "Ver %{title}"
|
slide: "Ver %{title}"
|
||||||
verification:
|
|
||||||
i_dont_have_an_account: No tengo cuenta, quiero crear una y verificarla
|
|
||||||
i_have_an_account: Ya tengo una cuenta que quiero verificar
|
|
||||||
question: '¿Tienes ya una cuenta en %{org_name}?'
|
|
||||||
title: Verificación de cuenta
|
|
||||||
welcome:
|
welcome:
|
||||||
go_to_index: Ahora no, ir a la página de inicio
|
go_to_index: Ahora no, ir a la página de inicio
|
||||||
start_using_consul: Ir a la página de inicio
|
start_using_consul: Ir a la página de inicio
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user