From 4a5d7553c5375c7b6016dca89c709180b6ab9f99 Mon Sep 17 00:00:00 2001 From: Martin Hawlisch Date: Fri, 15 Jul 2005 20:09:56 +0000 Subject: [PATCH] * src/plugins/NavWebPage.py: Optimize page titles svn: r4943 --- gramps2/ChangeLog | 2 +- gramps2/src/plugins/NavWebPage.py | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index c31ee778c..c47d793a2 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,7 +1,7 @@ 2005-07-15 Martin Hawlisch * src/plugins/NavWebPage.py: Avoid some segfaults; HTML validation fixes; 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/SelectObject.py (on_select_row): Dont segfault with note only object * src/GenericFilter.py: Only load rules that provide the required diff --git a/gramps2/src/plugins/NavWebPage.py b/gramps2/src/plugins/NavWebPage.py index 3a05bd4b8..f1eea8ce6 100644 --- a/gramps2/src/plugins/NavWebPage.py +++ b/gramps2/src/plugins/NavWebPage.py @@ -168,7 +168,7 @@ class BasePage: of.write('\n') of.write('\n\n') - of.write('%s\n' % self.title_str) + of.write('%s - %s\n' % (self.title_str, title)) of.write('\n' % self.encoding) of.write('\n') of.write('

%s

\n' % title) @@ -721,7 +721,7 @@ class SourcePage(BasePage): BasePage.__init__(self, title, options, archive, media_list) of = self.create_file(source.get_handle()) 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()) @@ -908,7 +908,7 @@ class IndividualPage(BasePage): self.name = _nd.sorted(self.person) 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.display_ind_general(of) self.display_ind_events(of)