* src/plugins/NarrativeWeb.py: 0000969: NarrativeWeb plugin: include the date in the media object pages
svn: r8294
This commit is contained in:
parent
96692977c4
commit
2bb0e0642f
@ -1,3 +1,7 @@
|
|||||||
|
2007-03-13 Brian Matherly <brian@gramps-project.org>
|
||||||
|
* src/plugins/NarrativeWeb.py: 0000969: NarrativeWeb plugin: include the
|
||||||
|
date in the media object pages
|
||||||
|
|
||||||
2007-03-11 Brian Matherly <brian@gramps-project.org>
|
2007-03-11 Brian Matherly <brian@gramps-project.org>
|
||||||
* src/ReportBase/_ReportDialog.py: don't catch all exceptions - we won't
|
* src/ReportBase/_ReportDialog.py: don't catch all exceptions - we won't
|
||||||
get a traceback.
|
get a traceback.
|
||||||
|
@ -912,13 +912,21 @@ class MediaPage(BasePage):
|
|||||||
of.write('<table class="infolist">\n')
|
of.write('<table class="infolist">\n')
|
||||||
|
|
||||||
if not self.noid:
|
if not self.noid:
|
||||||
of.write('<tr><td class="field">%s</td>\n' % _('GRAMPS ID'))
|
of.write('<tr>\n')
|
||||||
|
of.write('<td class="field">%s</td>\n' % _('GRAMPS ID'))
|
||||||
of.write('<td class="data">%s</td>\n' % photo.gramps_id)
|
of.write('<td class="data">%s</td>\n' % photo.gramps_id)
|
||||||
of.write('</tr>\n')
|
of.write('</tr>\n')
|
||||||
if not note_only:
|
if not note_only:
|
||||||
of.write('<tr><td class="field">%s</td>\n' % _('MIME type'))
|
of.write('<tr>\n')
|
||||||
|
of.write('<td class="field">%s</td>\n' % _('MIME type'))
|
||||||
of.write('<td class="data">%s</td>\n' % photo.mime)
|
of.write('<td class="data">%s</td>\n' % photo.mime)
|
||||||
of.write('</tr>\n')
|
of.write('</tr>\n')
|
||||||
|
date = _dd.display(photo.get_date_object())
|
||||||
|
if date != "":
|
||||||
|
of.write('<tr>\n')
|
||||||
|
of.write('<td class="field">%s</td>\n' % _('Date'))
|
||||||
|
of.write('<td class="data">%s</td>\n' % date)
|
||||||
|
of.write('</tr>\n')
|
||||||
of.write('</table>\n')
|
of.write('</table>\n')
|
||||||
of.write('</div>\n')
|
of.write('</div>\n')
|
||||||
|
|
||||||
@ -1260,10 +1268,18 @@ class GalleryPage(BasePage):
|
|||||||
mlist.sort(self.by_media_title)
|
mlist.sort(self.by_media_title)
|
||||||
for handle in mlist:
|
for handle in mlist:
|
||||||
media = db.get_object_from_handle(handle)
|
media = db.get_object_from_handle(handle)
|
||||||
of.write('<tr><td class="category">%d.</td>\n' % index)
|
date = _dd.display(media.get_date_object())
|
||||||
|
of.write('<tr>\n')
|
||||||
|
|
||||||
|
of.write('<td class="category">%d.</td>\n' % index)
|
||||||
|
|
||||||
of.write('<td class="data">')
|
of.write('<td class="data">')
|
||||||
self.media_ref_link(of,handle,media.get_description())
|
self.media_ref_link(of,handle,media.get_description())
|
||||||
of.write('</td></tr>\n')
|
of.write('</td>\n')
|
||||||
|
|
||||||
|
of.write('<td class="data">%s</td>\n' % date)
|
||||||
|
|
||||||
|
of.write('</tr>\n')
|
||||||
index += 1
|
index += 1
|
||||||
|
|
||||||
of.write('</table>\n')
|
of.write('</table>\n')
|
||||||
|
Loading…
Reference in New Issue
Block a user