captions for image gallery in meetings

This commit is contained in:
Sanj 2011-12-14 02:16:58 +05:30
parent 46b02769c0
commit 80a7eb68fc
2 changed files with 5 additions and 5 deletions

View File

@ -58,9 +58,9 @@ class Meeting(ItfModel):
meeting_data['meeting'] = self meeting_data['meeting'] = self
meeting_id = self.id meeting_id = self.id
# meeting_data['sessions'] = Session.objects.filter(day__meeting__id=meeting_id) # get meetings session objs # 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['talks'] = Talk.objects.filter(session__day__meeting=self)
meeting_data['images'] = Image.objects.filter(meeting__id=meeting_id) meeting_data['images'] = Image.objects.filter(meeting=self)
meeting_data['sessions'] = Session.objects.filter(day__meeting__id=meeting_id).order_by("day").order_by("session_no") 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) meeting_data['documents'] = Document.objects.filter(meeting__id=meeting_id).exclude(talk__isnull=False)
for s in meeting_data['sessions']: for s in meeting_data['sessions']:
@ -71,7 +71,7 @@ class Meeting(ItfModel):
t.audio = Audio.objects.filter(talk__id=t.id) t.audio = Audio.objects.filter(talk__id=t.id)
t.video = Video.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'] = Participant.objects.filter(meeting__id=meeting_id).order_by('name')
meeting_data['participants'] = self.participants.all() meeting_data['participants'] = self.participants.all()
return meeting_data return meeting_data

View File

@ -111,7 +111,7 @@
{% for i in imagegallery %} {% for i in imagegallery %}
{% thumbnail i.file "600x500" crop="center" as big %} {% thumbnail i.file "600x500" crop="center" as big %}
{% thumbnail i.file "164x114" crop="center" as thumb %} {% 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"> <a href="{{ big.url }}" title="{{i.title}}" class="thickbox" rel="gall">