fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
check cover image dimensions in forms
[redakcja.git]
/
apps
/
cover
/
templates
/
cover
/
image_detail.html
diff --git
a/apps/cover/templates/cover/image_detail.html
b/apps/cover/templates/cover/image_detail.html
index
57bd0b4
..
cf8f921
100755
(executable)
--- a/
apps/cover/templates/cover/image_detail.html
+++ b/
apps/cover/templates/cover/image_detail.html
@@
-1,15
+1,15
@@
{% extends "catalogue/base.html" %}
{% load i18n %}
{% load thumbnail %}
{% extends "catalogue/base.html" %}
{% load i18n %}
{% load thumbnail %}
-{% load build_absolute_uri from
common_tags
%}
+{% load build_absolute_uri from
fnp_common
%}
{% block content %}
<h1>{% trans "Cover image" %}</h1>
<div style="float: right; margin-bottom:1em;">
{% block content %}
<h1>{% trans "Cover image" %}</h1>
<div style="float: right; margin-bottom:1em;">
-<a href="{{ object.file.url }}"><img
style="width:400px"
- src="{% thumbnail object.file "
400x400
" as thumb %}
+<a href="{{ object.file.url }}"><img
+ src="{% thumbnail object.file "
565x833
" as thumb %}
{{ thumb.url }}
{% empty %}
{{ object.file.url }}
{{ thumb.url }}
{% empty %}
{{ object.file.url }}
@@
-27,7
+27,6
@@
{% if editable %}
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{% if editable %}
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
- {{ form.non_field_errors }}
{% endif %}
<table class='editable'><tbody>
{{ form.as_table }}
{% endif %}
<table class='editable'><tbody>
{{ form.as_table }}