Skip to content

Commit

Permalink
updated CSS and page header to make the reporting organisation more p…
Browse files Browse the repository at this point in the history
…rominent on the project page
  • Loading branch information
tetrahedra committed Oct 16, 2015
1 parent c633f44 commit 3e23b58
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions public/stylesheets/aip-styles.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions views/partials/_projects-header.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
<h1>
<%= project['title']['narratives'][0]['text'] %> <small>[<%= project['iati_identifier'] %>]</small>
</h1>
<div>
<h2>
<%= project['reporting_organisation'][0]['narratives'][0]['text'] || "Department for International Development" %>
</div>
</h2>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion views/projects/summary.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ title: Development Tracker
charts.donutLegend("#sector-legend", ".legend-color", 14, sectors, function(d){ return d.sector });

var funding = [ {label: "", text: "", value: 0},
{label: "Budget spend to date", text: "<%#= number_to_currency(project['totalProjectSpend'], :unit=>currency_symbol(project['currency']) || "£", :precision => 0) || 0.00 %>", value: <%= (project['totalProjectSpend'] || 0.00) %>},
{label: "Spend to date", text: "<%#= number_to_currency(project['totalProjectSpend'], :unit=>currency_symbol(project['currency']) || "£", :precision => 0) || 0.00 %>", value: <%= (project['totalProjectSpend'] || 0.00) %>},
{label: "Project budget", text: "<%= Money.new(project['total_child_budgets'].to_f.round(0)*100, project['default_currency']['code']).format(:no_cents_if_whole => true,:sign_before_symbol => false) %><%#= number_to_currency(project['total_child_budgets'], :unit=>currency_symbol(project['currency']) || "£", :precision => 0) || 0.00 %>", value: <%= (project['total_child_budgets'] || 0.00) %>}]
charts.progressBar("#funding-progress", funding, function(d) { return d.value; }, function(d) { return d.label; }, function(d) { return d.text; });

Expand Down

0 comments on commit 3e23b58

Please sign in to comment.