From: Lukasz Anwajler Date: Thu, 27 Jan 2011 11:54:56 +0000 (-0600) Subject: Lessons - UI changes. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/28d8ea078f34a1df16a88a593570cea6e53dd404 Lessons - UI changes. --- diff --git a/wolnelektury/static/css/master.css b/wolnelektury/static/css/master.css index 15e48c704..1ea2366d8 100644 --- a/wolnelektury/static/css/master.css +++ b/wolnelektury/static/css/master.css @@ -1012,7 +1012,7 @@ div.shown-tags p, div.all-tags p { border-radius: 3px; /* font-size: 1.2em;*/ font-weight: bold; - width: 370px; + width: 330px; margin-bottom: 0.25em; display: block; } @@ -1021,8 +1021,13 @@ div.shown-tags p, div.all-tags p { padding-left: 30px; list-style: disc; } + +#document-list li { + padding: 5px; +} + #document-list li li a { - width: 340px; + width: 300px; } #document-list li a:hover, #document-list li a.active { @@ -1048,6 +1053,11 @@ div.shown-tags p, div.all-tags p { padding: 0 } +#document-list .download-doc { + display: none; + color: #EE2124; +} + /* ====================== */ /* = One percent banner = */ /* ====================== */ @@ -1085,10 +1095,15 @@ div.shown-tags p, div.all-tags p { color: #FFF; text-decoration: none; } + #createNewShelf { -display: none; + display: none; } .widget-code { overflow: hidden; } + +#presentation-frame { + border: 0px none white; +} diff --git a/wolnelektury/static/js/catalogue.js b/wolnelektury/static/js/catalogue.js index afcacef79..d9de589f1 100644 --- a/wolnelektury/static/js/catalogue.js +++ b/wolnelektury/static/js/catalogue.js @@ -505,7 +505,9 @@ function serverTime() { }); $('.audiobook-list').hide(); - $("#"+$(".audiotabs .active").html().toLowerCase()+"-files").show(); + if($(".audiotabs .active").length > 0) { + $("#"+$(".audiotabs .active").html().toLowerCase()+"-files").show(); + } /* this will be useful for javascript html player var medias = $('.audiobook-list a'); diff --git a/wolnelektury/templates/lessons/document_detail.html b/wolnelektury/templates/lessons/document_detail.html index d0186ae7b..e55454853 100644 --- a/wolnelektury/templates/lessons/document_detail.html +++ b/wolnelektury/templates/lessons/document_detail.html @@ -1,22 +1,8 @@ -{% extends 'base.html' %} -{% load i18n %} - -{% block title %}{{ object.title }} w WolneLektury.pl{% endblock %} - -{% block body %} -

{{ object.title }}

-
-

{{ form.q }} {% trans "or" %} {% trans "return to list of materials" %}

-
- -
-

{% trans "Download" %} {% if object.author %}({% trans "author" %}: {{ object.author }}){% endif %}

- {% if object.slideshare_id %} - - - {% endif %} - {% if object.description %} -

{{ object.description|urlize|linebreaks }}

- {% endif %} -
-{% endblock body %} \ No newline at end of file +{% if not object.html %} + {% if object.slideshare_id %} + + + {% endif %} +{% else %} + {{ object.html|safe }} +{% endif %} diff --git a/wolnelektury/templates/lessons/document_list.html b/wolnelektury/templates/lessons/document_list.html index 00d161fdd..d61618e14 100644 --- a/wolnelektury/templates/lessons/document_list.html +++ b/wolnelektury/templates/lessons/document_list.html @@ -9,41 +9,17 @@ {% block extrahead %} {% endblock extrahead %} @@ -52,7 +28,6 @@

{{ form.q }} {% trans "or" %} {% trans "return to main page" %}

-
{% chunk "document-list" %}