Browse Source

Added Disqus comments to various pages

pull/3/head
Adrian Short 14 years ago
parent
commit
d602c79594
5 changed files with 98 additions and 23 deletions
  1. +7
    -0
      views/_comment_header.haml
  2. +44
    -19
      views/about.haml
  3. +16
    -2
      views/payment.haml
  4. +15
    -1
      views/service.haml
  5. +16
    -1
      views/supplier.haml

+ 7
- 0
views/_comment_header.haml View File

@@ -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.

+ 44
- 19
views/about.haml View File

@@ -10,17 +10,18 @@
%p.vcard %p.vcard
This website was designed and written by 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 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 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 %p.highlight
This site is made with 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 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. and is entirely indepdendent of the council. The council did not commission or pay for this website.
@@ -28,28 +29,52 @@
%p %p
This site is written in 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 %p
The code for this website is 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 It is hosted by
%a{ :href => "http://heroku.com/" }Heroku.
%a{ :href => "http://heroku.com/" }<
Heroku.
%p %p
The page templates use The page templates use
%a{ :href => "http://haml-lang.com/" }Haml
%a{ :href => "http://haml-lang.com/" }<
Haml
and SprySoft's 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 for development and
%a{ :href => "http://www.postgresql.org/" }PostgreSQL
%a{ :href => "http://www.postgresql.org/" }<
PostgreSQL
for production, abstracted through for production, abstracted through
%a{ :href => "http://datamapper.org/" }DataMapper.
%a{ :href => "http://datamapper.org/" }<
DataMapper.
%p %p
Source control and deployment is done with Source control and deployment is done with
%a{ :href => "http://git-scm.com/" }Git.

%a{ :href => "http://git-scm.com/" }<
Git.
.clear
<div class="grid_9">
= haml_partial "comment_header"
<div id="disqus_thread" class="noprint"></div>
<script type="text/javascript">
var disqus_developer = 1;
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://armchairauditor.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript=armchairauditor">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink noprint">Comments powered by <span class="logo-disqus">Disqus</span></a>
</div>

+ 16
- 2
views/payment.haml View File

@@ -1,4 +1,4 @@
.grid_12
.grid_9
%h2= @page_title = "Payment " + @payment.id.to_s %h2= @page_title = "Payment " + @payment.id.to_s
%table %table
@@ -23,4 +23,18 @@
%tr %tr
%td Amount &pound; %td Amount &pound;
%td= sprintf("%0.2f", @payment.amount) %td= sprintf("%0.2f", @payment.amount)
.clear
<div class="grid_9 noprint">
= haml_partial "comment_header"
<div id="disqus_thread" class="noprint"></div>
<script type="text/javascript">
var disqus_developer = 1;
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://armchairauditor.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript=armchairauditor">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink noprint">Comments powered by <span class="logo-disqus">Disqus</span></a>
</div>

+ 15
- 1
views/service.haml View File

@@ -86,5 +86,19 @@
%strong TOTAL %strong TOTAL
%td.right= sprintf("%0d", @total) %td.right= sprintf("%0d", @total)

.clear
<div class="grid_9 noprint">
= haml_partial "comment_header"
<div id="disqus_thread" class="noprint"></div>
<script type="text/javascript">
var disqus_developer = 1;
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://armchairauditor.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript=armchairauditor">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink noprint">Comments powered by <span class="logo-disqus">Disqus</span></a>
</div>

+ 16
- 1
views/supplier.haml View File

@@ -67,4 +67,19 @@
%strong TOTAL %strong TOTAL
%td.right= sprintf("%0d", @total) %td.right= sprintf("%0d", @total)
.clear
<div class="grid_9 noprint">

<div id="disqus_thread" class="noprint"></div>
= haml_partial "comment_header"
<script type="text/javascript">
var disqus_developer = 1;
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://armchairauditor.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript=armchairauditor">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink noprint">Comments powered by <span class="logo-disqus">Disqus</span></a>
</div>

Loading…
Cancel
Save