‘Participation not allowed’ hover for legislation questions
This commit is contained in:
@@ -13,4 +13,5 @@ App.Votes =
|
||||
initialize: ->
|
||||
App.Votes.hoverize "div.votes"
|
||||
App.Votes.hoverize "div.supports"
|
||||
App.Votes.hoverize "div.debate-questions"
|
||||
false
|
||||
|
||||
@@ -296,6 +296,7 @@
|
||||
}
|
||||
|
||||
.debate-questions {
|
||||
position: relative;
|
||||
list-style: none;
|
||||
|
||||
.control {
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
<% if user_signed_in? && current_user.organization? %>
|
||||
<div class="participation-not-allowed" style='display:none' aria-hidden="false">
|
||||
<p>
|
||||
<%= t("legislation.questions.participation.organizations") %>
|
||||
</p>
|
||||
</div>
|
||||
<% elsif user_signed_in? && current_user.unverified? %>
|
||||
<div class="participation-not-allowed" style='display:none' aria-hidden="false">
|
||||
<p>
|
||||
<%= t("legislation.questions.participation.verified_only",
|
||||
verify_account: link_to(t("legislation.questions.participation.verify_account"), verification_path )).html_safe %>
|
||||
</p>
|
||||
</div>
|
||||
<% elsif !user_signed_in? %>
|
||||
<div class="participation-not-allowed" style='display:none' aria-hidden="false">
|
||||
<%= t("legislation.questions.participation.unauthenticated",
|
||||
signin: link_to(t("legislation.questions.participation.signin"), new_user_session_path),
|
||||
signup: link_to(t("legislation.questions.participation.signup"), new_user_registration_path)).html_safe %>
|
||||
</div>
|
||||
<% end %>
|
||||
@@ -24,6 +24,7 @@
|
||||
<h3 class="quiz-question"><%= @question.title %></h3>
|
||||
<div class="debate-questions" id="legislation-answer-form">
|
||||
<%= render 'answer_form', process: @process, question: @question, answer: @answer %>
|
||||
<%= render 'participation_not_allowed' %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -278,6 +278,13 @@ en:
|
||||
share_facebook: Share on Facebook
|
||||
share_gplus: Share on Google+
|
||||
title: Collaborative legislation process
|
||||
participation:
|
||||
organizations: Organisations are not permitted to participate in the debate
|
||||
signin: Sign in
|
||||
signup: Sign up
|
||||
unauthenticated: You must %{signin} or %{signup} to participate.
|
||||
verified_only: Only verified users can participate, %{verify_account}.
|
||||
verify_account: verify your account
|
||||
locale: English
|
||||
notifications:
|
||||
index:
|
||||
|
||||
@@ -278,6 +278,13 @@ es:
|
||||
share_facebook: Compartir en Facebook
|
||||
share_gplus: Compartir en Google+
|
||||
title: Proceso de legislación colaborativa
|
||||
participation:
|
||||
organizations: Las organizaciones no pueden participar en el debate
|
||||
signin: iniciar sesión
|
||||
signup: registrarte
|
||||
unauthenticated: Necesitas %{signin} o %{signup} para participar en el debate.
|
||||
verified_only: Solo los usuarios verificados pueden participar en el debate, %{verify_account}.
|
||||
verify_account: verifica tu cuenta
|
||||
locale: Español
|
||||
notifications:
|
||||
index:
|
||||
|
||||
Reference in New Issue
Block a user