[#6636] Style the finance report summary

This commit is contained in:
Eric Davis
2011-10-13 13:47:27 -07:00
parent 8efd13c7d1
commit 5463b4500d
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
<div id="summary" class="contextual">
<div id="finance-summary" class="contextual">
<%= l(:text_deliverable_spending_summary,
:spent => content_tag(:span, h(number_to_currency(deliverable.labor_budget_spent, :precision => Deliverable::ViewPrecision)), :class => 'spent'),
:total => content_tag(:span, h(number_to_currency(deliverable.labor_budget_total, :precision => Deliverable::ViewPrecision)), :class => 'total'),
+2
View File
@@ -533,3 +533,5 @@ table.striped-contract-style tr.summary-row {
div.fixed-budget-form {padding: 5px 0;}
.deliverable-action-link { font-weight: bold; }
.deliverable-finance-report { float: left; padding: 0 5px; }
#finance-summary { font-size: 1.2em; color: #666666; }
#finance-summary span { padding: 0; font-weight: bold; color: #000000; }
@@ -71,7 +71,7 @@ class DeliverableFinancesShowTest < ActionController::IntegrationTest
should "render the finance report title section for the deliverable" do
assert_select "h2", :text => /#{@deliverable1.title}/
assert_select "div#summary" do
assert_select "div#finance-summary" do
assert_select "span.spent", :text => /\$200/ # $100 * 2
assert_select "span.total", :text => /\$300/ # $100 * 3
assert_select "span.hours", :text => /2/