AutoCommit Fre Jul 31 17:03:12 CEST 2015
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<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 id="container_question_<%= answeredquestion.id %>" style="min-width: 310px; max-width: 800px; height: <%= (100+answeredquestion.choices.count * 50).to_s%>px; margin: 0 auto" class="contentbox">
|
||||
<div style="background:red"><b><%= answeredquestion.title%></b>
|
||||
|
||||
<ul>
|
||||
|
||||
@@ -1,12 +1,15 @@
|
||||
<% if current_user.nil? %>
|
||||
<%= render partial: "answeredquestion", object: question %>
|
||||
<% else %>
|
||||
<div style="background:red"><b><%= question.title%></b>
|
||||
<ul>
|
||||
<div class="contentbox" style="background: grey">
|
||||
<div class="contentbox">
|
||||
<b><%= question.title%></b></div>
|
||||
<div class="contentbox">
|
||||
<ul>
|
||||
<% question.choices.each do |c| %>
|
||||
<li><%= render c %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
</ul></div>
|
||||
<%= render partial: "answeredquestion", object: question if question.answers.where(user_id: current_user.id).count>0%>
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user