fixes #529: daisy
[wolnelektury.git] / wolnelektury / templates / lessons / document_detail.html
1 {% extends 'base.html' %}
2 {% load i18n %}
3
4 {% block title %}{{ object.title }} w WolneLektury.pl{% endblock %}
5
6 {% block body %}
7     <h1>{{ object.title }}</h1>
8     <form action="{% url search %}" method="GET" accept-charset="utf-8" id="search-form">
9         <p>{{ form.q }} <input type="submit" value="{% trans "Search" %}" /> <strong>{% trans "or" %}</strong> <a href="{% url lessons_document_list %}">{% trans "return to list of materials" %}</a></p>
10     </form>
11
12     <div id="document-detail">
13         <p class="download"><a href="{{ object.file.url }}">{% trans "Download" %}</a> {% if object.author %}({% trans "author" %}: {{ object.author }}){% endif %}</p>
14         {% if object.slideshare_id %}
15         <object style="margin:0px" width="480" height="400">
16             <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>
17         {% endif %}
18         {% if object.description %}
19             <p>{{ object.description|urlize|linebreaks }}</p>
20         {% endif %}
21     </div>
22 {% endblock body %}