Skip to content
Browse files

donate page

  • Loading branch information...
1 parent a23115b commit 7a4784a33972affe1f8f40b0f7c2d3921ed11ad0 Justine Tunney committed
Showing with 32 additions and 0 deletions.
  1. +24 −0 occupywallst/templates/occupywallst/donate.html
  2. +1 −0 occupywallst/urls.py
  3. +7 −0 occupywallst/views.py
View
24 occupywallst/templates/occupywallst/donate.html
@@ -0,0 +1,24 @@
+{% extends base %}
+{% load ows %}
+
+{% block title %}Donations | OccupyWallSt.org{% endblock title %}
+
+{% block stylesheets %}
+ <style type="text/css">
+ #navbar .nav-donate {
+ background: #900;
+ background: -webkit-gradient(linear, left top, left bottom, from(#a11), to(#900));
+ background: -moz-linear-gradient(top, #a11, #900);
+ }
+ </style>
+{% endblock stylesheets %}
+
+{% block content %}
+ <table style="width:100%"><tbody><tr><td id="left">
+ <div id="donate">
+ {% verbiage 'donate' LANGUAGE_CODE %}
+ </div>
+ </td><td id="right">
+ {% verbiage 'donate-sidebar' LANGUAGE_CODE %}
+ </td></tr></tbody></table>
+{% endblock content %}
View
1 occupywallst/urls.py
@@ -37,6 +37,7 @@
url(r'^chat/(?P<room>[a-zA-Z0-9]+)/$', 'occupywallst.views.chat', name='chat-private'),
url(r'^housing/$', 'occupywallst.views.housing', name='housing'),
url(r'^conference/$', 'occupywallst.views.conference', name='conference'),
+ url(r'^donate/$', 'occupywallst.views.donate', name='donate'),
url(r'^about/$', 'occupywallst.views.about', name='about'),
url(r'^login/$', 'occupywallst.views.login', name='login'),
url(r'^logout/$', 'occupywallst.views.logout', name='logout'),
View
7 occupywallst/views.py
@@ -94,6 +94,13 @@ def calendar(request):
context_instance=RequestContext(request))
+@my_cache(lambda r: 'donate')
+def donate(request):
+ return render_to_response(
+ 'occupywallst/donate.html', {},
+ context_instance=RequestContext(request))
+
+
@my_cache(lambda r, room="pub": 'chat:' + room)
def chat(request, room="pub"):
return render_to_response(

0 comments on commit 7a4784a

Please sign in to comment.
Something went wrong with that request. Please try again.