From a4255c7e51014a9c634f5a9c371c22fd72a60657 Mon Sep 17 00:00:00 2001 From: Paul Visscher Date: Tue, 27 Mar 2012 02:28:49 -0400 Subject: [PATCH] Add subscription form to the top right of the site (possibly all pages). I was only able to get the site running on my local machine well enough to test the main page. It's possible, based on the filename, that the changes will appear on all Conservancy pages. I'm not sure if that is what is wanted or not. If not, it seems like some more invasive changes would need to be made to the base template so that the form would only appear on the index page. The form POSTs to a mailman url. Once submitted, the user is redirected to the mailman site with no obvious way (aside from the back button) to return to the main site. This can be fixed by using AJAX to POST the form and report the subscription status back to the user, but it would likely require parsing the mailman html as there doesn't appear to be any real API to mailman. I tested this in Firefox 11.0 and Chrome 18.0.1025.113 beta. --- www/conservancy/static/conservancy.css | 7 +++++++ www/conservancy/templates/base_conservancy.html | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/www/conservancy/static/conservancy.css b/www/conservancy/static/conservancy.css index 86af6681..e4d33cad 100644 --- a/www/conservancy/static/conservancy.css +++ b/www/conservancy/static/conservancy.css @@ -243,4 +243,11 @@ body.conservancy-sponsors #navbar ul li.sponsors a /* NO COMMA HERE! */ text-align: center; list-style: none; margin-right: 5px; + +#subbox { + position: absolute; + padding-top: 10px; + right: 0px; + width: 200px; + font-size: 12px; } diff --git a/www/conservancy/templates/base_conservancy.html b/www/conservancy/templates/base_conservancy.html index 06b59707..2439d254 100644 --- a/www/conservancy/templates/base_conservancy.html +++ b/www/conservancy/templates/base_conservancy.html @@ -15,6 +15,11 @@

Software Freedom Conservancy

+ +
+ Subscribe to our announcements mailing list
+
+