Removes document tab on budgets investments

This commit is contained in:
decabeza
2018-02-26 18:38:23 +01:00
parent 5b7a5a2b4b
commit 46f21330bd
3 changed files with 4 additions and 15 deletions

View File

@@ -17,14 +17,6 @@
</h3>
<% end %>
</li>
<li class="tabs-title">
<%= link_to "#tab-documents" do %>
<h3>
<%= t("documents.tab") %>
(<%= @investment.documents.count %>)
</h3>
<% end %>
</li>
</ul>
</div>
</div>

View File

@@ -51,6 +51,10 @@
</p>
<% end %>
<%= render 'documents/documents',
documents: investment.documents,
max_documents_allowed: Budget::Investment.max_documents_allowed %>
<%= render 'shared/tags', taggable: investment %>
<% if investment.external_url.present? %>

View File

@@ -19,11 +19,4 @@
comment_flags: @comment_flags,
display_comments_count: false } %>
</div>
<div class="tabs-panel" id="tab-documents">
<%= render 'documents/documents',
documents: @investment.documents,
max_documents_allowed: Budget::Investment.max_documents_allowed %>
</div>
</div>