Do not leave <img> tag with an empty src field!!

fixed #189
This commit is contained in:
Antoine Nguyen
2011-11-14 17:08:21 +01:00
parent e860dc562f
commit 2e2011e070
3 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ output (using standard tags like <table> and co.).
import inspect
import lxml
from django.utils.translation import ugettext as _
from django.template import Template, Context
from django.template import Template, RequestContext, Context
from django.template.loader import render_to_string
class Column:
@@ -193,7 +193,7 @@ class Table(object):
{% include "common/table_body.html" %}
</table>
""")
return t.render(Context({
return t.render(RequestContext(self.request, {
"table" : self, "tableid" : self.tableid
}))
t = Template("""
Binary file not shown.

After

Width:  |  Height:  |  Size: 178 B

+1 -1
View File
@@ -7,7 +7,7 @@
<th id="{{ c.name }}" width="{{ c.width }}">
{% endif %}
{{ c|safe }}
<span style="float: right"><img style="display: none" alt="" src="" /></span>
<span style="float: right"><img style="display: none" alt="" src="{{ MEDIA_URL }}pics/transparent.png" /></span>
</th>
{% endfor %}
</tr>