Skip to content

Commit

Permalink
Merge pull request #13743 from everypolitician/fix-wikidata-report-page
Browse files Browse the repository at this point in the history
Fix broken page title on Wikidata pages
  • Loading branch information
tmtmtmtm authored Jul 28, 2016
2 parents d62c22e + 1fb594f commit 1a035fc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ gem 'sinatra', github: 'sinatra/sinatra'
gem 'dotenv'
gem 'json'
gem 'puma'
gem 'nokogiri'
gem 'nokogiri', '>= 1.6.7'
gem 'octokit'
gem 'redcarpet'
gem 'rack-test'
Expand Down
10 changes: 6 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@ GEM
iso_country_codes (0.7.1)
json (1.8.2)
method_source (0.8.2)
mini_portile (0.5.3)
mini_portile2 (2.1.0)
multipart-post (2.0.0)
nokogiri (1.6.1)
mini_portile (~> 0.5.0)
nokogiri (1.6.8)
mini_portile2 (~> 2.1.0)
pkg-config (~> 1.1.7)
octokit (3.8.0)
sawyer (~> 0.6.0, >= 0.5.3)
pkg-config (1.1.7)
pry (0.10.1)
coderay (~> 1.1.0)
method_source (~> 0.8.1)
Expand Down Expand Up @@ -59,7 +61,7 @@ DEPENDENCIES
everypolitician-popolo!
iso_country_codes
json
nokogiri
nokogiri (>= 1.6.7)
octokit
pry
puma
Expand Down
2 changes: 1 addition & 1 deletion app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def soft_redirect(url, page_title)
last_sha = @house[:sha]
popolo_file = EveryPolitician::GithubFile.new(@house[:popolo], last_sha)
@popolo = JSON.parse(popolo_file.raw, symbolize_names: true)
@page_title = "EveryPolitician: #{@country[:name]} — #{@house}"
@page_title = "EveryPolitician: #{@country[:name]} — #{@house[:name]}"
erb :wikidata_match
end

Expand Down

0 comments on commit 1a035fc

Please sign in to comment.