Still working with classes EventListpage() and EventPage(). Making changes as I go with the stylesheet.

svn: r13199
This commit is contained in:
Rob G. Healey 2009-09-13 03:43:27 +00:00
parent d76615b086
commit 1430e3107a
2 changed files with 21 additions and 19 deletions

View File

@ -381,8 +381,8 @@ body#WebCal #navigation, body#fullyearlinked #navigation {
table.infolist {
width:100%;
margin: 0;
padding:0;
font-size: 10px;
padding: 0;
font-size: 12px;
}
table.infolist thead tr th {
font:normal 1.1em/1.2em serif;
@ -480,6 +480,9 @@ table.surnamelist thead tr th.ColumnLetter {
padding-left:20px;
padding-right:10px;
}
table.surnamelist tbody tr td {
background-color: #D8F3D6;
}
table.surnamelist tbody tr td.ColumnSurname {
background-color: #FFF;
}
@ -621,7 +624,7 @@ table.individuallist tbody tr td.ColumnPartner a:hover {
/* Events
----------------------------------------------------- */
div#EventList, div#EventDetail {}
div#EventList, div#EventDetail { }
div#events table.eventlist {
margin-top: .3cm;
@ -643,11 +646,11 @@ table.eventlist tbody tr td.ColumnType {
width: 20%;
}
table.eventlist tbody tr td.ColumnDate {
width: 9%;
width: 16%;
}
table.eventlist tbody tr td.ColumnPlace {
background-color: #FFF;
width: 40%;
width: 35%;
}
table.eventlist tbody tr td.ColumnSources {
background-color: #FFF;
@ -659,7 +662,7 @@ table.eventlist tbody tr td.ColumnNotes {
}
table.eventlist tbody tr td.ColumnPerson {
background-color: #FFF;
width: 25%;
width: 35%;
}
table.eventlist tbody tr td.ColumnPartner {
background-color: #FFF;
@ -676,6 +679,7 @@ div#EventDetail table.eventlist {
width: 800px;
}
div#EventDetail table.eventlist tbody tr td.ColumnAttribute {
border-top: solid 1px #5D835F;
font-weight: bold;
text-transform: uppercase;
width: 20%;

View File

@ -2019,11 +2019,10 @@ class EventListPage(BasePage):
msg = _("This page contains an index of all the events in the "
"database, sorted by their type, date (if one is present), "
"and person’s surname. Clicking on an event’s type "
"will take you to that event’s page. Clicking on a place "
"will take you to that place’s page. Clicking on a "
"will take you to that event’s page. Clicking on a "
"person’s name will take you to that person’s page. "
"The person will only be shown once for their events.")
eventlist += Html('p', msg, id='description')
"The person’s name will only be shown once for their events.")
eventlist += Html("p", msg, id="description")
# begin event list table
with Html("table", class_ = "infolist eventlist") as table:
@ -2040,10 +2039,9 @@ class EventListPage(BasePage):
for (label, colclass) in [
[THEAD, 'Type'],
[DHEAD, 'Date'],
[PHEAD, 'Place'],
[_('Person'), 'Person'],
[_('Partner'), 'Partner'] ]:
trow += Html("th", label, class_ = 'Column%s' % colclass, inline = True)
trow += Html("th", label, class_ = "Column%s" % colclass, inline = True)
# begin table body
tbody = Html("tbody")
@ -2085,7 +2083,7 @@ class EventListPage(BasePage):
# get person's hyperlink
url = self.report.build_url_fname_html(person.handle, 'ppl', subdirs)
person_hyper = self.person_link(url, person, True, first, person.gramps_id)
person_hyper = self.person_link(url, person, True, first)
# begin table row
trow = Html("tr")
@ -2094,8 +2092,8 @@ class EventListPage(BasePage):
"""
for more information: see get_event_data()
"""
event_data = self.get_event_data(evt, evt_ref, True, False, False,
False, subdirs, True, evt.gramps_id)
event_data = self.get_event_data(evt, evt_ref, False, False, False,
False, subdirs, True)
for (label, colclass, data) in event_data:
data = " " if (not data or []) else data
@ -2110,13 +2108,12 @@ class EventListPage(BasePage):
# get partner hyperlink
# display partner if event is either a Marriage or Divorce?
# partner will not be None
partner_hyper = " "
if partner is not None:
# get partner hyperlink
url = self.report.build_url_fname_html(partner.handle, 'ppl', subdirs)
partner_hyper = self.person_link(url, partner, False, partner.gramps_id)
partner_hyper = self.person_link(url, partner, True)
trow += Html("td", partner_hyper, class_ = "ColumnPartner")
# return EventList row to its caller
@ -2140,6 +2137,7 @@ class EventPage(BasePage):
# display page itle
title = _('%(type)s of %(name)s') % {'type' : evt_type.lower(),
'name' : self.get_name(person) }
# line is in place for Peter Lundgren
title = title[0].upper() + title[1:]
eventdetail += Html('h3', title, inline = True)
@ -2178,7 +2176,7 @@ class EventPage(BasePage):
# get person hyperlink
url = self.report.build_url_fname_html(person.handle, 'ppl', self.up)
person_hyper = self.person_link(url, person, True, person.gramps_id)
person_hyper = self.person_link(url, person, True, gid=person.gramps_id)
trow = Html("tr") + (
Html("td", _('Person'), class_ = "ColumnAttribute", inline = True),
Html("td", person_hyper, class_ = "ColumnPerson")
@ -2188,7 +2186,7 @@ class EventPage(BasePage):
# display partner if type is either Marriage or Divorce
if partner is not None:
url = self.report.build_url_fname_html(partner.handle, 'ppl', self.up)
partner_hyper = self.person_link(url, partner, True, partner.gramps_id)
partner_hyper = self.person_link(url, partner, True, gid=partner.gramps_id)
trow = Html("tr") + (
Html("td", _('Partner'), class_ = "ColumnAttribute", inline = True),
Html("td", partner_hyper, class_ = "ColumnPartner")