From: Marek Stępniowski Date: Fri, 28 Nov 2008 16:44:32 +0000 (+0100) Subject: Added buttons to download MP3 and Ogg Vorbis files to book_detail pages. Also added... X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/518ab6bec62b0f13764a1e0093e0438aa58daa7a?ds=sidebyside;hp=5a1663d6348b55a9b8698481e1e29f72f872048b Added buttons to download MP3 and Ogg Vorbis files to book_detail pages. Also added a flash MP3 player to listen audiobooks on-line. --- diff --git a/wolnelektury/media/css/master.css b/wolnelektury/media/css/master.css index 3d0f47741..038eec11e 100644 --- a/wolnelektury/media/css/master.css +++ b/wolnelektury/media/css/master.css @@ -235,6 +235,20 @@ p .ac_input { text-align: center; } +#formats #czytamysluchajac-logo { + display: inline; + padding: 0 0.5em 0 0; + background: white; + float: left; + margin: 0.5em 0; + text-align: left; + width: 140px; + height: 62px; + -moz-border-radius: 0px; + -webkit-border-radius: 0px; + border-radius: 0px; +} + #tagged-object-list #themes-list, #book-detail #themes-list { margin-left: 14em; } diff --git a/wolnelektury/media/img/czytamysluchajac-logo-small.png b/wolnelektury/media/img/czytamysluchajac-logo-small.png new file mode 100644 index 000000000..9c635aaaf Binary files /dev/null and b/wolnelektury/media/img/czytamysluchajac-logo-small.png differ diff --git a/wolnelektury/media/player.swf b/wolnelektury/media/player.swf new file mode 100644 index 000000000..b2fde3365 Binary files /dev/null and b/wolnelektury/media/player.swf differ diff --git a/wolnelektury/templates/catalogue/book_detail.html b/wolnelektury/templates/catalogue/book_detail.html index 1ffcccc1a..2f14576d5 100644 --- a/wolnelektury/templates/catalogue/book_detail.html +++ b/wolnelektury/templates/catalogue/book_detail.html @@ -35,6 +35,16 @@ {% if book.txt_file %} Pobierz plik TXT {% endif %} + {% if book.mp3_file and book.ogg_file %} + + Pobierz plik MP3 + Pobierz plik Ogg Vorbis + + + + + + {% endif %}