Fixes the problem with Ancestor Tree -- unlinked persons only being listed without any styling.
svn: r11863
This commit is contained in:
parent
28dce4cfcb
commit
dbabadbf05
@ -11,7 +11,7 @@ http://www.gramps-project.org
|
|||||||
--------------------------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------------------------
|
||||||
GRAMPS is a Free Software Project for Genealogy, offering a professional genealogy program,
|
GRAMPS is a Free Software Project for Genealogy, offering a professional genealogy program,
|
||||||
and a wiki open to all. It is a community project, created, developed and governed by genealogists.
|
and a wiki open to all. It is a community project, created, developed and governed by genealogists.
|
||||||
/*
|
|
||||||
Go to http://gramps-project.org to learn more!
|
Go to http://gramps-project.org to learn more!
|
||||||
|
|
||||||
--------------------------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------------------------
|
||||||
@ -47,15 +47,14 @@ Unknown #000
|
|||||||
Males Web_Gender_Male.png
|
Males Web_Gender_Male.png
|
||||||
Females Web_Gender_Female.png
|
Females Web_Gender_Female.png
|
||||||
|
|
||||||
NarrativeWeb Styles
|
|
||||||
-------------------------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
/* General Elements
|
|
||||||
-----------------------------------------------------
|
|
||||||
|
|
||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
*/
|
NarrativeWeb Styles
|
||||||
|
--------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
General Elements
|
||||||
|
----------------------------------------------------- */
|
||||||
|
|
||||||
body {
|
body {
|
||||||
color:#000;
|
color:#000;
|
||||||
margin:0;
|
margin:0;
|
||||||
@ -131,11 +130,11 @@ h3 {
|
|||||||
}
|
}
|
||||||
h4 {
|
h4 {
|
||||||
font:normal 1.2em/1.2em serif;
|
font:normal 1.2em/1.2em serif;
|
||||||
color:$FFF;
|
color:#FFF;
|
||||||
margin:0;
|
margin:0;
|
||||||
padding:.2em 0 .2em 20px;
|
padding:.2em 0 .2em 20px;
|
||||||
background-color:#C1B398;
|
background-color:#453619;
|
||||||
border-bottom:solid 1px #453619;
|
border-bottom:solid 1px #6AF364;
|
||||||
}
|
}
|
||||||
h5, h6 {
|
h5, h6 {
|
||||||
font:normal 1em/1.2em serif;
|
font:normal 1em/1.2em serif;
|
||||||
@ -878,6 +877,25 @@ div#pedigree {
|
|||||||
padding:0;
|
padding:0;
|
||||||
background:none;
|
background:none;
|
||||||
}
|
}
|
||||||
|
#tree #treeContainer div.boxbg span.unlinked {
|
||||||
|
position:absolute;
|
||||||
|
margin:0;
|
||||||
|
padding:0;
|
||||||
|
height:40px;
|
||||||
|
width:174px;
|
||||||
|
border:1px solid #000;
|
||||||
|
text-align:center;
|
||||||
|
}
|
||||||
|
#treeContainer div.male span.unlinked {
|
||||||
|
background:url(../images/Web_Gender_Male.png) #BCEAF6 no-repeat top right;
|
||||||
|
}
|
||||||
|
#treeContainer div.female span.unlinked {
|
||||||
|
background:url(../images/Web_Gender_Female.png) #FFC0CB no-repeat top right;
|
||||||
|
}
|
||||||
|
#treeContainer div.unknown span.unlinked {
|
||||||
|
background-color:#000;
|
||||||
|
color:#FFF;
|
||||||
|
}
|
||||||
#treeContainer div.boxbg a {
|
#treeContainer div.boxbg a {
|
||||||
position:relative;
|
position:relative;
|
||||||
z-index:10;
|
z-index:10;
|
||||||
|
@ -102,8 +102,6 @@ from gen.lib.eventroletype import EventRoleType
|
|||||||
# constants
|
# constants
|
||||||
#
|
#
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
_PERSON = 0
|
|
||||||
_PLACE = 1
|
|
||||||
_INCLUDE_LIVING_VALUE = 99 # Arbitrary number
|
_INCLUDE_LIVING_VALUE = 99 # Arbitrary number
|
||||||
_NAME_COL = 3
|
_NAME_COL = 3
|
||||||
|
|
||||||
@ -348,24 +346,25 @@ class BasePage:
|
|||||||
# Link to css behaviours
|
# Link to css behaviours
|
||||||
fname = os.path.join("styles", "behaviour.css")
|
fname = os.path.join("styles", "behaviour.css")
|
||||||
url = self.report.build_url_fname(fname, None, self.up)
|
url = self.report.build_url_fname(fname, None, self.up)
|
||||||
of.write('\t<link href="%s" rel="stylesheet" type="text/css" '
|
of.write('\t<link href="%s" rel="stylesheet" \n'
|
||||||
'media="screen" />\n' % url)
|
'\t\ttype="text/css" media="screen">\n' % url)
|
||||||
|
|
||||||
# Link to screen stylesheet
|
# Link to screen stylesheet
|
||||||
fname = os.path.join("styles", self.report.css)
|
fname = os.path.join("styles", self.report.css)
|
||||||
url = self.report.build_url_fname(fname, None, self.up)
|
url = self.report.build_url_fname(fname, None, self.up)
|
||||||
of.write('\t<link href="%s" rel="stylesheet" type="text/css" '
|
of.write('\t<link href="%s" rel="stylesheet" \n'
|
||||||
'media="screen" />\n' % url)
|
'\t\ttype="text/css" media="screen" />\n' % url)
|
||||||
|
|
||||||
# Link to printer stylesheet
|
# Link to printer stylesheet
|
||||||
fname = os.path.join("styles", "Web_Print-Default.css")
|
fname = os.path.join("styles", "Web_Print-Default.css")
|
||||||
url = self.report.build_url_fname(fname, None, self.up)
|
url = self.report.build_url_fname(fname, None, self.up)
|
||||||
of.write('\t<link href="%s" rel="stylesheet" type="text/css" '
|
of.write('\t<link href="%s" rel="stylesheet" \n'
|
||||||
'media="print" />\n' % url)
|
'\t\ttype="text/css" media="print" />\n' % url)
|
||||||
|
|
||||||
# Link to GRAMPS favicon
|
# Link to GRAMPS favicon
|
||||||
url = self.report.build_url_image('favicon.ico', 'images', self.up)
|
url = self.report.build_url_image('favicon.ico', 'images', self.up)
|
||||||
of.write('\t<link href="%s" rel="Shortcut Icon" />\n' % url)
|
of.write('\t<link href="%s" rel="Shortcut Icon"\n'
|
||||||
|
'\t\ttype="image/icon">\n' % url)
|
||||||
of.write('</head>\n\n')
|
of.write('</head>\n\n')
|
||||||
|
|
||||||
of.write('<body id="NarrativeWeb">\n') # Terminated in write_footer()
|
of.write('<body id="NarrativeWeb">\n') # Terminated in write_footer()
|
||||||
@ -1902,9 +1901,9 @@ class IndividualPage(BasePage):
|
|||||||
url = self.report.build_url_fname_html(person.handle, 'ppl', True)
|
url = self.report.build_url_fname_html(person.handle, 'ppl', True)
|
||||||
self.person_link(of, url, person_name, thumbnailUrl=thumbnailUrl)
|
self.person_link(of, url, person_name, thumbnailUrl=thumbnailUrl)
|
||||||
else:
|
else:
|
||||||
of.write('<span>')
|
of.write('<span class="unlinked">')
|
||||||
of.write(_nd.display(person))
|
of.write(_nd.display(person))
|
||||||
of.write('</span>\n')
|
of.write('</span>')
|
||||||
of.write('\n\t\t\t</div>\n')
|
of.write('\n\t\t\t</div>\n')
|
||||||
of.write('\t\t\t<div class="shadow" style="top: %dpx; left: %dpx;"></div>\n'
|
of.write('\t\t\t<div class="shadow" style="top: %dpx; left: %dpx;"></div>\n'
|
||||||
% (top+_SHADOW, xoff+_SHADOW))
|
% (top+_SHADOW, xoff+_SHADOW))
|
||||||
|
Loading…
Reference in New Issue
Block a user