captions for image gallery in meetings
This commit is contained in:
parent
46b02769c0
commit
80a7eb68fc
|
@ -58,9 +58,9 @@ class Meeting(ItfModel):
|
|||
meeting_data['meeting'] = self
|
||||
meeting_id = self.id
|
||||
# meeting_data['sessions'] = Session.objects.filter(day__meeting__id=meeting_id) # get meetings session objs
|
||||
meeting_data['talks'] = Talk.objects.filter(session__day__meeting__id=meeting_id)
|
||||
meeting_data['images'] = Image.objects.filter(meeting__id=meeting_id)
|
||||
meeting_data['sessions'] = Session.objects.filter(day__meeting__id=meeting_id).order_by("day").order_by("session_no")
|
||||
meeting_data['talks'] = Talk.objects.filter(session__day__meeting=self)
|
||||
meeting_data['images'] = Image.objects.filter(meeting=self)
|
||||
meeting_data['sessions'] = Session.objects.filter(day__meeting=self).order_by("day").order_by("session_no")
|
||||
meeting_data['documents'] = Document.objects.filter(meeting__id=meeting_id).exclude(talk__isnull=False)
|
||||
|
||||
for s in meeting_data['sessions']:
|
||||
|
@ -71,7 +71,7 @@ class Meeting(ItfModel):
|
|||
t.audio = Audio.objects.filter(talk__id=t.id)
|
||||
t.video = Video.objects.filter(talk__id=t.id)
|
||||
|
||||
meeting_data['imagegallery'] = Image.objects.filter(meeting__id=meeting_id)
|
||||
meeting_data['imagegallery'] = Image.objects.filter(meeting=self)
|
||||
# meeting_data['participants'] = Participant.objects.filter(meeting__id=meeting_id).order_by('name')
|
||||
meeting_data['participants'] = self.participants.all()
|
||||
return meeting_data
|
||||
|
|
|
@ -111,7 +111,7 @@
|
|||
{% for i in imagegallery %}
|
||||
{% thumbnail i.file "600x500" crop="center" as big %}
|
||||
{% thumbnail i.file "164x114" crop="center" as thumb %}
|
||||
<img title="" src="{{ thumb.url }}" class="thumbsDetails" data-bigimage="{{ big.url }}" />
|
||||
<img title="{{ i.title }}" src="{{ thumb.url }}" class="thumbsDetails" data-bigimage="{{ big.url }}" />
|
||||
|
||||
<!--
|
||||
<a href="{{ big.url }}" title="{{i.title}}" class="thickbox" rel="gall">
|
||||
|
|
Loading…
Reference in New Issue
Block a user