AutoCommit Don Aug 6 22:03:02 CEST 2015

This commit is contained in:
Andreas Stephanides
2015-08-06 22:03:02 +02:00
parent 0c0e7ba051
commit bdb0025a8c
5 changed files with 64 additions and 65 deletions

View File

@@ -1,12 +1,15 @@
<% if current_user.nil? %>
<%= div_tag_for(question) do%>
<%= render partial: "survey/questions/answeredquestion", object: question %>
<%= render partial: "survey/questions/answeredquestion", object: question %>
<% end %>
<% else %>
<div class="contentbox" id ="<%= divid_for(question) %>" style="">
<div >
<b><%= question.title%></b> <%=question.text%><%= link_to fa_icon("pencil"), edit_survey_question_path(question) , class: "btn btn-link navbar-btn" , remote: true%>
<b><%= question.title%></b>
<%= question.text %>
<%= link_to fa_icon("pencil"), edit_survey_question_path(question) , class: "btn btn-link navbar-btn" , remote: true %>
<%= flag_link(question, "delete")%>
<%= flag_link(question, "template")%>
<ul class="choice-list">
<% question.choices.each do |c| %>