diff --git a/app/controllers/polls/questions_controller.rb b/app/controllers/polls/questions_controller.rb
index 1849dff97..74266a6fc 100644
--- a/app/controllers/polls/questions_controller.rb
+++ b/app/controllers/polls/questions_controller.rb
@@ -5,15 +5,6 @@ class Polls::QuestionsController < ApplicationController
has_orders %w{most_voted newest oldest}, only: :show
- def show
- @commentable = @question.proposal.present? ? @question.proposal : @question
- @comment_tree = CommentTree.new(@commentable, params[:page], @current_order)
- set_comment_flags(@comment_tree.comments)
-
- question_answer = @question.answers.where(author_id: current_user.try(:id)).first
- @answers_by_question_id = {@question.id => question_answer.try(:answer)}
- end
-
def answer
answer = @question.answers.find_or_initialize_by(author: current_user)
diff --git a/app/views/polls/_poll_group.html.erb b/app/views/polls/_poll_group.html.erb
index 9372aee17..fe12c341b 100644
--- a/app/views/polls/_poll_group.html.erb
+++ b/app/views/polls/_poll_group.html.erb
@@ -51,7 +51,7 @@
<%= poll_dates(poll) %>
- <% if can? :answer, question %>
- <% question.valid_answers.each do |answer| %>
- <% if @answers_by_question_id[question.id] == answer %>
- ">
- <%= answer %>
-
- <% else %>
- <%= link_to answer,
- answer_question_path(question, answer: answer),
- method: :post,
- remote: true,
- title: t("poll_questions.show.vote_answer", answer: answer),
- class: "button secondary hollow" %>
- <% end %>
- <% end %>
- <% else %>
- <% question.valid_answers.each do |answer| %>
- <%= answer %>
- <% end %>
- <% end %>
-
diff --git a/app/views/polls/questions/_comments.html.erb b/app/views/polls/questions/_comments.html.erb
deleted file mode 100644
index a967406aa..000000000
--- a/app/views/polls/questions/_comments.html.erb
+++ /dev/null
@@ -1,31 +0,0 @@
-<% cache [locale_and_user_status, @current_order, commentable_cache_key(@commentable), @comment_tree.comments, @comment_tree.comment_authors, @commentable.comments_count, @comment_flags] do %>
-
-<% end %>
\ No newline at end of file
diff --git a/app/views/polls/questions/_filter_subnav.html.erb b/app/views/polls/questions/_filter_subnav.html.erb
deleted file mode 100644
index 738fc3700..000000000
--- a/app/views/polls/questions/_filter_subnav.html.erb
+++ /dev/null
@@ -1,22 +0,0 @@
-
- <%= render "polls/questions/filter_subnav" %>
-
-
-
-
- <%= render 'documents/documents',
- documents: @question.documents,
- max_documents_allowed: Poll::Question.max_documents_allowed %>
-
-
diff --git a/config/routes.rb b/config/routes.rb
index 410f2dced..6c893c24a 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -112,11 +112,7 @@ Rails.application.routes.draw do
get :search, on: :collection
end
- resources :polls, only: [:show, :index] do
- resources :questions, only: [:show], controller: 'polls/questions', shallow: true do
- post :answer, on: :member
- end
- end
+ resources :polls, only: [:show, :index]
namespace :legislation do
resources :processes, only: [:index, :show] do
- <%= t("shared.comments.title") %> - (<%= @commentable.comments_count %>) -
- - <%= render 'shared/wide_order_selector', i18n_namespace: "comments" %> - - <% if user_signed_in? %> - <%= render 'comments/form', {commentable: @commentable, parent_id: nil, toggeable: false} %> - <% else %> -- -