adds message for not logged users
This commit is contained in:
@@ -805,6 +805,11 @@ form {
|
|||||||
.callout {
|
.callout {
|
||||||
font-size: $small-font-size;
|
font-size: $small-font-size;
|
||||||
|
|
||||||
|
a {
|
||||||
|
font-weight: bold;
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
&.success, &.notice {
|
&.success, &.notice {
|
||||||
background-color: $success-bg;
|
background-color: $success-bg;
|
||||||
border-color: $success-border;
|
border-color: $success-border;
|
||||||
@@ -821,12 +826,6 @@ form {
|
|||||||
background-color: $warning-bg;
|
background-color: $warning-bg;
|
||||||
border-color: $warning-border;
|
border-color: $warning-border;
|
||||||
color: $color-warning;
|
color: $color-warning;
|
||||||
|
|
||||||
a {
|
|
||||||
color: $color-warning;
|
|
||||||
font-weight: bold;
|
|
||||||
text-decoration: underline;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&.alert, &.error {
|
&.alert, &.error {
|
||||||
|
|||||||
@@ -18,12 +18,20 @@
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<% if @budget.accepting? %>
|
<% if @budget.accepting? %>
|
||||||
<% if current_user && current_user.level_two_or_three_verified? %>
|
<% if current_user %>
|
||||||
<%= link_to t("budget.investments.index.sidebar.create"), new_budget_investment_path(@budget), class: "button margin-top" %>
|
<% if current_user.level_two_or_three_verified? %>
|
||||||
|
<%= link_to t("budget.investments.index.sidebar.create"), new_budget_investment_path(@budget), class: "button margin-top expanded" %>
|
||||||
|
<% else %>
|
||||||
|
<div class="callout warning margin-top">
|
||||||
|
<%= t("budget.investments.index.sidebar.verified_only",
|
||||||
|
verify: link_to(t("budget.investments.index.sidebar.verify_account"), verification_path)).html_safe %>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<div class="callout warning margin-top">
|
<div class="callout primary margin-top">
|
||||||
<%= t("budget.investments.index.sidebar.verified_only",
|
<%= t("budget.investments.index.sidebar.not_logged_in",
|
||||||
verify: link_to(t("budget.investments.index.sidebar.verify_account"), verification_path)).html_safe %>
|
sign_in: link_to(t("budget.investments.index.sidebar.sign_in"), new_user_session_path),
|
||||||
|
sign_up: link_to(t("budget.investments.index.sidebar.sign_up"), new_user_registration_path)).html_safe %>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -85,6 +85,9 @@ en:
|
|||||||
verified_only: "To create a new budget investment %{verify}."
|
verified_only: "To create a new budget investment %{verify}."
|
||||||
verify_account: "verify your account"
|
verify_account: "verify your account"
|
||||||
create: "Create budget investment"
|
create: "Create budget investment"
|
||||||
|
not_logged_in: "To create a new budget investment you must %{sign_in} or %{sign_up}."
|
||||||
|
sign_in: "sign in"
|
||||||
|
sign_up: "sign up"
|
||||||
orders:
|
orders:
|
||||||
random: random
|
random: random
|
||||||
confidence_score: highest rated
|
confidence_score: highest rated
|
||||||
|
|||||||
@@ -85,6 +85,9 @@ es:
|
|||||||
verified_only: "Para crear una nueva propuesta de inversión %{verify}."
|
verified_only: "Para crear una nueva propuesta de inversión %{verify}."
|
||||||
verify_account: "verifica tu cuenta"
|
verify_account: "verifica tu cuenta"
|
||||||
create: "Crear propuesta de inversión"
|
create: "Crear propuesta de inversión"
|
||||||
|
not_logged_in: "Para crear una nueva propuesta de inversión debes %{sign_in} o %{sign_up}."
|
||||||
|
sign_in: "iniciar sesión"
|
||||||
|
sign_up: "registrarte"
|
||||||
orders:
|
orders:
|
||||||
random: Aleatorias
|
random: Aleatorias
|
||||||
confidence_score: Mejor valoradas
|
confidence_score: Mejor valoradas
|
||||||
|
|||||||
Reference in New Issue
Block a user