[#6636] Style the finance report summary
This commit is contained in:
@@ -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'),
|
||||
|
||||
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user