changeset 95:1b5def90f5bf

Created a feedback page with Disqus comments.
author Brian Neal <bgneal@gmail.com>
date Wed, 14 Dec 2011 19:52:32 -0600
parents 48757f4e598b
children 701696a54ec3
files bns_website/static/css/base.css bns_website/templates/core/navbar_tag.html bns_website/templates/feedback.html bns_website/urls.py
diffstat 4 files changed, 38 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/bns_website/static/css/base.css	Tue Nov 29 19:05:30 2011 -0600
+++ b/bns_website/static/css/base.css	Wed Dec 14 19:52:32 2011 -0600
@@ -2,6 +2,14 @@
    padding-top: 60px;
    background-color: #d9ecfa;
 }
+a {
+   color: #00aab4;
+   text-decoration: none;
+}
+a:hover {
+   color: #00aab4;
+   text-decoration: underline;
+}
 .social-sharing {
    margin-top: 1.5em;
 }
--- a/bns_website/templates/core/navbar_tag.html	Tue Nov 29 19:05:30 2011 -0600
+++ b/bns_website/templates/core/navbar_tag.html	Wed Dec 14 19:52:32 2011 -0600
@@ -11,6 +11,7 @@
 <li{% if active_tab == "music" %} class="active"{% endif %}><a href="{% url 'music' %}">Listen</a></li>
 <li{% if active_tab == "videos" %} class="active"{% endif %}><a href="{% url 'videos' %}">Watch</a></li>
 <li{% if active_tab == "buy" %} class="active"{% endif %}><a href="{% url 'buy' %}">Buy</a></li>
+<li{% if active_tab == "feedback" %} class="active"{% endif %}><a href="{% url 'feedback' %}">Feedback</a></li>
 </ul>
 </div>
 </div>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bns_website/templates/feedback.html	Wed Dec 14 19:52:32 2011 -0600
@@ -0,0 +1,26 @@
+{% extends 'base.html' %}
+{% load core_tags %}
+{% block title %}Feedback{% endblock %}
+{% block content %}
+{% navbar 'feedback' %}
+<h1>Feedback</h1>
+<p>
+We want to hear from you! Do you want to post a mini-review of <span class="bns">Brave New Surf</span>? Do you have questions or comments about the bands, the album, the ordering process, surf music, or <a href="http://www.doublecrownrecords.com">Double Crown Records</a>? Or perhaps you just wanted to say hi? Please, leave your comments below.
+</p>
+<hr />
+<div id="disqus_thread"></div>
+<script type="text/javascript">
+    var disqus_shortname = 'bravenewsurf';
+    var disqus_developer = {% if debug %}1{% else %}0{% endif %};
+    var disqus_identifier = '/feedback/';
+    var disqus_url = 'http://bravenewsurf.com/feedback/';
+    var disqus_title = 'Brave New Surf Feedback';
+    (function() {
+        var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
+        dsq.src = 'http://' + 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">comments powered by Disqus.</a></noscript>
+<a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
+{% endblock %}
--- a/bns_website/urls.py	Tue Nov 29 19:05:30 2011 -0600
+++ b/bns_website/urls.py	Wed Dec 14 19:52:32 2011 -0600
@@ -29,6 +29,9 @@
     url(r'^buy/$',
         TemplateView.as_view(template_name="buy.html"),
         name="buy"),
+    url(r'^feedback/$',
+        TemplateView.as_view(template_name="feedback.html"),
+        name="feedback"),
     url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
     url(r'^admin/', include(admin.site.urls)),
 )