changed functions on verification.rb, the first thing they do is return true whene skip_user_verification is active. changed show_welcome_screen? on user.rb, now its shows the welcome page even with te option active. changed welcome.html.erb, now if the user see this view and the option is activated, all 4 checks are green, not only 2.
49 lines
1.4 KiB
Plaintext
49 lines
1.4 KiB
Plaintext
<h2><%= t("welcome.welcome.title") %></h2>
|
|
|
|
<div class="user-permissions">
|
|
|
|
<p><%= t("welcome.welcome.user_permission_info") %></p>
|
|
|
|
<ul>
|
|
<li><span class="icon-check"></span> <%= t("welcome.welcome.user_permission_debates") %></li>
|
|
<li><span class="icon-check"></span> <%= t("welcome.welcome.user_permission_proposal") %></li>
|
|
<li>
|
|
<% if current_user.level_two_or_three_verified? %>
|
|
<span class="icon-check"></span>
|
|
<% else %>
|
|
<span class="icon-x"></span>
|
|
<% end %>
|
|
<%= t("welcome.welcome.user_permission_support_proposal") %>
|
|
</li>
|
|
<li>
|
|
<% if current_user.level_three_verified? %>
|
|
<span class="icon-check"></span>
|
|
<% else %>
|
|
<span class="icon-x"></span>
|
|
<% end %>
|
|
<%= t("welcome.welcome.user_permission_votes") %>
|
|
</li>
|
|
</ul>
|
|
|
|
<p>
|
|
<span><%= t("welcome.welcome.user_permission_verify_info") %></span>
|
|
</p>
|
|
|
|
<p>
|
|
<%= t("welcome.welcome.user_permission_verify") %>
|
|
</p>
|
|
|
|
<% if current_user.level_three_verified? %>
|
|
<p class="already-verified">
|
|
<span class="icon-check"></span>
|
|
<%= t("account.show.verified_account") %>
|
|
</p>
|
|
<% else %>
|
|
<%= link_to(t("welcome.welcome.user_permission_verify_my_account"), verification_path, class: "button success radius expand") %>
|
|
<% end %>
|
|
|
|
<p class="text-center">
|
|
<%= link_to t("welcome.welcome.go_to_index"), proposals_path %>
|
|
</p>
|
|
</div>
|