summaryrefslogtreecommitdiff
path: root/archaeological_finds
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2013-08-25 19:50:36 +0200
committerÉtienne Loks <etienne.loks@peacefrogs.net>2013-08-25 19:50:36 +0200
commit0be7b37a5490f982fe835143d9684aa06bfe7be3 (patch)
tree0e6e878cdee7e7dd2b31bdeeb3a8e2ac949c5a95 /archaeological_finds
parent96001d7a6d0e76a10483a920f9dd4c194a48e68d (diff)
downloadIshtar-0be7b37a5490f982fe835143d9684aa06bfe7be3.tar.bz2
Ishtar-0be7b37a5490f982fe835143d9684aa06bfe7be3.zip
Improve window images layout by usinf prettyPhoto (refs #1314)
Diffstat (limited to 'archaeological_finds')
-rw-r--r--archaeological_finds/models.py4
-rw-r--r--archaeological_finds/templates/ishtar/sheet_find.html4
2 files changed, 2 insertions, 6 deletions
diff --git a/archaeological_finds/models.py b/archaeological_finds/models.py
index 8fb18385b..e047e21cf 100644
--- a/archaeological_finds/models.py
+++ b/archaeological_finds/models.py
@@ -145,10 +145,6 @@ class Find(BaseHistorizedItem, ImageModel, OwnPerms):
order = models.IntegerField(_(u"Order"))
label = models.CharField(_(u"ID"), max_length=60)
description = models.TextField(_(u"Description"), blank=True, null=True)
- """
- image = models.ImageField(upload_to="finds/", blank=True, null=True)
- thumbnail = models.ImageField(upload_to='finds/thumbs/', blank=True,
- null=True)"""
material_type = models.ForeignKey(MaterialType,
verbose_name = _(u"Material type"))
volume = models.FloatField(_(u"Volume (l)"), blank=True, null=True)
diff --git a/archaeological_finds/templates/ishtar/sheet_find.html b/archaeological_finds/templates/ishtar/sheet_find.html
index 208447905..9111eb409 100644
--- a/archaeological_finds/templates/ishtar/sheet_find.html
+++ b/archaeological_finds/templates/ishtar/sheet_find.html
@@ -1,13 +1,13 @@
{% extends "ishtar/sheet.html" %}
{% load i18n %}
+
{% block content %}
<div class='tool'>{%trans "Export as:"%} <a href='{% url show-find item.pk "odt" %}'>{%trans "OpenOffice.org file"%}</a>, <a href='{% url show-find item.pk "pdf" %}'>{%trans "PDF file"%}</a></div>
<h3>{% trans "Find"%}</h3>
{% if item.image %}
-plouf
-<img href='{{item.image.url}}' alt="{{image.label}}"/>
+<a href='{{item.image.url}}' rel="prettyPhoto" title="{{item.label}}"><img src='{{item.thumbnail.url}}'/></a>
{% endif%}
<p><label>{%trans "Name"%}{% trans ":"%}</label>