* src/plugins/NavWebPage.py: Optimize page titles

svn: r4943
This commit is contained in:
Martin Hawlisch 2005-07-15 20:09:56 +00:00
parent f0807f87d4
commit 4a5d7553c5
2 changed files with 6 additions and 6 deletions

View File

@ -1,7 +1,7 @@
2005-07-15 Martin Hawlisch <Martin.Hawlisch@gmx.de> 2005-07-15 Martin Hawlisch <Martin.Hawlisch@gmx.de>
* src/plugins/NavWebPage.py: Avoid some segfaults; HTML validation fixes; * src/plugins/NavWebPage.py: Avoid some segfaults; HTML validation fixes;
Show all names of a person; Show all images of person/source and Show all names of a person; Show all images of person/source and
place; Add plugin version to header place; Add plugin version to header; Optimize page titles
* src/Utils.py (find_mime_type_pixbuf): Dont segfault with note only object * src/Utils.py (find_mime_type_pixbuf): Dont segfault with note only object
* src/SelectObject.py (on_select_row): Dont segfault with note only object * src/SelectObject.py (on_select_row): Dont segfault with note only object
* src/GenericFilter.py: Only load rules that provide the required * src/GenericFilter.py: Only load rules that provide the required

View File

@ -168,7 +168,7 @@ class BasePage:
of.write('<!DOCTYPE HTML PUBLIC ') of.write('<!DOCTYPE HTML PUBLIC ')
of.write('"-//W3C//DTD HTML 4.01 Transitional//EN">\n') of.write('"-//W3C//DTD HTML 4.01 Transitional//EN">\n')
of.write('<html>\n<head>\n') of.write('<html>\n<head>\n')
of.write('<title>%s</title>\n' % self.title_str) of.write('<title>%s - %s</title>\n' % (self.title_str, title))
of.write('<meta http-equiv="Content-Type" content="text/html; ') of.write('<meta http-equiv="Content-Type" content="text/html; ')
of.write('charset=%s">\n' % self.encoding) of.write('charset=%s">\n' % self.encoding)
of.write('<link href="%s" ' % _NARRATIVE) of.write('<link href="%s" ' % _NARRATIVE)
@ -421,7 +421,7 @@ class PlacePage(BasePage):
BasePage.__init__(self, title, options, archive, media_list) BasePage.__init__(self, title, options, archive, media_list)
of = self.create_file(place.get_handle()) of = self.create_file(place.get_handle())
place_name = ReportUtils.place_name(db,place_handle) place_name = ReportUtils.place_name(db,place_handle)
self.display_header(of,place_name, self.display_header(of,"%s - %s" % (_('Places'), place_name),
db.get_researcher().get_name()) db.get_researcher().get_name())
self.display_first_image_as_thumbnail(of, db, place.get_media_list()) self.display_first_image_as_thumbnail(of, db, place.get_media_list())
@ -491,7 +491,7 @@ class MediaPage(BasePage):
os.path.join(self.html_dir,newpath)) os.path.join(self.html_dir,newpath))
title = photo.get_description() title = photo.get_description()
self.display_header(of, title, db.get_researcher().get_name()) self.display_header(of, "%s - %s" % (_('Gallery'), title), db.get_researcher().get_name())
of.write('<div class="summaryarea">\n') of.write('<div class="summaryarea">\n')
of.write('<h3>%s</h3>\n' % title) of.write('<h3>%s</h3>\n' % title)
@ -721,7 +721,7 @@ class SourcePage(BasePage):
BasePage.__init__(self, title, options, archive, media_list) BasePage.__init__(self, title, options, archive, media_list)
of = self.create_file(source.get_handle()) of = self.create_file(source.get_handle())
source_name = source.get_title() source_name = source.get_title()
self.display_header(of,source_name,db.get_researcher().get_name()) self.display_header(of,"%s - %s" % (_('Sources'), source_name),db.get_researcher().get_name())
self.display_first_image_as_thumbnail(of, db, source.get_media_list()) self.display_first_image_as_thumbnail(of, db, source.get_media_list())
@ -908,7 +908,7 @@ class IndividualPage(BasePage):
self.name = _nd.sorted(self.person) self.name = _nd.sorted(self.person)
of = self.create_file(person.handle) of = self.create_file(person.handle)
self.display_header(of, title, self.display_header(of, self.sort_name,
self.db.get_researcher().get_name()) self.db.get_researcher().get_name())
self.display_ind_general(of) self.display_ind_general(of)
self.display_ind_events(of) self.display_ind_events(of)