- <a href="{{ book.mp3_file.url }}">Pobierz plik MP3</a>
- <a href="{{ book.ogg_file.url }}">Pobierz plik Ogg Vorbis</a>
- <object type="application/x-shockwave-flash" style="margin-top: 0.5em" data="/static/player.swf" width="426" height="20">
- <param name="movie" value="/static/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.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/player.swf" width="426" height="20">
+ <param name="movie" value="/static/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>