We had the same texts four times, with slight variations in the case of the management section. We're unifying them under the "verification" i18n namespace, since the texts are about actions which can be done depending on whether users are verified or not. Note the names of the i18n keys aren't very consistent, since we use "debates" in plural but "proposal" in singular. We're leaving it like this so existing translations aren't affected.
19 lines
562 B
Plaintext
19 lines
562 B
Plaintext
<%# # Parameters:
|
|
# message: A string explaining the permissions
|
|
# permissions: An array of symbols containing the permissions
|
|
# (can be :debates, :proposal, :support_proposal, :votes) %>
|
|
<div class="user-permissions">
|
|
|
|
<p><%= message %></p>
|
|
|
|
<ul>
|
|
<% [:debates, :proposal, :support_proposal, :votes].each do |permission| %>
|
|
<li>
|
|
<span class="<%= permissions.include?(permission) ? "icon-check" : "icon-x" %>"></span>
|
|
<%= t("verification.user_permission_#{permission}") %>
|
|
</li>
|
|
<% end %>
|
|
</ul>
|
|
|
|
</div>
|