| @@ -122,6 +122,7 @@ class Setting | |||||
| property :org_name, String, :length => 255 | property :org_name, String, :length => 255 | ||||
| property :org_url, String, :length => 255 | property :org_url, String, :length => 255 | ||||
| property :data_url, String, :length => 255 | property :data_url, String, :length => 255 | ||||
| property :disqus_shortname, String, :length => 255 | |||||
| end | end | ||||
| DataMapper.setup(:default, ENV['DATABASE_URL'] || "sqlite3://#{Dir.pwd}/db.sqlite3") | DataMapper.setup(:default, ENV['DATABASE_URL'] || "sqlite3://#{Dir.pwd}/db.sqlite3") | ||||
| @@ -1,7 +0,0 @@ | |||||
| .noprint | |||||
| %h3 Comments | |||||
| %p.highlight | |||||
| This is an independent website. | |||||
| %a{ :href => "#{SETTING.org_url}" }< | |||||
| = SETTING.org_name | |||||
| might not see your comments here or reply to them. | |||||
| @@ -0,0 +1,18 @@ | |||||
| %h3 Comments | |||||
| %p.highlight | |||||
| This is an independent website. | |||||
| %a{ :href => "#{SETTING.org_url}" }< | |||||
| = SETTING.org_name | |||||
| might not see your comments here or reply to them. | |||||
| <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://#{SETTING.disqus_shortname}.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=#{SETTING.disqus_shortname}">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> | |||||
| @@ -24,17 +24,6 @@ | |||||
| %td Amount £ | %td Amount £ | ||||
| %td= commify(sprintf("%0.2f", @payment.amount)) | %td= commify(sprintf("%0.2f", @payment.amount)) | ||||
| .clear | .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> | |||||
| .grid_9.noprint | |||||
| = haml_partial "disqus_comments" | |||||
| @@ -67,18 +67,6 @@ | |||||
| %td.right= sprintf("%0.1f", row['total'] / @total * 100) | %td.right= sprintf("%0.1f", row['total'] / @total * 100) | ||||
| .clear | .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> | |||||
| .grid_9.noprint | |||||
| = haml_partial "disqus_comments" | |||||
| @@ -64,17 +64,6 @@ | |||||
| .clear | .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> | |||||
| .grid_9.noprint | |||||
| = haml_partial "disqus_comments" | |||||
| @@ -72,17 +72,6 @@ | |||||
| %td.right= commify(sprintf("%0d", @total)) | %td.right= commify(sprintf("%0d", @total)) | ||||
| .clear | .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> | |||||
| .grid_9.noprint | |||||
| = haml_partial "disqus_comments" | |||||