forked from bofh/fetsite
AutoCommit Fre Jul 31 12:03:05 CEST 2015
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<div style="background:red"><b><%= answeredquestion.title%></b>
|
||||
<div id="container_question_<%= answeredquestion.id %>" style="min-width: 310px; max-width: 800px; height: <%= (100+answeredquestion.choices.count * 50).to_s%>px; margin: 0 auto">
|
||||
<div style="background:red"><b><%= answeredquestion.title%></b>
|
||||
|
||||
<ul>
|
||||
<% answeredquestion.choices.each do |c| %>
|
||||
<li>
|
||||
|
||||
@@ -7,5 +7,7 @@
|
||||
<li><%= render c %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
<%= render partial: "answeredquestion", object: question if question.answers.where(user_id: current_user.id).count>0%>
|
||||
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
</p>
|
||||
|
||||
<%= render @survey_question %>
|
||||
<%= render partial: "answeredquestion", object: @survey_question %>
|
||||
<% render partial: "answeredquestion", object: @survey_question %>
|
||||
|
||||
<%= link_to 'Edit', edit_survey_question_path(@survey_question) %> |
|
||||
<%= link_to 'Back', survey_questions_path %>
|
||||
|
||||
Reference in New Issue
Block a user