Removed that annoying banner ;) Next year, make this an admin option.
[wolnelektury.git] / wolnelektury / templates / lessons / document_detail.html
1 {% extends 'base.html' %}
2
3 {% block title %}{{ object.title }} w WolneLektury.pl{% endblock %}
4
5 {% block body %}
6     <h1>{{ object.title }}</h1>
7     <form action="{% url search %}" method="GET" accept-charset="utf-8" id="search-form">
8         <p>{{ form.q }} <input type="submit" value="Szukaj" /> <strong>lub</strong> <a href="{% url lessons_document_list %}">wróć do listy materiałów</a></p>
9     </form>
10     
11     <div id="document-detail">
12         <p class="download"><a href="{{ object.file.url }}">Pobierz</a> {% if object.author %}(autor: {{ object.author }}){% endif %}</p>
13         {% if object.slideshare_id %}
14         <object style="margin:0px" width="480" height="400">
15             <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>
16         {% endif %}
17         {% if object.description %}
18             <p>{{ object.description|urlize|linebreaks }}</p>
19         {% endif %}
20     </div>
21 {% endblock body %}