From faa2f31b3a4c698fa134d2d5df0db82ccbcbb5d8 Mon Sep 17 00:00:00 2001 From: rgarcia Date: Tue, 10 Oct 2017 12:04:16 +0200 Subject: [PATCH] Adds comment's tab --- app/views/polls/_filter_subnav.html.erb | 14 ++++++++++++++ app/views/polls/show.html.erb | 12 ++++++++---- 2 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 app/views/polls/_filter_subnav.html.erb diff --git a/app/views/polls/_filter_subnav.html.erb b/app/views/polls/_filter_subnav.html.erb new file mode 100644 index 000000000..b096edaf2 --- /dev/null +++ b/app/views/polls/_filter_subnav.html.erb @@ -0,0 +1,14 @@ +
+
+
    +
  • + <%= link_to "#tab-comments" do %> +

    + <%= t("polls.show.comments_tab") %> + (<%= @poll.comments_count %>) +

    + <% end %> +
  • +
+
+
diff --git a/app/views/polls/show.html.erb b/app/views/polls/show.html.erb index 5d60ed284..d9d871249 100644 --- a/app/views/polls/show.html.erb +++ b/app/views/polls/show.html.erb @@ -128,10 +128,14 @@ <% end %> - -
- <%= render "shared/comments" %> -
+ +
+ <%= render "filter_subnav" %> + +
+ <%= render "comments" %> +
+
\ No newline at end of file