Merge pull request #4820 from consul/legislation_processes_alert
Remove unnecessary alert on legislation processes
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
<div class="small-12 medium-9 column">
|
||||
<div class="debate-list">
|
||||
<% if process.questions.empty? %>
|
||||
<p><%= t("legislation.processes.debate.empty_questions") %></p>
|
||||
<% else %>
|
||||
<%= render process.questions %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<% if process.questions.any? %>
|
||||
<div class="small-12 medium-3 column">
|
||||
<div class="callout success">
|
||||
<p><%= t("legislation.processes.debate.participate") %></p>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
@@ -20,14 +20,6 @@
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<% if @process.questions.any? %>
|
||||
<div class="small-12 medium-3 column">
|
||||
<div class="callout success">
|
||||
<p><%= t("legislation.processes.debate.participate") %></p>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -54,7 +54,6 @@ en:
|
||||
winners: Selected
|
||||
debate:
|
||||
empty_questions: There aren't any questions
|
||||
participate: Participate in the debate
|
||||
index:
|
||||
filter: Filter
|
||||
filters:
|
||||
|
||||
@@ -54,7 +54,6 @@ es:
|
||||
winners: Seleccionadas
|
||||
debate:
|
||||
empty_questions: No hay preguntas
|
||||
participate: Realiza tus aportaciones al debate previo participando en los siguientes temas.
|
||||
index:
|
||||
filter: Filtro
|
||||
filters:
|
||||
|
||||
@@ -255,7 +255,6 @@ describe "Legislation" do
|
||||
end
|
||||
|
||||
expect(page).to have_content("This is the process homepage")
|
||||
expect(page).not_to have_content("Participate in the debate")
|
||||
end
|
||||
|
||||
scenario "disabled", :with_frozen_time do
|
||||
@@ -282,7 +281,6 @@ describe "Legislation" do
|
||||
visit legislation_process_path(process)
|
||||
|
||||
expect(page).to have_content("This phase is not open yet")
|
||||
expect(page).not_to have_content("Participate in the debate")
|
||||
end
|
||||
|
||||
scenario "open without questions" do
|
||||
@@ -290,7 +288,6 @@ describe "Legislation" do
|
||||
|
||||
visit legislation_process_path(process)
|
||||
|
||||
expect(page).not_to have_content("Participate in the debate")
|
||||
expect(page).not_to have_content("This phase is not open yet")
|
||||
end
|
||||
|
||||
@@ -303,7 +300,6 @@ describe "Legislation" do
|
||||
|
||||
expect(page).to have_content("Question 1")
|
||||
expect(page).to have_content("Question 2")
|
||||
expect(page).to have_content("Participate in the debate")
|
||||
expect(page).not_to have_content("This phase is not open yet")
|
||||
end
|
||||
|
||||
|
||||
@@ -17,8 +17,6 @@ describe "Legislation" do
|
||||
scenario "shows question list" do
|
||||
visit legislation_process_path(process)
|
||||
|
||||
expect(page).to have_content("Participate in the debate")
|
||||
|
||||
expect(page).to have_content("Question 1")
|
||||
expect(page).to have_content("Question 2")
|
||||
expect(page).to have_content("Question 3")
|
||||
|
||||
Reference in New Issue
Block a user