Implements /cuentasegura

This commit is contained in:
kikito
2016-02-22 13:40:49 +01:00
parent c13c84b7df
commit 81b5ae7089
5 changed files with 29 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
class WelcomeController < ApplicationController
skip_authorization_check
layout "devise", only: :welcome
layout "devise", only: [:welcome, :verification]
def index
if current_user
@@ -25,5 +25,9 @@ class WelcomeController < ApplicationController
render 'highlights'
end
def verification
redirect_to verification_path if signed_in?
end
end

View File

@@ -0,0 +1,13 @@
<h2><%= t("welcome.verification.title") %></h2>
<p><%= t("welcome.verification.question", org_name: Setting["org_name"]) %></p>
<p class="text-center">
<%= link_to(t("welcome.verification.i_have_an_account"), verification_path, class: "button success radius expand") %>
</p>
<p class="text-center">
<%= link_to(t("welcome.verification.i_dont_have_an_account"), new_user_registration_path, class: "button radius expand") %>
</p>
</div>