From 5b7a5a2b4b93ba37c340548b3a0826d32a2dd803 Mon Sep 17 00:00:00 2001 From: decabeza Date: Mon, 26 Feb 2018 18:38:05 +0100 Subject: [PATCH] Removes document tab on proposals --- app/views/proposals/_filter_subnav.html.erb | 8 -------- app/views/proposals/show.html.erb | 10 ++++------ 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/app/views/proposals/_filter_subnav.html.erb b/app/views/proposals/_filter_subnav.html.erb index fece62a17..6347d56b0 100644 --- a/app/views/proposals/_filter_subnav.html.erb +++ b/app/views/proposals/_filter_subnav.html.erb @@ -17,14 +17,6 @@ <% end %> -
  • - <%= link_to "#tab-documents" do %> -

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

    - <% end %> -
  • diff --git a/app/views/proposals/show.html.erb b/app/views/proposals/show.html.erb index dbeb110ce..e2a7d0c17 100644 --- a/app/views/proposals/show.html.erb +++ b/app/views/proposals/show.html.erb @@ -106,6 +106,10 @@ <% end %> + <%= render 'documents/documents', + documents: @proposal.documents, + max_documents_allowed: Proposal.max_documents_allowed %> + <%= render 'shared/tags', taggable: @proposal %> <%= render 'shared/geozone', geozonable: @proposal %> @@ -206,10 +210,4 @@
    <%= render "proposals/comments" %>
    - -
    - <%= render 'documents/documents', - documents: @proposal.documents, - max_documents_allowed: Proposal.max_documents_allowed %> -