@@ -36,7 +36,7 @@ class Site | |||||
path = '.' | path = '.' | ||||
Petrify.page(path, 'index', \ | Petrify.page(path, 'index', \ | ||||
{ summary: summary, last_updated: last_updated }) | { summary: summary, last_updated: last_updated }) | ||||
Petrify.csv(path, 'inlink-summary', summary) | |||||
Petrify.csv(path, 'kiosks-summary', summary) | |||||
# Generate a JSON file with all the data | # Generate a JSON file with all the data | ||||
apps = ScraperWiki.select("* from applications") | apps = ScraperWiki.select("* from applications") | ||||
@@ -52,7 +52,7 @@ class Site | |||||
order by date_decision desc limit 60") | order by date_decision desc limit 60") | ||||
path = 'decisions' | path = 'decisions' | ||||
Petrify.page(path, 'decisions', { apps: apps, title: "Latest decisions" }) | Petrify.page(path, 'decisions', { apps: apps, title: "Latest decisions" }) | ||||
Petrify.csv(path, 'inlink-decisions', apps) | |||||
Petrify.csv(path, 'kiosks-decisions', apps) | |||||
# Appeals page | # Appeals page | ||||
summary = ScraperWiki.select(" | summary = ScraperWiki.select(" | ||||
@@ -76,7 +76,7 @@ class Site | |||||
path = 'appeals' | path = 'appeals' | ||||
Petrify.page(path, 'appeals', { summary: summary, apps: apps, title: "Appeals" }) | Petrify.page(path, 'appeals', { summary: summary, apps: apps, title: "Appeals" }) | ||||
Petrify.csv(path, 'inlink-appeals', apps) | |||||
Petrify.csv(path, 'kiosks-appeals', apps) | |||||
# Media page | # Media page | ||||
stories = CSV.read('media.csv', :headers => true ) | stories = CSV.read('media.csv', :headers => true ) | ||||
@@ -4,7 +4,7 @@ body | |||||
color: #555; | color: #555; | ||||
font-family: Helvetica, Arial, sans-serif; | font-family: Helvetica, Arial, sans-serif; | ||||
font-size: 100%; | font-size: 100%; | ||||
width: 100%; | |||||
width: 100%; | |||||
line-height: 1.5em; | line-height: 1.5em; | ||||
margin: 0; | margin: 0; | ||||
padding: 0; | padding: 0; | ||||
@@ -25,8 +25,8 @@ p | |||||
#main | #main | ||||
{ | { | ||||
width: 920px; | |||||
margin: 50px auto; | |||||
width: 60rem; | |||||
margin: 5rem auto; | |||||
} | } | ||||
tr.footer { | tr.footer { | ||||
@@ -208,4 +208,4 @@ nav | |||||
a, a:visited { | a, a:visited { | ||||
background-color: #fff; | background-color: #fff; | ||||
} | } | ||||
} | |||||
} |
@@ -40,7 +40,7 @@ | |||||
%h2 Appealed applications | %h2 Appealed applications | ||||
%p= download_button('inlink-appeals.csv') | |||||
%p= download_button('kiosks-appeals.csv') | |||||
%table#applications | %table#applications | ||||
%thead | %thead | ||||
@@ -26,7 +26,7 @@ | |||||
%p | %p | ||||
%a{ :rel => 'alternate', :type => 'application/rss+xml', :href => 'media.xml' } | %a{ :rel => 'alternate', :type => 'application/rss+xml', :href => 'media.xml' } | ||||
RSS feed for InLinkUK media stories in | |||||
RSS feed for BT Street Hub media stories in | |||||
= auth['authority_name'] | = auth['authority_name'] | ||||
- if stories.size > 0 | - if stories.size > 0 | ||||
@@ -1,6 +1,6 @@ | |||||
%h1 Latest decisions | %h1 Latest decisions | ||||
= download_button('inlink-decisions.csv') | |||||
= download_button('kiosks-decisions.csv') | |||||
%table | %table | ||||
%thead | %thead | ||||
@@ -6,7 +6,7 @@ | |||||
%p.warning There are typically two applications per kiosk: one for full planning permission or telecoms prior approval, and one for advertisement consent. So the number of kiosks applied for is half the number of applications. | %p.warning There are typically two applications per kiosk: one for full planning permission or telecoms prior approval, and one for advertisement consent. So the number of kiosks applied for is half the number of applications. | ||||
%p= download_button('inlink-summary.csv') | |||||
%p= download_button('kiosks-summary.csv') | |||||
%table#summary | %table#summary | ||||
%thead | %thead | ||||
@@ -2,7 +2,7 @@ | |||||
%html | %html | ||||
%head | %head | ||||
%title | %title | ||||
- subtitle = "InLinkUK from BT kiosks planning applications" | |||||
- subtitle = "BT Street Hub kiosks planning applications" | |||||
- if defined? title | - if defined? title | ||||
= "#{title} · #{subtitle}" | = "#{title} · #{subtitle}" | ||||
- else | - else | ||||
@@ -11,7 +11,7 @@ | |||||
%body | %body | ||||
#main | #main | ||||
%header | %header | ||||
%h1 InLinkUK from BT kiosks planning applications | |||||
%h1 BT Street Hub kiosks planning applications | |||||
%nav | %nav | ||||
%ul.menu | %ul.menu | ||||
%li | %li | ||||
@@ -38,8 +38,8 @@ | |||||
%a{ :href => 'https://git.adrianshort.org/adrian/kiosks'}< | %a{ :href => 'https://git.adrianshort.org/adrian/kiosks'}< | ||||
Source code | Source code | ||||
%a{ :href => 'https://www.adrianshort.org/tags/inlinkuk/'}< | %a{ :href => 'https://www.adrianshort.org/tags/inlinkuk/'}< | ||||
InLink blog posts | |||||
BT Street Hub / InLink blog posts | |||||
%a{ :href => '/data.json'}< | %a{ :href => '/data.json'}< | ||||
JSON bulk download | JSON bulk download | ||||
%a{ :href => 'https://twitter.com/search?f=tweets&vertical=default&q=%23inlink'}< | |||||
\#InLink on Twitter | |||||
%a{ :href => 'https://twitter.com/search?q=%22bt%20street%20hub%22&src=typed_query&f=live'}< | |||||
\BT Street Hub on Twitter |