Skip to content

Commit 9e741b4

Browse files
Bob KarremanBob Karreman
Bob Karreman
authored and
Bob Karreman
committed
Made work with django 1.2.1
Fixed cms/plugins/image template
1 parent df6513f commit 9e741b4

File tree

6 files changed

+8
-2
lines changed

6 files changed

+8
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{% load thumbnail %}
22
{% if link %}<a href="{{ link }}">{% endif %}
3-
<img {% if object.float %}class="{{ object.float }}" {% endif %}alt="{% if object.alt %}{{ object.alt }}{% endif %}" src="{% thumbnail object.image image_size %}" />
3+
<img {% if picture.float %}class="{{ picture.float }}" {% endif %}alt="{% if picture.alt %}{{ picture.alt }}{% endif %}" src="{% thumbnail picture.image image_size %}" />
44
{% if link %}</a>{% endif %}

image_filer/templates/image_filer/image_export_form.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
{% block coltype %}colMS{% endblock %}
66
{% block content %}
7-
<form action="{% url admin:image_filer-export_image image.id %}" method="post">
7+
<form action="{% url admin:image_filer-export_image image.id %}" method="post">{% csrf_token %}
88
<table>
99
{{ form }}
1010
</table>

image_filer/templates/image_filer/include/clipboard.html

+3
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,22 @@
1717
<tr>
1818
<td colspan=3>
1919
<form action="{% url admin:image_filer-paste_clipboard_to_folder %}" method="post" style="display: inline;">
20+
{% csrf_token %}
2021
<input type="hidden" name="folder_id" value="{{ folder.id }}" />
2122
<input type="hidden" name="clipboard_id" value="{{ clipboard.id }}" />
2223
<input type="hidden" name="redirect_to" value="{{ current_url }}" />
2324
{% if is_popup %}<input type="hidden" name="_popup" value="1" />{% endif %}
2425
<input type="submit" value="&larr;"{% if folder.is_root %} disabled="disabled" style="color: gray;"{% endif %} />
2526
</form>
2627
<form action="{% url admin:image_filer-discard_clipboard %}" method="post" style="display: inline;">
28+
{% csrf_token %}
2729
<input type="hidden" name="clipboard_id" value="{{ clipboard.id }}" />
2830
<input type="hidden" name="redirect_to" value="{{ current_url }}" />
2931
{% if is_popup %}<input type="hidden" name="_popup" value="1" />{% endif %}
3032
<input type="submit" value="discard" />
3133
</form>{% comment %}
3234
<form action="{% url admin:image_filer-delete_clipboard %}" method="post" style="display: inline;">
35+
{% csrf_token %}
3336
<input type="hidden" name="clipboard_id" value="{{ clipboard.id }}" />
3437
<input type="hidden" name="redirect_to" value="{{ current_url }}" />
3538
{% if is_popup %}<input type="hidden" name="_popup" value="1" />{% endif %}

image_filer/templates/image_filer/include/directory_table.html

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
</td>
4343
<td style="text-align: right;">
4444
<form action="{% url admin:image_filer-move_file_to_clipboard %}" method="post">
45+
{% csrf_token %}
4546
<input type="hidden" name="file_id" value="{{ file.id }}" />
4647
<input type="hidden" name="redirect_to" value="{{ current_url }}" />
4748
{% if is_popup %}<input type="hidden" name="_popup" value="1" />{% endif %}

image_filer/templates/image_filer/include/new_folder_form.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<h1>Add folder</h1>
44
<div id="content-main">
55
<form id="folder_form" method="post" action="" enctype="multipart/form-data">
6+
{% csrf_token %}
67
<div>
78
<input type="hidden" value="1" name="_popup"/>
89
<fieldset class="module aligned">

image_filer/templates/image_filer/include/row_image.html

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<td>{% if file.is_original %}original{% else %}cloned{% endif %}</td>
1212
<td>{{ request }}
1313
<form action="{% url admin:image_filer-move_file_to_clipboard %}" method="post">
14+
{% csrf_token %}
1415
<input type="hidden" name="file_id" value="{{ file.id }}" />
1516
<input type="hidden" name="redirect_to" value="{{ current_url }}" />
1617
<input type="submit" value="move to clipboard" />

0 commit comments

Comments
 (0)