diff --git a/app/views/poll/_poll_tool_bar.html.erb b/app/views/poll/_poll_tool_bar.html.erb index e598a9ff9..63647d1b6 100644 --- a/app/views/poll/_poll_tool_bar.html.erb +++ b/app/views/poll/_poll_tool_bar.html.erb @@ -4,6 +4,7 @@ * <%end%>

+
<% poll = poll_question.poll %> <% count = poll.poll_questions.count %> <% unless poll_question.question_number == 1 %> @@ -21,4 +22,13 @@
<%= link_to("", delete_poll_question_poll_index_path(:poll_question => poll_question.id), - method: :delete, :confirm => l(:text_are_you_sure), :remote => true, :class => "poll-delete", :title => "删除") %> \ No newline at end of file + method: :delete, :confirm => l(:text_are_you_sure), :remote => true, :class => "poll-delete", :title => "删除") %> + + \ No newline at end of file diff --git a/app/views/poll/_show_MC.html.erb b/app/views/poll/_show_MC.html.erb index c00522ed7..c610c07cd 100644 --- a/app/views/poll/_show_MC.html.erb +++ b/app/views/poll/_show_MC.html.erb @@ -7,7 +7,7 @@ <%= poll_question.question_title %> [单选题] - +
diff --git a/app/views/poll/_show_MCQ.html.erb b/app/views/poll/_show_MCQ.html.erb index 6612a3bb6..ab77be241 100644 --- a/app/views/poll/_show_MCQ.html.erb +++ b/app/views/poll/_show_MCQ.html.erb @@ -18,7 +18,7 @@

<% end %>
- +
diff --git a/app/views/poll/_show_head.html.erb b/app/views/poll/_show_head.html.erb index 44c560dfe..43941e1ce 100644 --- a/app/views/poll/_show_head.html.erb +++ b/app/views/poll/_show_head.html.erb @@ -1,5 +1,5 @@
- +

<%= poll.polls_name%>

<%= @poll.polls_description.nil? ? "" : @poll.polls_description.html_safe%>
diff --git a/app/views/poll/_show_mulit.html.erb b/app/views/poll/_show_mulit.html.erb index e72682165..fca5a7818 100644 --- a/app/views/poll/_show_mulit.html.erb +++ b/app/views/poll/_show_mulit.html.erb @@ -8,7 +8,7 @@ [多行主观题]
- +
<% poll_question.poll_answers.reorder("answer_position").each_with_index do |poll_answer, i| %>
diff --git a/app/views/poll/_show_single.html.erb b/app/views/poll/_show_single.html.erb index 88a14bccf..d3b00db55 100644 --- a/app/views/poll/_show_single.html.erb +++ b/app/views/poll/_show_single.html.erb @@ -8,7 +8,7 @@ [主观题]
- +
diff --git a/app/views/poll/show.html.erb b/app/views/poll/show.html.erb index 104b30819..2ef7c4a26 100644 --- a/app/views/poll/show.html.erb +++ b/app/views/poll/show.html.erb @@ -241,7 +241,7 @@ } } - > +