From d602c795949e7bda6ba9bfc5f47fe7f4f3483b97 Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Sat, 12 Jun 2010 18:23:43 +0100 Subject: [PATCH] Added Disqus comments to various pages --- views/_comment_header.haml | 7 +++++ views/about.haml | 63 ++++++++++++++++++++++++++------------ views/payment.haml | 18 +++++++++-- views/service.haml | 16 +++++++++- views/supplier.haml | 17 +++++++++- 5 files changed, 98 insertions(+), 23 deletions(-) create mode 100644 views/_comment_header.haml diff --git a/views/_comment_header.haml b/views/_comment_header.haml new file mode 100644 index 0000000..fe41b48 --- /dev/null +++ b/views/_comment_header.haml @@ -0,0 +1,7 @@ +.noprint + %h3 Comments + %p.highlight + This is an independent website. + %a{ :href => "http://www.rbwm.gov.uk/" }< + Windsor and Maidenhead Council + might not see your comments here or reply to them. \ No newline at end of file diff --git a/views/about.haml b/views/about.haml index 6c708a4..aaf409e 100644 --- a/views/about.haml +++ b/views/about.haml @@ -10,17 +10,18 @@ %p.vcard This website was designed and written by - %a.fn.url{ :href => 'http://adrianshort.co.uk' } Adrian Short - \. + %a.fn.url{ :href => 'http://adrianshort.co.uk' }< + Adrian Short. You can contact me by email at - %a.email{ :href => "mailto:adrian.short@gmail.com" } adrian.short@gmail.com + %a.email{ :href => "mailto:adrian.short@gmail.com" }< + adrian.short@gmail.com and - %a.url{ :href => "http://twitter.com/adrianshort" } follow me on Twitter - \. + %a.url{ :href => "http://twitter.com/adrianshort" }< + follow me on Twitter. %p.highlight This site is made with - %a{ :href => 'http://www.rbwm.gov.uk/web/finance_payments_to_suppliers.htm' } + %a{ :href => 'http://www.rbwm.gov.uk/web/finance_payments_to_suppliers.htm' }< the Royal Borough of Windsor and Maidenhead's spending data and is entirely indepdendent of the council. The council did not commission or pay for this website. @@ -28,28 +29,52 @@ %p This site is written in - %a{ :href => "http://www.ruby-lang.org/en/" }Ruby - \ using the - %a{ :href => "http://www.sinatrarb.com/" }Sinatra framework. + %a{ :href => "http://www.ruby-lang.org/en/" }< + Ruby + using the + %a{ :href => "http://www.sinatrarb.com/" }< + Sinatra framework. %p The code for this website is - %a{ :href => "http://github.com/adrianshort/Armchair-Auditor" }open source and managed on Github. + %a{ :href => "http://github.com/adrianshort/Armchair-Auditor" }< + open source and managed on Github. It is hosted by - %a{ :href => "http://heroku.com/" }Heroku. + %a{ :href => "http://heroku.com/" }< + Heroku. %p The page templates use - %a{ :href => "http://haml-lang.com/" }Haml + %a{ :href => "http://haml-lang.com/" }< + Haml and SprySoft's - %a{ :href => "http://www.spry-soft.com/grids/" }Variable Grid System - \. The database is - %a{ :href => "http://www.sqlite.org/" }SQLite + %a{ :href => "http://www.spry-soft.com/grids/" }< + Variable Grid System. + The database is + %a{ :href => "http://www.sqlite.org/" }< + SQLite for development and - %a{ :href => "http://www.postgresql.org/" }PostgreSQL + %a{ :href => "http://www.postgresql.org/" }< + PostgreSQL for production, abstracted through - %a{ :href => "http://datamapper.org/" }DataMapper. + %a{ :href => "http://datamapper.org/" }< + DataMapper. %p Source control and deployment is done with - %a{ :href => "http://git-scm.com/" }Git. - + %a{ :href => "http://git-scm.com/" }< + Git. +.clear +
+= haml_partial "comment_header" +
+ + +Comments powered by Disqus +
\ No newline at end of file diff --git a/views/payment.haml b/views/payment.haml index 76edfe0..5222522 100644 --- a/views/payment.haml +++ b/views/payment.haml @@ -1,4 +1,4 @@ -.grid_12 +.grid_9 %h2= @page_title = "Payment " + @payment.id.to_s %table @@ -23,4 +23,18 @@ %tr %td Amount £ %td= sprintf("%0.2f", @payment.amount) - \ No newline at end of file +.clear +
+= haml_partial "comment_header" +
+ + +Comments powered by Disqus +
\ No newline at end of file diff --git a/views/service.haml b/views/service.haml index 00b34ec..513adcf 100644 --- a/views/service.haml +++ b/views/service.haml @@ -86,5 +86,19 @@ %strong TOTAL %td.right= sprintf("%0d", @total) - +.clear +
+= haml_partial "comment_header" +
+ + +Comments powered by Disqus +
\ No newline at end of file diff --git a/views/supplier.haml b/views/supplier.haml index da7adce..c3fcb55 100644 --- a/views/supplier.haml +++ b/views/supplier.haml @@ -67,4 +67,19 @@ %strong TOTAL %td.right= sprintf("%0d", @total) - \ No newline at end of file +.clear +
+ +
+= haml_partial "comment_header" + + +Comments powered by Disqus +
\ No newline at end of file