image publishing, some tag changes
[redakcja.git] / apps / catalogue / templates / catalogue / image_detail.html
1 {% extends "catalogue/base.html" %}
2 {% load book_list comments i18n %}
3
4 {% block content %}
5
6
7 <h1>{{ object.title }}</h1>
8
9
10 {% if editable %}<form method='POST'>{% csrf_token %}{% endif %}
11 <table class='editable'><tbody>
12     {{ form.as_table }}
13     {% if editable %}
14         <tr><td></td><td><button type="submit">{% trans "Save" %}</button></td></tr>
15     {% endif %}
16 </tbody></table>
17 {% if editable %}</form>{% endif %}
18
19
20
21 <div class='section'>
22     <h2>{% trans "Editor" %}</h2>
23
24     <p><a href="{% url wiki_img_editor object.slug %}">{% trans "Proceed to the editor." %}</a></p>
25 </div>
26
27
28
29 <div class='section'>
30
31
32 <h2>{% trans "Publication" %}</h2>
33
34 <p>{% trans "Last published" %}: 
35     {% if object.last_published %}
36         {{ object.last_published }}
37     {% else %}
38         &mdash;
39     {% endif %}
40 </p>
41
42 {% if publishable %}
43     {% if user.is_authenticated %}
44         <!--
45         Angel photos:
46         Angels in Ely Cathedral (http://www.flickr.com/photos/21804434@N02/4483220595/) /
47         mira66 (http://www.flickr.com/photos/21804434@N02/) /
48         CC BY 2.0 (http://creativecommons.org/licenses/by/2.0/)
49         -->
50         <form method="POST" action="{% url catalogue_publish_image object.slug %}">{% csrf_token %}
51             <!--img src="{{ STATIC_URL }}img/angel-left.png" style="vertical-align: middle" /-->
52             <button id="publish-button" type="submit">
53                 <span>{% trans "Publish" %}</span></button>
54             <!--img src="{{ STATIC_URL }}img/angel-right.png" style="vertical-align: middle" /-->
55             </form>
56     {% else %}
57         <a href="{% url login %}">{% trans "Log in to publish." %}</a>
58     {% endif %}
59 {% else %}
60     <p>{% trans "This book can't be published yet, because:" %}</p>
61     <ul><li>{{ publishable_error }}</li></ul>
62 {% endif %}
63
64 </div>
65
66
67 <div class='section'>
68     <h2>{% trans "Comments" %}</h2>
69
70     {% render_comment_list for object %}
71     {% with object.get_absolute_url as next %}
72         {% render_comment_form for object %}
73     {% endwith %}
74 </div>
75
76 {% endblock content %}