From 1546f67367c5e6ec6b49fd3806f8152d0cf145f7 Mon Sep 17 00:00:00 2001 From: decabeza Date: Wed, 28 Feb 2018 16:21:08 +0100 Subject: [PATCH] Removes document tab on legislation proposals --- .../legislation/proposals/_filter_subnav.html.erb | 8 -------- app/views/legislation/proposals/show.html.erb | 10 ++++------ 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/app/views/legislation/proposals/_filter_subnav.html.erb b/app/views/legislation/proposals/_filter_subnav.html.erb index 986af6463..0250d36db 100644 --- a/app/views/legislation/proposals/_filter_subnav.html.erb +++ b/app/views/legislation/proposals/_filter_subnav.html.erb @@ -9,14 +9,6 @@ <% end %> -
  • - <%= link_to "#tab-documents" do %> -

    - <%= t("documents.tab") %> - (<%= @proposal.documents.count %>) -

    - <% end %> -
  • diff --git a/app/views/legislation/proposals/show.html.erb b/app/views/legislation/proposals/show.html.erb index 8ad9e4f54..0e71e6f7f 100644 --- a/app/views/legislation/proposals/show.html.erb +++ b/app/views/legislation/proposals/show.html.erb @@ -80,6 +80,10 @@

    <%= @proposal.question %>

    + <%= render 'documents/documents', + documents: @proposal.documents, + max_documents_allowed: Proposal.max_documents_allowed %> + <%= render 'shared/tags', taggable: @proposal %> <%= render 'shared/geozone', geozonable: @proposal %> @@ -112,10 +116,4 @@
    <%= render "legislation/proposals/comments" %>
    - -
    - <%= render 'documents/documents', - documents: @proposal.documents, - max_documents_allowed: Proposal.max_documents_allowed %> -