updates specs for admin poll questions

This commit is contained in:
rgarcia
2016-11-17 21:31:51 +01:00
parent db94e241fe
commit 626a8e9154
10 changed files with 118 additions and 95 deletions

View File

@@ -1,16 +1,21 @@
<% if @question.proposal.present? %>
<div>
<%= I18n.t("admin.questions.show.proposal") %>:
<%= @question.proposal.title %>
</div>
<% end %>
<div class="small-12 column">
<% if @question.proposal.present? %>
<div>
<%= I18n.t("admin.questions.show.proposal") %>:
<%= link_to @question.proposal.title, proposal_path(@question.proposal) %>
</div>
<% end %>
<div>
<%= I18n.t("admin.questions.show.title") %>:
<%= @question.title %>
</div>
<div>
<%= I18n.t("admin.questions.show.author") %>:
<%= link_to @question.author.name, user_path(@question.author) %>
</div>
<div>
<%= I18n.t("admin.questions.show.valid_answers") %>:
<%= @question.valid_answers.join(", ") %>
@@ -30,7 +35,7 @@
<%= I18n.t("admin.questions.show.geozones") %>:
<% @question.geozones.each do |geozone| %>
<div>
<% geozone.name %>
<%= geozone.name %>
</div>
<% end %>
</div>