adds views changes for verified accounts

This commit is contained in:
rgarcia
2015-08-28 00:00:59 +02:00
parent 01a5a0387d
commit 5ced63b639
3 changed files with 18 additions and 2 deletions

View File

@@ -2,6 +2,16 @@
<div class="small-12 column">
<%= link_to t("account.show.change_credentials_link"), edit_user_registration_path, class: 'button radius small secondary right' %>
<span class="right" style="padding-right: 30px">
<% if current_user.level_three_verified? %>
<%= t("account.show.level_three_user") %>
<% elsif current_user.level_two_verified? %>
<%= t("account.show.level_two_user") %>
<% else %>
<%= link_to "Verify my account", new_residence_path, class: 'button radius small secondary right' %>
<% end %>
</span>
<h1 class="inline-block"><%= t("account.show.title") %></h1>
<%= form_for @account, as: :account, url: account_path do |f| %>

View File

@@ -32,7 +32,7 @@
<%= link_to t("layouts.header.welcome"), root_path %>
</div>
<div class="small-12 medium-2 column end">
<%= link_to t("layouts.header.debates"), debates_path, class: ("active" if current_page?(controller: "debates")) %>
<%= link_to t("layouts.header.debates"), debates_path, class: ("active" if current_page?(controller: "/debates")) %>
</div>
<div class="small-12 medium-2 column end">
<%= link_to t("layouts.header.initiatives"), "#" %>

View File

@@ -3,7 +3,13 @@
<p>
<strong>
<%= pluralize resource.errors.count, t("form.error"), t("form.errors") %>
<%= t("form.not_saved", resource: t("form.#{resource.class.to_s.downcase}")) %>
<% if local_assigns[:message].present? %>
<%= message %>
<% else %>
<%= t("form.not_saved", resource: t("form.#{resource.class.to_s.downcase}")) %>
<% end %>
</strong>
</p>
</div>