From 24e09bc235b3ff6e659e901dfbdbcc23e6e14ba7 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Wed, 29 Feb 2012 12:38:05 +0100 Subject: [PATCH] prettier player window, minor display fixes --- apps/catalogue/templatetags/catalogue_tags.py | 11 +++ apps/catalogue/views.py | 3 +- lib/librarian | 2 +- wolnelektury/settings.py | 1 + wolnelektury/static/css/catalogue.css | 2 +- wolnelektury/static/css/header.css | 1 + wolnelektury/static/css/main_page.css | 3 + wolnelektury/static/css/player.css | 17 +++++ wolnelektury/static/img/logo-220.png | Bin 0 -> 16465 bytes .../static/jplayer/jplayer.blue.monday.css | 10 +-- wolnelektury/static/js/base.js | 2 +- .../templates/catalogue/audiobook_list.html | 15 +++++ .../templates/catalogue/book_list.html | 4 +- .../templates/catalogue/book_text.html | 4 +- wolnelektury/templates/catalogue/menu.html | 10 +-- wolnelektury/templates/catalogue/player.html | 63 +++++++++--------- wolnelektury/views.py | 2 +- 17 files changed, 100 insertions(+), 50 deletions(-) create mode 100644 wolnelektury/static/css/player.css create mode 100644 wolnelektury/static/img/logo-220.png diff --git a/apps/catalogue/templatetags/catalogue_tags.py b/apps/catalogue/templatetags/catalogue_tags.py index e2aac35c7..14ed64da8 100644 --- a/apps/catalogue/templatetags/catalogue_tags.py +++ b/apps/catalogue/templatetags/catalogue_tags.py @@ -148,6 +148,17 @@ def book_tree(book_list, books_by_parent): else: return '' +@register.simple_tag +def audiobook_tree(book_list, books_by_parent): + text = "".join("
  • %s%s
  • " % ( + reverse("book_player", args=[book.slug]), book.title, audiobook_tree(books_by_parent.get(book, ()), books_by_parent) + ) for book in book_list) + + if text: + return "
      %s
    " % text + else: + return '' + @register.simple_tag def book_tree_texml(book_list, books_by_parent, depth=1): return "".join(""" diff --git a/apps/catalogue/views.py b/apps/catalogue/views.py index 6405a49a9..fad77751e 100644 --- a/apps/catalogue/views.py +++ b/apps/catalogue/views.py @@ -246,10 +246,11 @@ def player(request, slug): else: have_oggs = False audiobooks.append(media) - print audiobooks projects = sorted(projects) + extra_info = book.get_extra_info_value() + return render_to_response('catalogue/player.html', locals(), context_instance=RequestContext(request)) diff --git a/lib/librarian b/lib/librarian index 361fd53b4..6badff080 160000 --- a/lib/librarian +++ b/lib/librarian @@ -1 +1 @@ -Subproject commit 361fd53b42fae8bafe8fd680a0c697757aa19cf3 +Subproject commit 6badff0808ac498cca8f405d047316940aac8a03 diff --git a/wolnelektury/settings.py b/wolnelektury/settings.py index 54359513e..ac80dafff 100644 --- a/wolnelektury/settings.py +++ b/wolnelektury/settings.py @@ -221,6 +221,7 @@ COMPRESS_CSS = { 'player': { 'source_filenames': [ 'jplayer/jplayer.blue.monday.css', + 'css/player.css', ], 'output_filename': 'css/player.min?.css', }, diff --git a/wolnelektury/static/css/catalogue.css b/wolnelektury/static/css/catalogue.css index c23547b44..74338f877 100755 --- a/wolnelektury/static/css/catalogue.css +++ b/wolnelektury/static/css/catalogue.css @@ -123,7 +123,7 @@ margin: 0; } .inline-body li { - display: inline; + display: inline-block; margin-right: 1em; } diff --git a/wolnelektury/static/css/header.css b/wolnelektury/static/css/header.css index cdb74f84d..ef47897e3 100755 --- a/wolnelektury/static/css/header.css +++ b/wolnelektury/static/css/header.css @@ -41,6 +41,7 @@ #logo a { color:#f7f7f7; font-size: 2.05em; + text-shadow: 0 0 10px #17CFDB; } #tagline { diff --git a/wolnelektury/static/css/main_page.css b/wolnelektury/static/css/main_page.css index e52a28341..bc8e68fda 100755 --- a/wolnelektury/static/css/main_page.css +++ b/wolnelektury/static/css/main_page.css @@ -80,6 +80,9 @@ line-height: 1.45em; } +.infopages-box li { + margin-bottom: .25em; +} .infopages-box .social-links { margin-top: 1em; diff --git a/wolnelektury/static/css/player.css b/wolnelektury/static/css/player.css new file mode 100644 index 000000000..c449803e5 --- /dev/null +++ b/wolnelektury/static/css/player.css @@ -0,0 +1,17 @@ +#player h1 { + font-size: 2em; + margin: .5em; +} + +.player-info { + margin: 1em; +} + + +.play { + cursor: pointer; +} + +.play:hover { + color: #0D7E85; +} diff --git a/wolnelektury/static/img/logo-220.png b/wolnelektury/static/img/logo-220.png new file mode 100644 index 0000000000000000000000000000000000000000..9b15e88a308e0a49d7468d9284b2ae34f4c5a34d GIT binary patch literal 16465 zcmZ|0V{9%=)HPh2r?%Tu+qT`SHcxHawryRtb!yw~scqZsdq2;Q@5}q+&1BC?_GD)! zYbJXqYqBGi6eJPhaN$5eKoF&+#8m#n&Hqds2I{|=gf-%S7NCq}CB;C#|7ToaF9rSQ zfpw75a{dpc{?{bNtp)za>E7;}2vbni= z`Pk;}72J-dV1CPjfD{zeN8at;?0%Wae8^j!%FJ}0f%$;_79e221y%H4KbosB(SPu* zVY&rC9KZL}J{)A-sI4c_&gc_$xjG3(xvM8?WsH^)(4Vc_^80rp>H9;?;22{w&#=5B zaT!Cnq~xpjfDz?`^78bJOO`0D(TQZ+b$K2<>BlI9-!_}^Z8gc3*w*f_O%@hIW4x^x zu)M#@Gml3ww8&Ecurf&qk7`qL__j6Cd6sf|)0WkRd@;`>9B!Sz*ePLH4v(hBB`+4X(MHe87U-u} z{SL}ZG^M~7wkM_5y?A9hkGK7l)I|X;|MJ{2u0-S@_Glqp?TmzH`4d>p93-!-TeSzD z+tc&KP3d*m%0zXLEjJ0gzrAJ(Fs4E2z`o_-dG zp>Bu?$`!t|B_RZvl6KXloQmxQF?&~y+NE{(f3(1VAnu*h^reW>nZtuio5x~9fn?Jx z1}&~*sCONmmvx|8o^UUS7UUnu*wgABVt1$nHHr=#*OZsJclfVIu(Rt}IQE=m!LyfP zff$sB`Dv!XF+r4+-ami%c5KwKA-B=lwpFD^{i}yerEkg4FgJ8v_a72F-8N8pmkxp(_hz;4T7)qTGd+! zdf(Tt@6ur$OL%SdBl$-;VpY)v06x?(y#;P!^ibkUw2`CG*lmg~{2Jrmt+;cF?C(M* zk2;LMtSzeQ$xOC8!}xjBUJ@`oqa<|`EFI{X2FGVbPV-4!<>&drNK2g0Ntm`jwcX|(M+YP;Z5@UIZDzsSqsu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>}Z|Kb+fhUWXCb+rx5#;J^a!Zi_>!Q6s%dUj7UvxKcv3u}s>kkRc6(P$4)$a2@dpNjSdv7BD-o;Veh)kNf$bwT@&bnD4B zeHuBd4?X`ilO@ksf<#WXy?}akfFynXx$U{TSC06!PO;wToarbp`q$a^kA8c1fbTB} zuEQZRt@&nxqwKbU^88P}&=?}*BBhik(Sa{sF2%*q9J3@n^{uY{UZ>!vt7zIX`HFy( z0NGzJ6jXz|{SNQk4rif)KBI3M{R2G?@6R`fuguj)7pHECy&DGFYw$UbOhAv4ODA-3Qxxr-Cz9 zyEwZ)<_lk?RfZGg4jWl5d|v%G)Z6=xCt9j^HJ2^H5+l0M>061|g%>nNZ!TOFkO^?p zxcv!)4y$AdIXh{FX=HAO4$bU*m@my8s4!eUDAlXcguX7ycR)+&F+nl-M{M@iM3bot zt1BkvM!-AS!LU33R2z`) zE($QQc*Yw!L-@@%9`9J29{HG&I)3=!XnT@MaqgR*XYz+)6sJOEcn^o8Vjr~+jH>iQ z(T@dmc@B%$Q`?nEL!~`FKWn$72t7&iyoP*#L9U zE^o_dqnR(YVl!_JtA-%%KNjAEV~E_IB%7J15H$XH1nH9C+0oSv@Qtg@bBZ-Fm#g@R zPE20>J1}1UdU^&m-48O=v|OKKM2o_*5tMtBcx||!j%_)#6T!xKCkVj@lJh- z+DSQU34&k(J}WMJ}O4Su+O&k+jU+6v`nJXoB~(0M)>z)huLXPpuQ z{cDnZRh_L&Dw7yyh)G-2YoSNIUvLj(4{6t8u!>d3;STn#BC&_-z8;X3-~itwV2sDH z5qo3Z_ws9eMXb+}BI>^5?r~d4+(tn=+}5v}EfM8NG8w&tAxbPTGlE-pzHWIP(dOUe zxXLpa63R7*9|y$3AQu#2t}wgOna(tzv|q<{Hp$PJ4K4Tvn;OlmBXC@Q%71lsh7P6$ ze {% endblock %} + + +{% block book_list %} + {% audiobook_tree orphans books_by_parent %} + {% for author, group in books_by_author.items %} + {% if group %} + +
    +

    {{ author }}

    + {% audiobook_tree group books_by_parent %} +
    + {% endif %} + {% endfor %} +{% endblock %} diff --git a/wolnelektury/templates/catalogue/book_list.html b/wolnelektury/templates/catalogue/book_list.html index 318f1b446..a32f60f01 100644 --- a/wolnelektury/templates/catalogue/book_list.html +++ b/wolnelektury/templates/catalogue/book_list.html @@ -15,7 +15,7 @@
    - +
    {% trans "Table of Content" %} @@ -35,7 +35,7 @@ {% book_tree orphans books_by_parent %} {% for author, group in books_by_author.items %} {% if group %} - +

    {{ author }}

    {% book_tree group books_by_parent %} diff --git a/wolnelektury/templates/catalogue/book_text.html b/wolnelektury/templates/catalogue/book_text.html index 6754ac6d5..cef76f8b5 100644 --- a/wolnelektury/templates/catalogue/book_text.html +++ b/wolnelektury/templates/catalogue/book_text.html @@ -47,9 +47,7 @@
      diff --git a/wolnelektury/templates/catalogue/menu.html b/wolnelektury/templates/catalogue/menu.html index 99d85157e..1a90b5c4a 100644 --- a/wolnelektury/templates/catalogue/menu.html +++ b/wolnelektury/templates/catalogue/menu.html @@ -5,27 +5,27 @@ {% endfor %} @@ -74,22 +106,6 @@
    -

    {% trans "Download as" %}: - MP3{% if have_oggs %}, - Ogg Vorbis{% endif %}. -

    - - - {% if book.has_daisy_file %} -

    DAISY:

    - - {% endif %} - - {% if projects|length > 1 %}

    {% trans "Audiobooks were prepared as a part of the projects:" %}

      @@ -118,19 +134,6 @@ {% endif %} - - - - - - - -
      - - - - - {% compressed_js "player" %} diff --git a/wolnelektury/views.py b/wolnelektury/views.py index 361ec3745..c2624793b 100755 --- a/wolnelektury/views.py +++ b/wolnelektury/views.py @@ -19,7 +19,7 @@ from ajaxable.utils import placeholdized @never_cache def main_page(request): - last_published = Book.objects.exclude(html_file='').order_by('-created_at')[:4] + last_published = Book.objects.filter(parent=None).order_by('-created_at')[:4] return render_to_response("main_page.html", locals(), context_instance=RequestContext(request)) -- 2.20.1