From a4255c7e51014a9c634f5a9c371c22fd72a60657 2013-02-21 18:34:54 From: Paul Visscher Date: 2013-02-21 18:34:54 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. --- diff --git a/www/conservancy/static/conservancy.css b/www/conservancy/static/conservancy.css index 86af668139e6358fb116635e3a76c4016ebf2104..e4d33cad1ebfdda22f8a443977b7bce0a5633d11 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 06b597070dfa2238877d3825888bcdc9bece556c..2439d25405fb7e2e7252f8ad6b9d0629954c4ec1 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
+
+