From 6c071c6cbb739209e9d8488ff7080f8ad7c7d2d0 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Wed, 28 Dec 2011 17:29:37 +0100 Subject: [PATCH] publishing plan, plus some layout fixes --- wolnelektury/static/css/base.css | 1 + wolnelektury/static/css/book_box.css | 26 ++++++++++++---- wolnelektury/static/css/header.css | 7 +++-- wolnelektury/static/fonts/WL-Nav.ttf | Bin 9492 -> 2244 bytes wolnelektury/static/fonts/WL.ttf | Bin 5120 -> 5248 bytes .../templates/catalogue/book_short.html | 2 +- wolnelektury/templates/main_page.html | 1 + wolnelektury/templates/publish_plan.html | 16 ++++++++++ wolnelektury/urls.py | 1 + wolnelektury/views.py | 29 ++++++++++++++++-- 10 files changed, 71 insertions(+), 12 deletions(-) create mode 100755 wolnelektury/templates/publish_plan.html diff --git a/wolnelektury/static/css/base.css b/wolnelektury/static/css/base.css index f55a39e01..d7be8e395 100755 --- a/wolnelektury/static/css/base.css +++ b/wolnelektury/static/css/base.css @@ -90,6 +90,7 @@ h2 { -moz-box-shadow: 2px 2px 2px #ddd; -webkit-box-shadow: 2px 2px 2px #ddd; box-shadow: 2px 2px 2px #ddd; + z-index: 500; } #themes-list ul { list-style: none; diff --git a/wolnelektury/static/css/book_box.css b/wolnelektury/static/css/book_box.css index ca2e72696..272f558b3 100755 --- a/wolnelektury/static/css/book_box.css +++ b/wolnelektury/static/css/book_box.css @@ -109,19 +109,33 @@ .book-box-tools { font-size: 1.1em; } -.book-box-tools a:before { +.book-box-read a:before { + content: "\2609"; + font-family: WL-Nav; + font-size: 2.25em; + margin-right: .15em; + vertical-align: middle; +} +.book-box-download a:before { content: "⇩"; font-family: WL-Nav; - font-size: 2em; - margin-right: .25em; + font-size: 2.25em; + margin-right: .15em; + vertical-align: middle; +} +.book-box-audiobook a:before { + content: "\266B"; + font-family: WL-Nav; + font-size: 2.25em; + margin-right: .15em; vertical-align: middle; } .book-box-read { - width: 11em; + width: 11.5em; } .book-box-download { - width: 8em; + width: 8.5em; } .book-box-audiobook { - width: 8em; + width: 7em; } diff --git a/wolnelektury/static/css/header.css b/wolnelektury/static/css/header.css index 79e8815d6..71dd09c95 100755 --- a/wolnelektury/static/css/header.css +++ b/wolnelektury/static/css/header.css @@ -66,8 +66,8 @@ display: inline-block; width: 63.1em; padding-left: .5em; - padding-right: .5em; - padding-top: 0; + padding-right: 0; + padding-top: 0.5em; padding-bottom: 0; } @@ -75,7 +75,7 @@ padding: 0; height: 3.3em; border: none; - width: 62.6em; + width: 63.1em; font-size: 1em; padding-left: .5em; -webkit-border-radius: .5em; @@ -92,6 +92,7 @@ padding: 0; margin: 0; width: 9.4em; + float: right; } #search-button button { font-size: 1em; diff --git a/wolnelektury/static/fonts/WL-Nav.ttf b/wolnelektury/static/fonts/WL-Nav.ttf index 05282b86652d3496d73782b935d96ef2f8712a6f..e73dedf6f3a029c62f1c84cc9904d39ea961eeb4 100644 GIT binary patch literal 2244 zcmds2?N3uz7=O;aZEs6?X?ZEdp`5nbBE!C15adOI0a46whN*GHL@%^J1=^+*5tA)u ze%M_6VCE7NOdMOBjItLg`<>egnl1hTJE!NK z-}5`?{Lb?{=iFOjL{va$NTvf_T?c!Pee?N#BJ(WR%Gcirs9$8>%Mh_6u#XRnX^HMv z_uYkk53O(DWQvnZnj(^e7&i=Q?5=qC0BU<>cPd*G_ z>;YQCFbMN4128Lvy?J;nb;^F9T(G}{T{#*b&{#WL#QJ*JwlVEgg7(w97~cV#$F#A? z*!l185E-vReBMLFh zmdJ!Wt(SKG3?CTW9j05Zi{26Vu!H*GTLNRxd%%gYQIRLmh(vfP??vlI+o$UYZP6-o z>kh&a3YBCak-I!STFG_M^{dz79l@#5I)0dV_{zf5h08DONzAnFgot1*TY!3b-ot0y z|F75YJJsm5jly)F1(6Ay1*?&!k!6MaHyH(5=M@7zR&Sb&4_fDC36O5ef;I|zUNNz! zt@B9ZW3|rivis`n9v8DL-o7nOuMD~*yl%**xS4>sL#*7w8kupUZ>4{w&nLYl9of2~ zNgw%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A)Mty zgh6o$Y8GrzK1BF33L%KF=tZ!HXb^}*MYP8tB|<#?oCkjA$M=2be82CUWL>g;8VrCF zNr>odYdd?ocj51z0!XzDQg*F5Kg<3ICoCovEol8Rt#_JA@sY7F}|d@ti3$uT3i0 zNaisn3sTtZVZkb;aEP|ff!2P!g`(y~g*V|M*#yi5cG64>&QrU?cK)MKa={0fB}D#^ zVL^;~IV57NP|$(%h++sM7{er{)V!$(<&|olB7Wyfe357PV?NIx@rV4udJUL)U#Q4l z5dzF&{RU*`#7`EXSO_4kcu)5VvCE=t66V!NoI z2&FV1O!F~MF{^H1M-Df-ZF|GDB}^?-+0(J*(b44}%f@EVJO9KxbC*?a{}dI2DB{N! zH@8G_|pfbxY{b@JR$zMQHi zF1tdI6O>PcBb91nVXHO0M*2N!;@XxupWJx!lC)4S*tWG|X1CP)WR@agukCpC%oudS z>xB1LYh_dazNeoIs)RMith=blFGwE_@uKNi&fO1hfy7@xT61g59!oPp0ai&r+#QYv z%!*?ZrTFM??BL&s$Gb#(cKc1YXDKn%RxAtFL_U{XqI+uL=sY^m(BPUF#--54f5whjw1jXGP`kyz4MJo}SjHT^DI|!Isqz#q!a@}_ zT*Wms!Z`ogD_A7f3t915tc%y;iC7hn#Ut@hJOK0Gv;N?wG{}Nid{dT2w4fFFC`6A&lTSCNPOJIExFEat1}en9_Noec~U7v4#5p diff --git a/wolnelektury/templates/catalogue/book_short.html b/wolnelektury/templates/catalogue/book_short.html index c80efff91..524617425 100644 --- a/wolnelektury/templates/catalogue/book_short.html +++ b/wolnelektury/templates/catalogue/book_short.html @@ -60,7 +60,7 @@
  • {% if book.has_mp3_file %} - {% trans "Audiobook" %} + {% trans "Listen" %} {% endif %}
  • diff --git a/wolnelektury/templates/main_page.html b/wolnelektury/templates/main_page.html index 2a63ed57c..002d45bc0 100755 --- a/wolnelektury/templates/main_page.html +++ b/wolnelektury/templates/main_page.html @@ -60,6 +60,7 @@
  • {% trans "Widget" %}
  • {% trans "Public domain counter" %}
  • {% trans "Missing a book?" %}
  • +
  • {% trans "Publishing plan" %}
  • diff --git a/wolnelektury/templates/publish_plan.html b/wolnelektury/templates/publish_plan.html new file mode 100755 index 000000000..2a6d90a8d --- /dev/null +++ b/wolnelektury/templates/publish_plan.html @@ -0,0 +1,16 @@ +{% extends "base.html" %} +{% load i18n %} + +{% block titleextra %}{% trans "Publishing plan" %}{% endblock titleextra %} + + +{% block body %} +

    {% trans "Publishing plan" %}

    + + + +{% endblock %} diff --git a/wolnelektury/urls.py b/wolnelektury/urls.py index 4ec1b3713..63a49eca6 100644 --- a/wolnelektury/urls.py +++ b/wolnelektury/urls.py @@ -11,6 +11,7 @@ admin.autodiscover() urlpatterns = patterns('wolnelektury.views', url(r'^$', 'main_page', name='main_page'), + url(r'^planowane/$', 'publish_plan', name='publish_plan'), url(r'^zegar/$', 'clock', name='clock'), diff --git a/wolnelektury/views.py b/wolnelektury/views.py index 0af07f454..3fa4337af 100755 --- a/wolnelektury/views.py +++ b/wolnelektury/views.py @@ -1,13 +1,15 @@ from datetime import datetime +import feedparser from django.contrib import auth from django.contrib.auth.forms import UserCreationForm, AuthenticationForm +from django.core.cache import cache from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import render_to_response from django.template import RequestContext from django.utils.http import urlquote_plus from django.utils.translation import ugettext_lazy as _ -from django.views.decorators import cache +from django.views.decorators.cache import never_cache from ajaxable.utils import AjaxableFormView from catalogue.models import Book @@ -55,7 +57,7 @@ class RegisterFormView(AjaxableFormView): auth.login(request, user) -@cache.never_cache +@never_cache def logout_then_redirect(request): auth.logout(request) return HttpResponseRedirect(urlquote_plus(request.GET.get('next', '/'), safe='/?=')) @@ -66,3 +68,26 @@ def clock(request): in a format suitable for Date.parse() """ return HttpResponse(datetime.now().strftime('%Y/%m/%d %H:%M:%S')) + + +def publish_plan(request): + cache_key = "publish_plan" + plan = cache.get(cache_key) + + if plan is None: + plan = [] + try: + feed = feedparser.parse('http://localhost:8000/documents/track/editor-proofreading/') + except: + pass + else: + for i in range(len(feed['entries'])): + print i + plan.append({ + 'title': feed['entries'][i].title, + 'link': feed['entries'][i].link, + }) + cache.set(cache_key, plan, 1800) + + return render_to_response("publish_plan.html", {'plan': plan}, + context_instance=RequestContext(request)) -- 2.20.1