File tree 6 files changed +8
-2
lines changed
6 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
1
{% load thumbnail %}
2
2
{% 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 %} " />
4
4
{% if link %}</ a > {% endif %}
Original file line number Diff line number Diff line change 4
4
5
5
{% block coltype %}colMS{% endblock %}
6
6
{% 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 %}
8
8
< table >
9
9
{{ form }}
10
10
</ table >
Original file line number Diff line number Diff line change 17
17
< tr >
18
18
< td colspan =3 >
19
19
< form action ="{% url admin:image_filer-paste_clipboard_to_folder %} " method ="post " style ="display: inline; ">
20
+ {% csrf_token %}
20
21
< input type ="hidden " name ="folder_id " value ="{{ folder.id }} " />
21
22
< input type ="hidden " name ="clipboard_id " value ="{{ clipboard.id }} " />
22
23
< input type ="hidden " name ="redirect_to " value ="{{ current_url }} " />
23
24
{% if is_popup %}< input type ="hidden " name ="_popup " value ="1 " /> {% endif %}
24
25
< input type ="submit " value ="← "{% if folder.is_root %} disabled ="disabled " style ="color: gray; "{% endif %} />
25
26
</ form >
26
27
< form action ="{% url admin:image_filer-discard_clipboard %} " method ="post " style ="display: inline; ">
28
+ {% csrf_token %}
27
29
< input type ="hidden " name ="clipboard_id " value ="{{ clipboard.id }} " />
28
30
< input type ="hidden " name ="redirect_to " value ="{{ current_url }} " />
29
31
{% if is_popup %}< input type ="hidden " name ="_popup " value ="1 " /> {% endif %}
30
32
< input type ="submit " value ="discard " />
31
33
</ form > {% comment %}
32
34
< form action ="{% url admin:image_filer-delete_clipboard %} " method ="post " style ="display: inline; ">
35
+ {% csrf_token %}
33
36
< input type ="hidden " name ="clipboard_id " value ="{{ clipboard.id }} " />
34
37
< input type ="hidden " name ="redirect_to " value ="{{ current_url }} " />
35
38
{% if is_popup %}< input type ="hidden " name ="_popup " value ="1 " /> {% endif %}
Original file line number Diff line number Diff line change 42
42
</ td >
43
43
< td style ="text-align: right; ">
44
44
< form action ="{% url admin:image_filer-move_file_to_clipboard %} " method ="post ">
45
+ {% csrf_token %}
45
46
< input type ="hidden " name ="file_id " value ="{{ file.id }} " />
46
47
< input type ="hidden " name ="redirect_to " value ="{{ current_url }} " />
47
48
{% if is_popup %}< input type ="hidden " name ="_popup " value ="1 " /> {% endif %}
Original file line number Diff line number Diff line change 3
3
< h1 > Add folder</ h1 >
4
4
< div id ="content-main ">
5
5
< form id ="folder_form " method ="post " action ="" enctype ="multipart/form-data ">
6
+ {% csrf_token %}
6
7
< div >
7
8
< input type ="hidden " value ="1 " name ="_popup "/>
8
9
< fieldset class ="module aligned ">
Original file line number Diff line number Diff line change 11
11
< td > {% if file.is_original %}original{% else %}cloned{% endif %}</ td >
12
12
< td > {{ request }}
13
13
< form action ="{% url admin:image_filer-move_file_to_clipboard %} " method ="post ">
14
+ {% csrf_token %}
14
15
< input type ="hidden " name ="file_id " value ="{{ file.id }} " />
15
16
< input type ="hidden " name ="redirect_to " value ="{{ current_url }} " />
16
17
< input type ="submit " value ="move to clipboard " />
You can’t perform that action at this time.
0 commit comments