- {% if book.mp3_file %}
- <div id="czytamy-sluchajac-info">
- <a href="http://czytamysluchajac.pl/" id="czytamysluchajac-logo"><img src="{{ STATIC_URL }}img/czytamysluchajac-logo-small.png" /></a>
- <p>{% trans "Artist" %}: {{ book.get_extra_info_value.artist_name }}</p>
- {% if book.get_extra_info_value.director_name %}
- <p>{% trans "Director" %}: {{ book.get_extra_info_value.director_name }}</p>
- {% endif %}
- </div>
- {% endif %}
- {% if book.mp3_file %}<a href="{{ book.mp3_file.url }}">{% trans "Download MP3" %}</a>{% endif %}
- {% if book.ogg_file %}<a href="{{ book.ogg_file.url }}">{% trans "Download Ogg Vorbis" %}</a>{% endif %}
- {% if book.mp3_file %}
- <object type="application/x-shockwave-flash" style="margin-top: 0.5em" data="{{ STATIC_URL }}player.swf" width="426" height="20">
- <param name="movie" value="{{ STATIC_URL }}player.swf" />
- <param name="bgcolor" value="#ffffff" />
- <param name="FlashVars" value="mp3={{ book.mp3_file.url }}&width=426&showvolume=1&bgcolor1=eeeeee&bgcolor2=eeeeee&buttoncolor=666666" />
- </object>
- {% endif %}
+ {% if book.has_ogg_file %}
+ <p>OGG</p>
+ <ul>
+ {% for media in book.get_ogg %}
+ <li><a href="{{ media.file.url }}">{{ media.name }}</a></li>
+ {% endfor %}
+ </ul>
+ {% endif %}
+ {% if book.has_daisy_file %}
+ <p>DAISY</p>
+ <ul>
+ {% for media in book.get_daisy %}
+ <li><a href="{{ media.file.url }}">{{ media.name }}</a></li>
+ {% endfor %}
+ </ul>
+ {% endif %}
+ {% if book.has_mp3_file %}
+ <p>MP3</p>
+ <a href="http://czytamysluchajac.pl/" id="czytamysluchajac-logo"><img src="{{ STATIC_URL }}img/czytamysluchajac-logo-small.png" /></a>
+ <ul>
+ {% for media in book.get_mp3 %}
+ <li><a href="{{ media.file.url }}">{{ media.name }}</a></li>
+ <li class="mp3Player">
+ <object type="application/x-shockwave-flash" style="margin-top: 0.5em" data="{{ STATIC_URL }}player.swf" width="226" height="20">
+ <param name="movie" value="{{ STATIC_URL }}player.swf" />
+ <param name="bgcolor" value="#ffffff" />
+ <param name="FlashVars" value="mp3={{ media.file.url }} &width=226&showvolume=1&bgcolor1=eeeeee&bgcolor2=eeeeee&buttoncolor=666666" />
+ </object>
+ </li>
+ {% endfor %}
+ </ul>
+ {% endif %}