5227: NarWeb, multiple persons are not seperated by comma
svn: r18153
This commit is contained in:
parent
c0c0323656
commit
610449b58c
@ -358,7 +358,7 @@ class BasePage(object):
|
|||||||
completes the person column for classes EventListPage and EventPage
|
completes the person column for classes EventListPage and EventPage
|
||||||
|
|
||||||
@param: tcell -- table cell from its caller
|
@param: tcell -- table cell from its caller
|
||||||
@param: first_person -- variable from its callers
|
@param: first_person -- Not used any more, done via css
|
||||||
@param: handle_list -- handle list from the backlink of the event_handle
|
@param: handle_list -- handle list from the backlink of the event_handle
|
||||||
"""
|
"""
|
||||||
db = self.report.database
|
db = self.report.database
|
||||||
@ -367,19 +367,16 @@ class BasePage(object):
|
|||||||
|
|
||||||
# personal event
|
# personal event
|
||||||
if classname == "Person":
|
if classname == "Person":
|
||||||
|
|
||||||
_obj = db.get_person_from_handle(handle)
|
_obj = db.get_person_from_handle(handle)
|
||||||
if _obj:
|
if _obj:
|
||||||
|
|
||||||
if check_person_database(_obj):
|
if check_person_database(_obj):
|
||||||
url = self.report.build_url_fname_html(handle, "ppl", up)
|
url = self.report.build_url_fname_html(handle, "ppl", up)
|
||||||
tcell += self.person_link(url, _obj, _NAME_STYLE_DEFAULT, gid = _obj.get_gramps_id() )
|
tcell += Html("span", self.person_link(url, _obj,
|
||||||
|
_NAME_STYLE_DEFAULT, gid=_obj.get_gramps_id()),
|
||||||
|
class_="person", inline=True)
|
||||||
else:
|
else:
|
||||||
tcell += self.get_name(_obj)
|
tcell += Html("span", self.get_name(_obj),
|
||||||
|
class_="person", inline=True)
|
||||||
if not first_person:
|
|
||||||
tcell += ", "
|
|
||||||
first_person = False
|
|
||||||
|
|
||||||
# family event
|
# family event
|
||||||
else:
|
else:
|
||||||
@ -408,13 +405,12 @@ class BasePage(object):
|
|||||||
slink = spouse_name
|
slink = spouse_name
|
||||||
|
|
||||||
if spouse and husband:
|
if spouse and husband:
|
||||||
tcell += Html("span", hlink, class_ = "father fatherMother") + (
|
tcell += Html("span", hlink, class_ = "father", inline=True)
|
||||||
Html("span", slink, class_ = "mother")
|
tcell += Html("span", slink, class_ = "mother", inline=True)
|
||||||
)
|
|
||||||
elif spouse:
|
elif spouse:
|
||||||
tcell += Html("span", slink, class_ = "mother")
|
tcell += Html("span", slink, class_ = "mother", inline=True)
|
||||||
elif husband:
|
elif husband:
|
||||||
tcell += Html("span", hlink, class_ = "father")
|
tcell += Html("span", hlink, class_ = "father", inline=True)
|
||||||
|
|
||||||
# return tcell, and first_person back to its callers
|
# return tcell, and first_person back to its callers
|
||||||
return tcell, first_person
|
return tcell, first_person
|
||||||
@ -1819,7 +1815,7 @@ class BasePage(object):
|
|||||||
person_name = person
|
person_name = person
|
||||||
|
|
||||||
# 1. start building link to image or person
|
# 1. start building link to image or person
|
||||||
hyper = Html("a", href = url)
|
hyper = Html("a", href=url, inline=True)
|
||||||
|
|
||||||
# 2. insert thumbnail if there is one, otherwise insert class = "noThumb"
|
# 2. insert thumbnail if there is one, otherwise insert class = "noThumb"
|
||||||
if thumbnailUrl:
|
if thumbnailUrl:
|
||||||
@ -2383,6 +2379,7 @@ class SurnamePage(BasePage):
|
|||||||
gid = partner.gramps_id)
|
gid = partner.gramps_id)
|
||||||
else:
|
else:
|
||||||
tcell += partner_name
|
tcell += partner_name
|
||||||
|
first_family = False
|
||||||
else:
|
else:
|
||||||
tcell += " "
|
tcell += " "
|
||||||
|
|
||||||
|
@ -502,6 +502,32 @@ table.individuallist tbody tr td.ColumnName a:hover {
|
|||||||
#EventList table.infolist tr.BeginLetter td {
|
#EventList table.infolist tr.BeginLetter td {
|
||||||
border-top:solid 1px rgb(204, 204, 204);
|
border-top:solid 1px rgb(204, 204, 204);
|
||||||
}
|
}
|
||||||
|
#EventList table.infolist tr td a,
|
||||||
|
#EventDetail table.infolist tr td a {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
#EventList table.infolist tr td span.father,
|
||||||
|
#EventList table.infolist tr td span.mother,
|
||||||
|
#EventDetail table.infolist tr td span.father,
|
||||||
|
#EventDetail table.infolist tr td span.mother {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
#EventList table.infolist tr td span.person:after,
|
||||||
|
#EventList table.infolist tr td span.father:after,
|
||||||
|
#EventList table.infolist tr td span.mother:after,
|
||||||
|
#EventDetail table.infolist tr td span.person:after,
|
||||||
|
#EventDetail table.infolist tr td span.father:after,
|
||||||
|
#EventDetail table.infolist tr td span.mother:after {
|
||||||
|
content: ", ";
|
||||||
|
}
|
||||||
|
#EventList table.infolist tr td span.person:last-child:after,
|
||||||
|
#EventList table.infolist tr td span.father:last-child:after,
|
||||||
|
#EventList table.infolist tr td span.mother:last-child:after,
|
||||||
|
#EventDetail table.infolist tr td span.person:last-child:after,
|
||||||
|
#EventDetail table.infolist tr td span.father:last-child:after,
|
||||||
|
#EventDetail table.infolist tr td span.mother:last-child:after {
|
||||||
|
content: "";
|
||||||
|
}
|
||||||
|
|
||||||
/* Gallery
|
/* Gallery
|
||||||
----------------------------------------------------- */
|
----------------------------------------------------- */
|
||||||
|
@ -657,6 +657,35 @@ div#EventDetail table.eventlist tbody tr td.ColumnDate {
|
|||||||
border-top: solid 1px #000;
|
border-top: solid 1px #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Events
|
||||||
|
----------------------------------------------------- */
|
||||||
|
#EventList table.infolist tr td a,
|
||||||
|
#EventDetail table.infolist tr td a {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
#EventList table.infolist tr td span.father,
|
||||||
|
#EventList table.infolist tr td span.mother,
|
||||||
|
#EventDetail table.infolist tr td span.father,
|
||||||
|
#EventDetail table.infolist tr td span.mother {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
#EventList table.infolist tr td span.person:after,
|
||||||
|
#EventList table.infolist tr td span.father:after,
|
||||||
|
#EventList table.infolist tr td span.mother:after,
|
||||||
|
#EventDetail table.infolist tr td span.person:after,
|
||||||
|
#EventDetail table.infolist tr td span.father:after,
|
||||||
|
#EventDetail table.infolist tr td span.mother:after {
|
||||||
|
content: ", ";
|
||||||
|
}
|
||||||
|
#EventList table.infolist tr td span.person:last-child:after,
|
||||||
|
#EventList table.infolist tr td span.father:last-child:after,
|
||||||
|
#EventList table.infolist tr td span.mother:last-child:after,
|
||||||
|
#EventDetail table.infolist tr td span.person:last-child:after,
|
||||||
|
#EventDetail table.infolist tr td span.father:last-child:after,
|
||||||
|
#EventDetail table.infolist tr td span.mother:last-child:after {
|
||||||
|
content: "";
|
||||||
|
}
|
||||||
|
|
||||||
/* Gallery
|
/* Gallery
|
||||||
----------------------------------------------------- */
|
----------------------------------------------------- */
|
||||||
#Gallery {
|
#Gallery {
|
||||||
|
@ -499,6 +499,32 @@ table.individuallist tbody tr td.ColumnName a:hover {
|
|||||||
#EventList table.infolist tr.BeginLetter td {
|
#EventList table.infolist tr.BeginLetter td {
|
||||||
border-top: solid 1px #9DBF9D;
|
border-top: solid 1px #9DBF9D;
|
||||||
}
|
}
|
||||||
|
#EventList table.infolist tr td a,
|
||||||
|
#EventDetail table.infolist tr td a {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
#EventList table.infolist tr td span.father,
|
||||||
|
#EventList table.infolist tr td span.mother,
|
||||||
|
#EventDetail table.infolist tr td span.father,
|
||||||
|
#EventDetail table.infolist tr td span.mother {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
#EventList table.infolist tr td span.person:after,
|
||||||
|
#EventList table.infolist tr td span.father:after,
|
||||||
|
#EventList table.infolist tr td span.mother:after,
|
||||||
|
#EventDetail table.infolist tr td span.person:after,
|
||||||
|
#EventDetail table.infolist tr td span.father:after,
|
||||||
|
#EventDetail table.infolist tr td span.mother:after {
|
||||||
|
content: ", ";
|
||||||
|
}
|
||||||
|
#EventList table.infolist tr td span.person:last-child:after,
|
||||||
|
#EventList table.infolist tr td span.father:last-child:after,
|
||||||
|
#EventList table.infolist tr td span.mother:last-child:after,
|
||||||
|
#EventDetail table.infolist tr td span.person:last-child:after,
|
||||||
|
#EventDetail table.infolist tr td span.father:last-child:after,
|
||||||
|
#EventDetail table.infolist tr td span.mother:last-child:after {
|
||||||
|
content: "";
|
||||||
|
}
|
||||||
|
|
||||||
/* Gallery
|
/* Gallery
|
||||||
----------------------------------------------------- */
|
----------------------------------------------------- */
|
||||||
|
@ -500,6 +500,32 @@ table.individuallist tbody tr td.ColumnName a:hover {
|
|||||||
#EventList table.infolist tr.BeginLetter td {
|
#EventList table.infolist tr.BeginLetter td {
|
||||||
border-top: solid 1px #B4B4CB;
|
border-top: solid 1px #B4B4CB;
|
||||||
}
|
}
|
||||||
|
#EventList table.infolist tr td a,
|
||||||
|
#EventDetail table.infolist tr td a {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
#EventList table.infolist tr td span.father,
|
||||||
|
#EventList table.infolist tr td span.mother,
|
||||||
|
#EventDetail table.infolist tr td span.father,
|
||||||
|
#EventDetail table.infolist tr td span.mother {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
#EventList table.infolist tr td span.person:after,
|
||||||
|
#EventList table.infolist tr td span.father:after,
|
||||||
|
#EventList table.infolist tr td span.mother:after,
|
||||||
|
#EventDetail table.infolist tr td span.person:after,
|
||||||
|
#EventDetail table.infolist tr td span.father:after,
|
||||||
|
#EventDetail table.infolist tr td span.mother:after {
|
||||||
|
content: ", ";
|
||||||
|
}
|
||||||
|
#EventList table.infolist tr td span.person:last-child:after,
|
||||||
|
#EventList table.infolist tr td span.father:last-child:after,
|
||||||
|
#EventList table.infolist tr td span.mother:last-child:after,
|
||||||
|
#EventDetail table.infolist tr td span.person:last-child:after,
|
||||||
|
#EventDetail table.infolist tr td span.father:last-child:after,
|
||||||
|
#EventDetail table.infolist tr td span.mother:last-child:after {
|
||||||
|
content: "";
|
||||||
|
}
|
||||||
|
|
||||||
/* Gallery
|
/* Gallery
|
||||||
----------------------------------------------------- */
|
----------------------------------------------------- */
|
||||||
|
@ -501,6 +501,32 @@ table.individuallist tbody tr td.ColumnName a:hover {
|
|||||||
#EventList table.infolist tr.BeginLetter td {
|
#EventList table.infolist tr.BeginLetter td {
|
||||||
border-top: solid 1px #FFC35E;
|
border-top: solid 1px #FFC35E;
|
||||||
}
|
}
|
||||||
|
#EventList table.infolist tr td a,
|
||||||
|
#EventDetail table.infolist tr td a {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
#EventList table.infolist tr td span.father,
|
||||||
|
#EventList table.infolist tr td span.mother,
|
||||||
|
#EventDetail table.infolist tr td span.father,
|
||||||
|
#EventDetail table.infolist tr td span.mother {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
#EventList table.infolist tr td span.person:after,
|
||||||
|
#EventList table.infolist tr td span.father:after,
|
||||||
|
#EventList table.infolist tr td span.mother:after,
|
||||||
|
#EventDetail table.infolist tr td span.person:after,
|
||||||
|
#EventDetail table.infolist tr td span.father:after,
|
||||||
|
#EventDetail table.infolist tr td span.mother:after {
|
||||||
|
content: ", ";
|
||||||
|
}
|
||||||
|
#EventList table.infolist tr td span.person:last-child:after,
|
||||||
|
#EventList table.infolist tr td span.father:last-child:after,
|
||||||
|
#EventList table.infolist tr td span.mother:last-child:after,
|
||||||
|
#EventDetail table.infolist tr td span.person:last-child:after,
|
||||||
|
#EventDetail table.infolist tr td span.father:last-child:after,
|
||||||
|
#EventDetail table.infolist tr td span.mother:last-child:after {
|
||||||
|
content: "";
|
||||||
|
}
|
||||||
|
|
||||||
/* Gallery
|
/* Gallery
|
||||||
----------------------------------------------------- */
|
----------------------------------------------------- */
|
||||||
|
@ -501,6 +501,32 @@ table.individuallist tbody tr td.ColumnName a:hover {
|
|||||||
#EventList table.infolist tr.BeginLetter td {
|
#EventList table.infolist tr.BeginLetter td {
|
||||||
border-top: solid 1px #BFD0EA;
|
border-top: solid 1px #BFD0EA;
|
||||||
}
|
}
|
||||||
|
#EventList table.infolist tr td a,
|
||||||
|
#EventDetail table.infolist tr td a {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
#EventList table.infolist tr td span.father,
|
||||||
|
#EventList table.infolist tr td span.mother,
|
||||||
|
#EventDetail table.infolist tr td span.father,
|
||||||
|
#EventDetail table.infolist tr td span.mother {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
#EventList table.infolist tr td span.person:after,
|
||||||
|
#EventList table.infolist tr td span.father:after,
|
||||||
|
#EventList table.infolist tr td span.mother:after,
|
||||||
|
#EventDetail table.infolist tr td span.person:after,
|
||||||
|
#EventDetail table.infolist tr td span.father:after,
|
||||||
|
#EventDetail table.infolist tr td span.mother:after {
|
||||||
|
content: ", ";
|
||||||
|
}
|
||||||
|
#EventList table.infolist tr td span.person:last-child:after,
|
||||||
|
#EventList table.infolist tr td span.father:last-child:after,
|
||||||
|
#EventList table.infolist tr td span.mother:last-child:after,
|
||||||
|
#EventDetail table.infolist tr td span.person:last-child:after,
|
||||||
|
#EventDetail table.infolist tr td span.father:last-child:after,
|
||||||
|
#EventDetail table.infolist tr td span.mother:last-child:after {
|
||||||
|
content: "";
|
||||||
|
}
|
||||||
|
|
||||||
/* Gallery
|
/* Gallery
|
||||||
----------------------------------------------------- */
|
----------------------------------------------------- */
|
||||||
|
@ -516,6 +516,32 @@ table.individuallist tbody tr td.ColumnName a {
|
|||||||
#EventList table.infolist tr.BeginLetter td {
|
#EventList table.infolist tr.BeginLetter td {
|
||||||
border-top:solid 1px #D8C19F;
|
border-top:solid 1px #D8C19F;
|
||||||
}
|
}
|
||||||
|
#EventList table.infolist tr td a,
|
||||||
|
#EventDetail table.infolist tr td a {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
#EventList table.infolist tr td span.father,
|
||||||
|
#EventList table.infolist tr td span.mother,
|
||||||
|
#EventDetail table.infolist tr td span.father,
|
||||||
|
#EventDetail table.infolist tr td span.mother {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
#EventList table.infolist tr td span.person:after,
|
||||||
|
#EventList table.infolist tr td span.father:after,
|
||||||
|
#EventList table.infolist tr td span.mother:after,
|
||||||
|
#EventDetail table.infolist tr td span.person:after,
|
||||||
|
#EventDetail table.infolist tr td span.father:after,
|
||||||
|
#EventDetail table.infolist tr td span.mother:after {
|
||||||
|
content: ", ";
|
||||||
|
}
|
||||||
|
#EventList table.infolist tr td span.person:last-child:after,
|
||||||
|
#EventList table.infolist tr td span.father:last-child:after,
|
||||||
|
#EventList table.infolist tr td span.mother:last-child:after,
|
||||||
|
#EventDetail table.infolist tr td span.person:last-child:after,
|
||||||
|
#EventDetail table.infolist tr td span.father:last-child:after,
|
||||||
|
#EventDetail table.infolist tr td span.mother:last-child:after {
|
||||||
|
content: "";
|
||||||
|
}
|
||||||
|
|
||||||
/* Gallery
|
/* Gallery
|
||||||
----------------------------------------------------- */
|
----------------------------------------------------- */
|
||||||
|
@ -499,6 +499,32 @@ table.individuallist tbody tr td.ColumnName a:hover {
|
|||||||
#EventList table.infolist tr.BeginLetter td {
|
#EventList table.infolist tr.BeginLetter td {
|
||||||
border-top: solid 1px #C1B398;
|
border-top: solid 1px #C1B398;
|
||||||
}
|
}
|
||||||
|
#EventList table.infolist tr td a,
|
||||||
|
#EventDetail table.infolist tr td a {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
#EventList table.infolist tr td span.father,
|
||||||
|
#EventList table.infolist tr td span.mother,
|
||||||
|
#EventDetail table.infolist tr td span.father,
|
||||||
|
#EventDetail table.infolist tr td span.mother {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
#EventList table.infolist tr td span.person:after,
|
||||||
|
#EventList table.infolist tr td span.father:after,
|
||||||
|
#EventList table.infolist tr td span.mother:after,
|
||||||
|
#EventDetail table.infolist tr td span.person:after,
|
||||||
|
#EventDetail table.infolist tr td span.father:after,
|
||||||
|
#EventDetail table.infolist tr td span.mother:after {
|
||||||
|
content: ", ";
|
||||||
|
}
|
||||||
|
#EventList table.infolist tr td span.person:last-child:after,
|
||||||
|
#EventList table.infolist tr td span.father:last-child:after,
|
||||||
|
#EventList table.infolist tr td span.mother:last-child:after,
|
||||||
|
#EventDetail table.infolist tr td span.person:last-child:after,
|
||||||
|
#EventDetail table.infolist tr td span.father:last-child:after,
|
||||||
|
#EventDetail table.infolist tr td span.mother:last-child:after {
|
||||||
|
content: "";
|
||||||
|
}
|
||||||
|
|
||||||
/* Gallery
|
/* Gallery
|
||||||
----------------------------------------------------- */
|
----------------------------------------------------- */
|
||||||
|
@ -295,6 +295,25 @@ table.surname thead tr th.ColumnParents, table.surname tbody tr td.ColumnParents
|
|||||||
/* Individuals
|
/* Individuals
|
||||||
----------------------------------------------------- */
|
----------------------------------------------------- */
|
||||||
|
|
||||||
|
/* Events
|
||||||
|
----------------------------------------------------- */
|
||||||
|
#EventList table.infolist tr td span.person:after,
|
||||||
|
#EventList table.infolist tr td span.father:after,
|
||||||
|
#EventList table.infolist tr td span.mother:after,
|
||||||
|
#EventDetail table.infolist tr td span.person:after,
|
||||||
|
#EventDetail table.infolist tr td span.father:after,
|
||||||
|
#EventDetail table.infolist tr td span.mother:after {
|
||||||
|
content: ", ";
|
||||||
|
}
|
||||||
|
#EventList table.infolist tr td span.person:last-child:after,
|
||||||
|
#EventList table.infolist tr td span.father:last-child:after,
|
||||||
|
#EventList table.infolist tr td span.mother:last-child:after,
|
||||||
|
#EventDetail table.infolist tr td span.person:last-child:after,
|
||||||
|
#EventDetail table.infolist tr td span.father:last-child:after,
|
||||||
|
#EventDetail table.infolist tr td span.mother:last-child:after {
|
||||||
|
content: "";
|
||||||
|
}
|
||||||
|
|
||||||
/* Gallery
|
/* Gallery
|
||||||
----------------------------------------------------- */
|
----------------------------------------------------- */
|
||||||
#GalleryDetail h2 {
|
#GalleryDetail h2 {
|
||||||
|
@ -654,6 +654,32 @@ div#EventDetail table.eventlist tbody tr td.ColumnPerson {
|
|||||||
#EventList table.infolist tr.BeginLetter td {
|
#EventList table.infolist tr.BeginLetter td {
|
||||||
border-top: solid 1px #5D835F;
|
border-top: solid 1px #5D835F;
|
||||||
}
|
}
|
||||||
|
#EventList table.infolist tr td a,
|
||||||
|
#EventDetail table.infolist tr td a {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
#EventList table.infolist tr td span.father,
|
||||||
|
#EventList table.infolist tr td span.mother,
|
||||||
|
#EventDetail table.infolist tr td span.father,
|
||||||
|
#EventDetail table.infolist tr td span.mother {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
#EventList table.infolist tr td span.person:after,
|
||||||
|
#EventList table.infolist tr td span.father:after,
|
||||||
|
#EventList table.infolist tr td span.mother:after,
|
||||||
|
#EventDetail table.infolist tr td span.person:after,
|
||||||
|
#EventDetail table.infolist tr td span.father:after,
|
||||||
|
#EventDetail table.infolist tr td span.mother:after {
|
||||||
|
content: ", ";
|
||||||
|
}
|
||||||
|
#EventList table.infolist tr td span.person:last-child:after,
|
||||||
|
#EventList table.infolist tr td span.father:last-child:after,
|
||||||
|
#EventList table.infolist tr td span.mother:last-child:after,
|
||||||
|
#EventDetail table.infolist tr td span.person:last-child:after,
|
||||||
|
#EventDetail table.infolist tr td span.father:last-child:after,
|
||||||
|
#EventDetail table.infolist tr td span.mother:last-child:after {
|
||||||
|
content: "";
|
||||||
|
}
|
||||||
|
|
||||||
/* Gallery
|
/* Gallery
|
||||||
----------------------------------------------------- */
|
----------------------------------------------------- */
|
||||||
|
Loading…
Reference in New Issue
Block a user