Permalink
Browse files

Add license and embed in about page

  • Loading branch information...
1 parent 8063ce2 commit 1c2bf18801aabc554c9ddcd5d29966c400d88364 @stephenmcd committed Jul 31, 2011
Showing with 36 additions and 2 deletions.
  1. +27 −0 LICENSE
  2. +3 −1 core/views.py
  3. +6 −1 templates/about.html
View
27 LICENSE
@@ -0,0 +1,27 @@
+Copyright (c) Stephen McDonald, Josh de Blank and Travis White.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+ 1. Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ 3. Neither the name of Drawn By nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
View
@@ -114,5 +114,7 @@ def about(request, template="about.html"):
writer.translator_class = HTMLTranslator
with open(join(settings.PROJECT_ROOT, "README.rst"), "r") as f:
about = publish_string(f.read(), writer=writer)
- context = {"about": about}
+ with open(join(settings.PROJECT_ROOT, "LICENSE"), "r") as f:
+ license = publish_string(f.read(), writer=writer)
+ context = {"about": about, "license": license}
return render(request, template, context)
View
@@ -3,5 +3,10 @@
{% block body_class %}about{% endblock %}
{% block main %}
-<div class="about"><h1>About DrawnBy</h1>{{ about|safe }}</div>
+<div class="about">
+ <h1>About DrawnBy</h1>
+ {{ about|safe }}
+ <h1>License</h1>
+ {{ license|safe }}
+</div>
{% endblock %}

0 comments on commit 1c2bf18

Please sign in to comment.