From ce36f6771dc720ce2f6274d144972250388646cd Mon Sep 17 00:00:00 2001 From: Andromeda Yelton Date: Tue, 1 May 2012 09:56:19 -0400 Subject: [PATCH 1/5] css changes per Stefan, part 1 --- frontend/templates/book_panel.html | 22 +++++++------- .../wishlist_unglued_book_released/full.txt | 4 +-- frontend/templates/pledge.html | 30 +++++++++++-------- frontend/templates/supporter.html | 20 +++++++------ frontend/templates/work.html | 4 +-- frontend/views.py | 8 ++++- static/css/campaign.css | 22 ++++++++++---- static/css/pledge.css | 13 +++++--- static/css/sitewide.css | 6 ++-- static/less/campaign.less | 10 +++++++ static/less/pledge.less | 15 +++++++--- static/less/sitewide.less | 2 +- 12 files changed, 102 insertions(+), 54 deletions(-) diff --git a/frontend/templates/book_panel.html b/frontend/templates/book_panel.html index 9d64d65e..094e161c 100644 --- a/frontend/templates/book_panel.html +++ b/frontend/templates/book_panel.html @@ -53,6 +53,17 @@ {% endif %}{% endif %}{% endif %}{% endif %}{% endif %}{% endif %}{% endif %} + {% comment %}link to work page{% endcomment %} +
+ More Info +
+ + {% comment %}bibliographic data{% endcomment %} +
+

{{ work.title }}

+

{{ author }}

+
+ {% comment %}status of book vis-a-vis user's wishlist{% endcomment %} {% if works and activetab %}
@@ -82,17 +93,6 @@
{% endif %}{% endif %}{% endifequal %}{% endif %}{% endif %} - {% comment %}bibliographic data{% endcomment %} -
-

{{ work.title }}

-

{{ author }}

-
- - {% comment %}link to work page{% endcomment %} -
- More Info -
-
diff --git a/frontend/templates/notification/wishlist_unglued_book_released/full.txt b/frontend/templates/notification/wishlist_unglued_book_released/full.txt index c0ace2aa..d935fd96 100644 --- a/frontend/templates/notification/wishlist_unglued_book_released/full.txt +++ b/frontend/templates/notification/wishlist_unglued_book_released/full.txt @@ -20,7 +20,7 @@ URL: {{ ebook.url }} {% if work.ebooks.0.rights == 'PD-US' %} A public domain ebook belongs to all of us. You can do anything you like with it. {% else %} -The Creative Commons licensing terms for allow you to redistribute the files under the specified license terms. There's no DRM. +The Creative Commons licensing terms for {{ work.title }} allow you to redistribute the files under the specified license terms. There's no DRM. For full details, see http://creativecommons.org/licenses/. {% endif %} {% if work.last_campaign_status == 'SUCCESSFUL' %} @@ -33,4 +33,4 @@ Thanks, Your Tireless Unglue.it Staff -Give ebooks to the world; give income to authors and publishers. Unglue.it +Give ebooks to the world; give income to authors and publishers. Unglue.it \ No newline at end of file diff --git a/frontend/templates/pledge.html b/frontend/templates/pledge.html index 5f6bfbe7..42ff5bdd 100644 --- a/frontend/templates/pledge.html +++ b/frontend/templates/pledge.html @@ -10,16 +10,29 @@ {% endblock %} {% block doccontent %} -
+
-
+
{{ work.title }}
-

{{ work.title }}

-

{{ work.author }}

-

{{ work.publication_date }}

+
+

{{ work.title }}

+
+
+

{{ work.author }}

+

{{ pubdate }}

+
+
+
+ +
+
+ ${{ work.last_campaign.target }} needed by
+ {{ work.last_campaign.deadline }} +
+
@@ -32,13 +45,6 @@
-
-
- ${{ work.last_campaign.target }} needed by
- {{ work.last_campaign.deadline }} -
-
-
diff --git a/frontend/templates/supporter.html b/frontend/templates/supporter.html index 22dd423c..a5a0a150 100644 --- a/frontend/templates/supporter.html +++ b/frontend/templates/supporter.html @@ -255,19 +255,20 @@ there's no tab for seeing ALL my books, only the filters! huh.
+ + {% if not works %} + + {% comment %} + if we're in empty-wishlist, slideshow mode, suppress tab area + {% endcomment %} +
- - - - {% if not works %} - {% comment %} - don't let people toggle views if we're doing the slideshow -- it'll look weird - {% endcomment %} +
  • View As:
  • @@ -281,14 +282,15 @@ there's no tab for seeing ALL my books, only the filters! huh.
- {% endif %}
+ {% endif %} +
{% ifequal wishlist.works.all.count 0 %} {% ifequal request.user supporter %}
-
You haven't wishlisted anything yet. Can we help?

+

Add a book to your wishlist to get started.



diff --git a/frontend/templates/work.html b/frontend/templates/work.html index af907d64..74cfcf71 100644 --- a/frontend/templates/work.html +++ b/frontend/templates/work.html @@ -114,7 +114,7 @@ $j(document).ready(function(){
{% endif %} {% endif %} -
+
{% if work.first_ebook %}
@@ -139,7 +139,7 @@ $j(document).ready(function(){ {% endfor %}
- {% endif %} + {% endif %}
@@ -50,14 +50,6 @@ $j("#js-leftcol").ready(function() {
-{% if faqmenu == "complete" %} -
-
-
- {% include "slideshow.html" %} -
-
-{% endif %} {% endblock %} diff --git a/frontend/templates/pledge_complete.html b/frontend/templates/pledge_complete.html index 05a5ed16..a6abf53f 100644 --- a/frontend/templates/pledge_complete.html +++ b/frontend/templates/pledge_complete.html @@ -9,6 +9,7 @@ +