workaround for django ticket 17111; cover in api fix
[wolnelektury.git] / wolnelektury / templates / lessons / ajax_document_detail.html
1 {% load i18n %}
2 <div>
3     <p class="download"><a href="{{ object.file.url }}">{% trans "Download" %}</a> {% if object.author %}({% trans "author" %}: {{ object.author }}){% endif %}</p>
4     <h2>{{ object.title }}</h2>
5     {% if object.slideshare_id %}
6     <object style="margin:0px" width="480" height="400">
7         <param name="movie" value="http://static.slidesharecdn.com/swf/{{ object.slideshare_player }}?doc={{ object.slideshare_id }}&rel=0&stripped_title={{ object.name|slugify }}" /><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed src="http://static.slidesharecdn.com/swf/{{ object.slideshare_player }}?doc={{ object.slideshare_id }}&rel=0&stripped_title={{ object.name|slugify }}" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="400"></embed></object>
8     {% endif %}
9     {% if object.description %}
10         <p>{{ object.description|urlize|linebreaks }}</p>
11     {% endif %}
12 </div>