From 7b6f3835cdf541498590e71d82d8de0d68e33724 Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Fri, 14 Oct 2011 08:34:32 -0700 Subject: [PATCH] [#6636] Change deliverable finance report to show two table per row --- app/helpers/contracts_helper.rb | 11 ----------- app/views/deliverables/_finances.html.erb | 6 +++--- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/app/helpers/contracts_helper.rb b/app/helpers/contracts_helper.rb index 52ac5c3..a52caf9 100644 --- a/app/helpers/contracts_helper.rb +++ b/app/helpers/contracts_helper.rb @@ -180,15 +180,4 @@ module ContractsHelper '' end end - - # Simple calculator to dynamically figure out the css width % - # to fill a container. <100% is used to allow some padding. - def css_width_calculator(number_of_elements) - case number_of_elements - when 2 - " width: 48%" - when 3 - " width: 31%" - end - end end diff --git a/app/views/deliverables/_finances.html.erb b/app/views/deliverables/_finances.html.erb index 239515d..1ea935d 100644 --- a/app/views/deliverables/_finances.html.erb +++ b/app/views/deliverables/_finances.html.erb @@ -9,7 +9,7 @@ <% has_categories = deliverable.project.issue_categories.count > 0 %> -
+

Activities

@@ -115,7 +115,7 @@ <%# /div#activities %> -
+

Users

@@ -197,7 +197,7 @@ <%# /div.users %> <% if has_categories %> -
+

Issue Categories