From d102854d028d3bfc807bde7a71bb6ddbcbc198d4 Mon Sep 17 00:00:00 2001 From: eric Date: Thu, 8 May 2014 10:22:35 -0400 Subject: [PATCH] add license-specific view to CC display --- frontend/templates/cc_list.html | 4 ++-- frontend/templates/explore.html | 13 ++++++++++++- frontend/urls.py | 1 + frontend/views.py | 22 ++++++++++++++++++---- static/css/sitewide4.css | 2 +- static/less/sitewide4.less | 3 +++ 6 files changed, 37 insertions(+), 8 deletions(-) diff --git a/frontend/templates/cc_list.html b/frontend/templates/cc_list.html index 71c5b346..23a649c5 100644 --- a/frontend/templates/cc_list.html +++ b/frontend/templates/cc_list.html @@ -29,7 +29,7 @@
Ready to Read
-
These {% if pub_lang %}{{ pub_lang|ez_lang_name }} language {% endif %}Creative Commons licensed ebooks are ready to read - the people who created them want you to read and share them. +
These {% if pub_lang %}{{ pub_lang|ez_lang_name }} language {% endif %}Creative Commons {{ license }} licensed ebooks are ready to read - the people who created them want you to read and share them.
@@ -72,7 +72,7 @@
{% ifequal work_list.count 0 %} - There aren't any {{ pub_lang|ez_lang_name }} works in this list. Why don't you add some? + There aren't any {{ pub_lang|ez_lang_name }} Creative Commons {{ license }} works in this list. Why don't you add some? Use the "More" tab on a work, there are links there for adding CC ebooks. {% else %} {% lazy_paginate 20 work_list using "work_list" %} {% for work in work_list %} diff --git a/frontend/templates/explore.html b/frontend/templates/explore.html index 2010b6a8..d14fae7f 100644 --- a/frontend/templates/explore.html +++ b/frontend/templates/explore.html @@ -24,6 +24,17 @@
  • Ready to Read
  • Latest Creative Commons
  • + {% ifequal aspect 'cc' %} + + {% endifequal %} {% if pubname %}
  • {{ pubname }}...