Merge branch 'budgets' into budgets-tags
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="medium-5 column show-for-medium text-center margin-top">
|
||||
<div class="medium-5 column show-for-medium text-center">
|
||||
<%= image_tag "map.jpg" %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -18,12 +18,20 @@
|
||||
</p>
|
||||
|
||||
<% if @budget.accepting? %>
|
||||
<% if current_user && current_user.level_two_or_three_verified? %>
|
||||
<%= link_to t("budget.investments.index.sidebar.create"), new_budget_investment_path(@budget), class: "button margin-top" %>
|
||||
<% if current_user %>
|
||||
<% 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 %>
|
||||
<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 class="callout primary margin-top">
|
||||
<%= t("budget.investments.index.sidebar.not_logged_in",
|
||||
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>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user