Skip to content

Commit

Permalink
Merge branch 'master' into add-api-tests-postman
Browse files Browse the repository at this point in the history
  • Loading branch information
aunindadf committed Jan 13, 2016
2 parents 65e4920 + 720939e commit 5f94999
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 3 deletions.
4 changes: 2 additions & 2 deletions devtracker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
region[:name] = "All"
getRegionProjects = get_region_projects(region[:code])
settings.devtracker_page_title = 'Global All Projects Page'
erb :'regions/projects',
erb :'regions/projects-home',
:layout => :'layouts/layout',
:locals => {
oipa_api_url: settings.oipa_api_url,
Expand Down Expand Up @@ -238,7 +238,7 @@
region[:name] = "All"
getRegionProjects = get_region_projects(region[:code])
settings.devtracker_page_title = 'Region '+region[:name]+' Projects Page'
erb :'regions/projects',
erb :'regions/projects-home',
:layout => :'layouts/layout',
:locals => {
oipa_api_url: settings.oipa_api_url,
Expand Down
2 changes: 1 addition & 1 deletion views/layouts/landing.erb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<link href="/stylesheets/aip-styles.css" media="screen" rel="stylesheet" type="text/css" />
<link href="/stylesheets/graph-styles.css" media="screen" rel="stylesheet" type="text/css" />
<link href="/stylesheets/main.css" media="screen" rel="stylesheet" type="text/css" />
<link type="image/x-icon" href="https://assets.digital.cabinet-office.gov.uk/static/favicon-8d811b8c3badbc0b0e2f6e25d3660a96cc0cca7993e6f32e98785f205fc40907.ico" rel="shortcut icon" />
<!-- <script>
jQuery(function(){
jQuery('.more-info-link').click( function(){
Expand Down
1 change: 1 addition & 0 deletions views/layouts/layout.erb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
<link href="/stylesheets/graph-styles.css" media="screen" rel="stylesheet" type="text/css" />
<link href="/stylesheets/main.css" media="screen" rel="stylesheet" type="text/css" />
<link href="/stylesheets/c3-b03125fa.css" rel="stylesheet" type="text/css">
<link type="image/x-icon" href="https://assets.digital.cabinet-office.gov.uk/static/favicon-8d811b8c3badbc0b0e2f6e25d3660a96cc0cca7993e6f32e98785f205fc40907.ico" rel="shortcut icon" />
<script src="/javascripts/jquery.scrollUp.min.js" type="text/javascript"></script>
<!-- <script>
jQuery(function(){
Expand Down
1 change: 1 addition & 0 deletions views/layouts/layout_forms.erb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
<link href="/stylesheets/graph-styles.css" media="screen" rel="stylesheet" type="text/css" />
<link href="/stylesheets/main.css" media="screen" rel="stylesheet" type="text/css" />
<link href="/stylesheets/c3-b03125fa.css" rel="stylesheet" type="text/css">
<link type="image/x-icon" href="https://assets.digital.cabinet-office.gov.uk/static/favicon-8d811b8c3badbc0b0e2f6e25d3660a96cc0cca7993e6f32e98785f205fc40907.ico" rel="shortcut icon" />
<script src="/javascripts/jquery.scrollUp.min.js" type="text/javascript"></script>
<!-- <script>
jQuery(function(){
Expand Down
29 changes: 29 additions & 0 deletions views/partials/_regions-summary-tabs.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<div class="row">
<div class="twelve columns">
<div class="tab-bar-container">
<div class="row">

<div class="projects-nav six columns">
<nav>
<ul class="tab-bar">
<li <%= active=="projects" ? "class='active'" : ""%>><a href="/regions/<%= region[:code] %>/projects">All Projects (<%=project_count%>)</a></li>
</ul>
</nav>
</div>

<div class="button-row six columns">
<% regionSubscription = false
if project_count > 0 && regionSubscription%>
<span>
<a href="https://public.govdelivery.com/accounts/UKDFID/subscriber/new?topic_id=UKDFID_<%= format_query_string region['code'] %>" title="Subscribe to receive updates on <%= region['name'] %> by email" class="button inform">&#9993; Subscribe</a>
</span>
<% end %>
<span>
<a href="/fraud?region=<%= format_query_string region[:name] %>" class="button serious" title="Report fraud">Report Fraud</a>
</span>
</div>

</div>
</div>
</div>
</div>
25 changes: 25 additions & 0 deletions views/regions/projects-home.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

<div id="page-title" class="row">
<div class="twelve columns">
<img src="/images/ukaid_logo.png" alt="UK aid from the British people">
<div>
<div class="breadcrumb">
<ul>
<li><a href="/">Home</a></li>
<% if region[:type] == "Regional" then %>
<li><a href="/location/regional">Aid by Location</a></li>
<% else %>
<li><a href="/location/global">Aid by Location</a></li>
<% end %>
<li><%= region[:name] %></li>
</ul>
</div>
<h1>
<%= region[:name] + " Region"%>
</h1>
</div>
</div>
</div>

<%= erb :'partials/_regions-summary-tabs', :locals => { :active => "projects", :region => region, :project_count => total_projects} %>
<%= erb :'partials/_project_list', :locals => { :projects => projects, :region => region, :project_count => total_projects, :countryAllProjectFilters => countryAllProjectFilters, :highLevelSectorList => highLevelSectorList, :oipa_api_url => oipa_api_url, :total_projects => total_projects, :budgetHigherBound => budgetHigherBound, :actualStartDate => actualStartDate, :plannedEndDate => plannedEndDate } %>

0 comments on commit 5f94999

Please sign in to comment.