From d8b43235555b0f6f2d8943c6d2342c7c25b1ccbf Mon Sep 17 00:00:00 2001 From: taitus Date: Mon, 7 Aug 2017 15:20:05 +0200 Subject: [PATCH] Add comments tab to topic show --- app/views/topics/_filter_subnav.html.erb | 14 ++++++++++++++ app/views/topics/show.html.erb | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 app/views/topics/_filter_subnav.html.erb diff --git a/app/views/topics/_filter_subnav.html.erb b/app/views/topics/_filter_subnav.html.erb new file mode 100644 index 000000000..4af1b4962 --- /dev/null +++ b/app/views/topics/_filter_subnav.html.erb @@ -0,0 +1,14 @@ +
+
+
    +
  • + <%= link_to "#tab-comments" do %> +

    + <%= t("topics.show.comments_tab") %> + (<%= @topic.comments_count %>) +

    + <% end %> +
  • +
+
+
diff --git a/app/views/topics/show.html.erb b/app/views/topics/show.html.erb index b44d3b7cf..599c62053 100644 --- a/app/views/topics/show.html.erb +++ b/app/views/topics/show.html.erb @@ -5,7 +5,7 @@ Comunidad: <%= @community.proposal.title %> <%= @topic.title %>
- <%#= render "proposals/filter_subnav" %> + <%= render "topics/filter_subnav" %> <%#= render "proposals/notifications" %>