Show warning if phase is not open

This commit is contained in:
Fernando Blat
2017-01-05 13:08:06 +01:00
parent ed714f7c7d
commit 8682e426ac
3 changed files with 6 additions and 0 deletions

View File

@@ -17,4 +17,8 @@
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>
<% elsif !@process.open_phase?(:debate) %>
<div class="participation-not-allowed" style='display:none' aria-hidden="false">
<%= t("legislation.questions.participation.debate_phase_not_open") %>
</div>
<% end %>

View File

@@ -295,6 +295,7 @@ en:
unauthenticated: You must %{signin} or %{signup} to participate.
verified_only: Only verified users can participate, %{verify_account}.
verify_account: verify your account
debate_phase_not_open: Debate phase has finished and answers are not accepted anymore
locale: English
notifications:
index:

View File

@@ -295,6 +295,7 @@ es:
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
debate_phase_not_open: La fase de debate previo ya ha finalizado y en este momento no se aceptan respuestas
locale: Español
notifications:
index: