1 {% extends "catalogue/base.html" %}
2 {% load i18n pipeline catalogue_files %}
4 {% block title %}{{ sst.meta.title }}{% endblock %}
9 <div class="navbar navbar-default row" style="margin-top:-20px;">
10 <div class="col-md-8 col-md-offset-2">
12 {% if doc.owner_organization %}
14 {% if doc.owner_organization.logo %}
16 {% thumbnail doc.owner_organization.logo '80x50' format='PNG' as th %}
17 <a class="navbar-brand" href="{{ doc.owner_organization.get_absolute_url }}" style="padding: 0;">
18 <img src="{{ th.url }}" style="padding: {{ th|margin:'80x50' }}" title="{{ doc.owner_organization }}">
23 <span class="navbar-text">{% trans "Resource owner" %}:</span>
24 <a class="navbar-text" href="{{ doc.owner_organization.get_absolute_url }}">
25 {{ doc.owner_organization }}
30 <div class="navbar-text" href="">{% trans "Resource owner" %}: {{ doc.owner_user.first_name }} {{ doc.owner_user.last_name }}</div>
33 <div class="btn-group navbar-right">
36 <a class="btn btn-default navbar-btn" href="{% url 'wiki_editor' doc.pk %}"
37 data-toggle="tutorial" data-tutorial="3" data-placement="bottom"
38 data-content="{% trans "You can edit your resource here." %}"
40 <a class="btn btn-default navbar-btn" href="{% url 'catalogue_book_schedule' doc.pk %}"
41 data-toggle="tutorial" data-tutorial="4" data-placement="bottom"
42 data-content="{% trans "You can assign work stages and deadlines to people on your team." %}"
44 <a class="btn btn-default navbar-btn" href="{% url 'catalogue_fork' doc.pk %}"
45 data-toggle="tutorial" data-tutorial="5" data-placement="bottom"
46 data-content="{% trans "You can also create another, independent version of this resource – e.g. for translation to other language or simply for adapting it to your needs." %}"
47 >{% trans "Create another version" %}</a>
48 <a class="btn btn-default navbar-btn" href="{% url 'catalogue_book_owner' doc.pk %}">{% trans "Change owner" %}</a>
49 <a class="btn btn-default navbar-btn" href="{% url 'catalogue_book_delete' doc.pk %}">{% trans "Delete" %}</a>
52 <a class="navbar-right btn btn-default navbar-btn" href="{% url 'catalogue_fork' doc.pk %}"
53 data-toggle="tutorial" data-tutorial="5" data-placement="bottom"
54 data-content="{% trans "You can create and edit another, independent version of this resource – e.g. for translation to other language or simply for adapting it to your needs." %}"
55 >{% trans "Create another version" %}</a>
63 {% if preview or can_edit and revision == published_revision %}
64 <div class="jumbotron" style="margin-top:-20px; margin-bottom: 20px;">
65 <p style="text-align: center">
68 {% url 'catalogue_html' doc.pk as url %}
69 {% blocktrans %}This is a preview of a specific revision of <a href="{{ url }}">this resource</a>.{% endblocktrans %}<br>
72 {% if revision.pk != doc.revision.pk and doc.revision.pk != published_revision.pk %}
73 {% url 'catalogue_preview' doc.pk as url %}
74 {% blocktrans %}There have been some changes since this revision. <a href="{{ url }}">See the current revision.</a>{% endblocktrans %}<br>
77 {% if published_revision %}
78 {% if published_revision != revision %}
79 {% url 'catalogue_html' doc.pk as url %}
80 {% blocktrans %}This resource has a <a href="{{ url }}">published version</a>.{% endblocktrans %}
83 {% trans "This resource hasn't been published yet." %}
88 {% if can_edit and not revision == published_revision %}
89 <form onsubmit="return confirm('{% trans "Do you really want to publish this revision?" %}');" method="POST" action="{% url 'catalogue_publish' doc.pk %}" style="text-align: center;">
91 <input type="hidden" name="textpublish-revision" value="{{ revision.pk }}">
92 <button class="btn btn-default btn-warning"
93 data-toggle="tutorial" data-tutorial="1" data-placement="bottom"
94 data-content="{% trans "When the resource is ready for use, you can mark its specific revision as published here." %}"
95 >{% trans "Publish this revision" %}</button>
98 {% if can_edit and revision == published_revision %}
99 <form onsubmit="return confirm('{% trans "Do you really want to undo publishing this resource?" %}');" method="POST" action="{% url 'catalogue_unpublish' doc.pk %}" style="text-align: center;">
101 <button class="btn btn-default btn-danger"
102 data-toggle="tutorial" data-tutorial="1" data-placement="bottom"
103 data-content="{% trans "If you have published the resource by mistake, you can un-publish it here." %}"
104 >{% trans "Undo publishing this resource" %}</button>
120 {% if doc.meta.cover_url %}
122 background-image: url('{{ doc.meta.cover_url|as_media_for:doc }}');
123 background-repeat: no-repeat;
124 background-size: 100%;
125 background-position: 0 15%;
136 padding: 3em 0 2em 0;
138 /* IE9 SVG, needs conditional override of 'filter' to 'none' */
139 background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzAwMDAwMCIgc3RvcC1vcGFjaXR5PSIwIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiMwMDAwMDAiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
140 background: -moz-linear-gradient(top, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%); /* FF3.6+ */
141 background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0)), color-stop(100%,rgba(0,0,0,1))); /* Chrome,Safari4+ */
142 background: -webkit-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%); /* Chrome10+,Safari5.1+ */
143 background: -o-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%); /* Opera 11.10+ */
144 background: -ms-linear-gradient(top, rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%); /* IE10+ */
145 background: linear-gradient(to bottom, rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%); /* W3C */
146 filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#000000',GradientType=0 ); /* IE6-8 */
150 <div id="cover-info" class="row">
151 <div class="col-md-4 col-md-offset-2">
152 {% trans "Audience" %}: {{ doc.meta.audience|default:"–" }}
154 <div class="col-md-4">
155 <a class="btn btn-default" href="{% url 'catalogue_pdf' doc.pk revision.pk %}"
156 data-toggle="tutorial" data-tutorial="2" data-placement="top"
157 data-content="{% trans "You can download and share a PDF version – and more formats in the future." %}"
159 >{% trans "Download PDF" %}</a>
165 data-toggle="tutorial" data-tutorial="9" data-placement="top"
166 data-content="{% trans "And, of course, you can read and share the resource in a handy webpage form right here." %}"
176 {% block inner_content %}