Cleaned up and fixed all of the WebCal elements also.
svn: r13349
This commit is contained in:
parent
4abfc5d39d
commit
be85628214
@ -157,9 +157,12 @@ a:visited {
|
|||||||
|
|
||||||
/* Header
|
/* Header
|
||||||
----------------------------------------------------- */
|
----------------------------------------------------- */
|
||||||
#header {
|
div#header {
|
||||||
background-color:#454;
|
background-color:#454;
|
||||||
}
|
}
|
||||||
|
div#header a {
|
||||||
|
color: #FFF;
|
||||||
|
}
|
||||||
#SiteTitle {
|
#SiteTitle {
|
||||||
margin:0;
|
margin:0;
|
||||||
padding:.5em 0 0.5em 10px;
|
padding:.5em 0 0.5em 10px;
|
||||||
@ -176,12 +179,14 @@ a:visited {
|
|||||||
|
|
||||||
/* Footer
|
/* Footer
|
||||||
----------------------------------------------------- */
|
----------------------------------------------------- */
|
||||||
|
|
||||||
div#footer {
|
div#footer {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
|
height: 60px;
|
||||||
color: #E8E6E8;
|
color: #E8E6E8;
|
||||||
BORDER-TOP: SOLID 1PX #454;
|
border-top: solid 1px #454;
|
||||||
BACKGROUND-COLOR: #454;
|
background-color: #454;
|
||||||
}
|
}
|
||||||
#footer a, #footer a:visited {
|
#footer a, #footer a:visited {
|
||||||
text-decoration:none;
|
text-decoration:none;
|
||||||
|
@ -1129,6 +1129,7 @@ div#sourcerefs ol li ol {
|
|||||||
#footer {
|
#footer {
|
||||||
clear:both;
|
clear:both;
|
||||||
width:100%;
|
width:100%;
|
||||||
|
height: 60px;
|
||||||
font-size:12px;
|
font-size:12px;
|
||||||
line-height:130%;
|
line-height:130%;
|
||||||
color:#2E2E61;
|
color:#2E2E61;
|
||||||
|
@ -1129,6 +1129,7 @@ div#sourcerefs ol li ol {
|
|||||||
#footer {
|
#footer {
|
||||||
clear:both;
|
clear:both;
|
||||||
width:100%;
|
width:100%;
|
||||||
|
height: 60px;
|
||||||
font-size:12px;
|
font-size:12px;
|
||||||
line-height:130%;
|
line-height:130%;
|
||||||
color:#8C581C;
|
color:#8C581C;
|
||||||
|
@ -1129,6 +1129,7 @@ div#sourcerefs ol li ol {
|
|||||||
#footer {
|
#footer {
|
||||||
clear:both;
|
clear:both;
|
||||||
width:100%;
|
width:100%;
|
||||||
|
height: 60px;
|
||||||
font-size:12px;
|
font-size:12px;
|
||||||
line-height:130%;
|
line-height:130%;
|
||||||
color:#204D91;
|
color:#204D91;
|
||||||
|
@ -65,7 +65,7 @@ body {
|
|||||||
color:#7D5925;
|
color:#7D5925;
|
||||||
margin:0;
|
margin:0;
|
||||||
padding:0;
|
padding:0;
|
||||||
background:url(../images/Web_Mainz_Bkgd.png) #000 repeat;
|
background:url(../images/Web_Mainz_Bkgd.png) #FFF2C6 repeat;
|
||||||
}
|
}
|
||||||
div {
|
div {
|
||||||
margin:0;
|
margin:0;
|
||||||
@ -1116,16 +1116,19 @@ div#sourcerefs ol li ol {
|
|||||||
#footer {
|
#footer {
|
||||||
clear:both;
|
clear:both;
|
||||||
width:965px;
|
width:965px;
|
||||||
|
height: 60px;
|
||||||
font-size:12px;
|
font-size:12px;
|
||||||
line-height:130%;
|
line-height:130%;
|
||||||
font-family:sans-serif;
|
font-family:sans-serif;
|
||||||
margin:0 auto;
|
margin:0 auto;
|
||||||
padding:15px 0 0 0;
|
padding:15px 0 0 0;
|
||||||
|
color: #000;
|
||||||
background:url(../images/Web_Mainz_MidLight.png) #FFF2C6;
|
background:url(../images/Web_Mainz_MidLight.png) #FFF2C6;
|
||||||
border-top:dashed 1px #7D5925;
|
border-top:dashed 1px #7D5925;
|
||||||
}
|
}
|
||||||
#footer a, #footer a:visited {
|
#footer a, #footer a:visited {
|
||||||
text-decoration:none;
|
text-decoration:none;
|
||||||
|
color: #000;
|
||||||
}
|
}
|
||||||
#footer a:hover {
|
#footer a:hover {
|
||||||
text-decoration:underline;
|
text-decoration:underline;
|
||||||
@ -1276,8 +1279,9 @@ div#sourcerefs ol li ol {
|
|||||||
.calendar tbody tr td ul li span.yearsmarried em {
|
.calendar tbody tr td ul li span.yearsmarried em {
|
||||||
color:#453619;
|
color:#453619;
|
||||||
}
|
}
|
||||||
.calendar tbody tr td.highlight {
|
.calendar tbody tr td.highlight { }
|
||||||
|
.calendar tbody tr td.EmptyDays {
|
||||||
|
background-color: #FFF2C6;
|
||||||
}
|
}
|
||||||
.calendar tbody tr td.highlight div.date {
|
.calendar tbody tr td.highlight div.date {
|
||||||
color:#767D25;
|
color:#767D25;
|
||||||
@ -1317,3 +1321,6 @@ body#fullyearlinked table.calendar thead tr th.monthName {
|
|||||||
body#fullyearlinked table.calendar tbody tr td {
|
body#fullyearlinked table.calendar tbody tr td {
|
||||||
height:3em;
|
height:3em;
|
||||||
}
|
}
|
||||||
|
body#OneDay {
|
||||||
|
background:url(../images/Web_Mainz_Mid.png) #FFF2C6 repeat;
|
||||||
|
}
|
||||||
|
@ -1154,6 +1154,7 @@ div#pedigree {
|
|||||||
#footer {
|
#footer {
|
||||||
clear:both;
|
clear:both;
|
||||||
width:100%;
|
width:100%;
|
||||||
|
height: 60px;
|
||||||
font-size:12px;
|
font-size:12px;
|
||||||
line-height:130%;
|
line-height:130%;
|
||||||
font-family:sans-serif;
|
font-family:sans-serif;
|
||||||
|
@ -289,9 +289,6 @@ div#navigation ul, div#subnavigation ul {
|
|||||||
div#navigation ul li, div#subnavigation ul li {
|
div#navigation ul li, div#subnavigation ul li {
|
||||||
float:left;
|
float:left;
|
||||||
}
|
}
|
||||||
body#WebCal divdiv#navigation ul li a {
|
|
||||||
color: #FFF;
|
|
||||||
}
|
|
||||||
div#navigation ul li a, div#subnavigation ul li a {
|
div#navigation ul li a, div#subnavigation ul li a {
|
||||||
display: block;
|
display: block;
|
||||||
padding: 12px 10px 14px 1px;
|
padding: 12px 10px 14px 1px;
|
||||||
@ -1364,8 +1361,7 @@ div#pedigree {
|
|||||||
-------------------------------------------------------------------------------------------- */
|
-------------------------------------------------------------------------------------------- */
|
||||||
/* Calendar : General */
|
/* Calendar : General */
|
||||||
body#WebCal {
|
body#WebCal {
|
||||||
padding: 98px 14px 0px 14px;
|
background-color: #FFF;
|
||||||
background-color: #542;
|
|
||||||
}
|
}
|
||||||
.calendar {
|
.calendar {
|
||||||
empty-cells:show;
|
empty-cells:show;
|
||||||
@ -1508,7 +1504,7 @@ body#WebCal {
|
|||||||
|
|
||||||
/* Calendar : Full Year */
|
/* Calendar : Full Year */
|
||||||
body#fullyearlinked {
|
body#fullyearlinked {
|
||||||
padding: 98px 0px 0px 0px;
|
background-color: #FFF;
|
||||||
}
|
}
|
||||||
body#fullyearlinked div.content {
|
body#fullyearlinked div.content {
|
||||||
width:963px;
|
width:963px;
|
||||||
@ -1544,8 +1540,3 @@ body#fullyearlinked table.calendar tbody tr td.saturday {
|
|||||||
body#fullyearlinked able.calendar tbody tr td.sunday {
|
body#fullyearlinked able.calendar tbody tr td.sunday {
|
||||||
border:solid 2px #000;
|
border:solid 2px #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Calendar : One Day */
|
|
||||||
body#OneDay {
|
|
||||||
padding: 170px 0px 0px 0px;
|
|
||||||
}
|
|
||||||
|
@ -153,6 +153,7 @@ class WebCalReport(Report):
|
|||||||
self.today = date.Today()
|
self.today = date.Today()
|
||||||
|
|
||||||
self.warn_dir = True # Only give warning once.
|
self.warn_dir = True # Only give warning once.
|
||||||
|
|
||||||
self.link_to_narweb = mgobn('link_to_narweb')
|
self.link_to_narweb = mgobn('link_to_narweb')
|
||||||
self.narweb_prefix = mgobn('prefix')
|
self.narweb_prefix = mgobn('prefix')
|
||||||
|
|
||||||
@ -809,7 +810,7 @@ class WebCalReport(Report):
|
|||||||
tcell += unordered
|
tcell += unordered
|
||||||
|
|
||||||
for nyears, date, text, event in day_list:
|
for nyears, date, text, event in day_list:
|
||||||
unordered += Html("li", text, inline=False if event == 'Anniversary'
|
unordered += Html("li", text, inline = False if event == 'Anniversary'
|
||||||
else True)
|
else True)
|
||||||
|
|
||||||
# no events for this day
|
# no events for this day
|
||||||
@ -1040,14 +1041,13 @@ class WebCalReport(Report):
|
|||||||
|
|
||||||
# set date display as in user prevferences
|
# set date display as in user prevferences
|
||||||
pg_date = _dd.display(event_date)
|
pg_date = _dd.display(event_date)
|
||||||
body += Html('h3', pg_date, inline = True)
|
body += Html("h3", pg_date, inline = True)
|
||||||
|
|
||||||
# list the events
|
# list the events
|
||||||
ordered = Html('ol')
|
ordered = Html("ol")
|
||||||
body += ordered
|
body += ordered
|
||||||
for nyears, date, text, event in day_list:
|
for nyears, date, text, event in day_list:
|
||||||
ordered += Html("li", text, inline=False if event == 'Anniversary'
|
ordered += Html("li", text, inline = False if event == 'Anniversary' else True)
|
||||||
else True)
|
|
||||||
|
|
||||||
# create blank line for stylesheets
|
# create blank line for stylesheets
|
||||||
# write footer section
|
# write footer section
|
||||||
@ -1193,6 +1193,8 @@ class WebCalReport(Report):
|
|||||||
short_name = self.get_name(person, father_surname)
|
short_name = self.get_name(person, father_surname)
|
||||||
alive = probably_alive(person, self.database, prob_alive_date)
|
alive = probably_alive(person, self.database, prob_alive_date)
|
||||||
if (self.alive and alive) or not self.alive:
|
if (self.alive and alive) or not self.alive:
|
||||||
|
|
||||||
|
# add link to NarrativeWeb
|
||||||
if self.link_to_narweb:
|
if self.link_to_narweb:
|
||||||
text = Html('a', short_name,
|
text = Html('a', short_name,
|
||||||
href=self.build_url_fname_html(person.handle, 'ppl',
|
href=self.build_url_fname_html(person.handle, 'ppl',
|
||||||
@ -1817,7 +1819,7 @@ def get_day_list(event_date, holiday_list, bday_anniv_list):
|
|||||||
+ '</em>')
|
+ '</em>')
|
||||||
|
|
||||||
# an anniversary
|
# an anniversary
|
||||||
else:
|
elif event == "Anniversary":
|
||||||
|
|
||||||
if nyears == 0:
|
if nyears == 0:
|
||||||
txt_str = _('%(couple)s, <em>wedding</em>') % {
|
txt_str = _('%(couple)s, <em>wedding</em>') % {
|
||||||
@ -1833,7 +1835,6 @@ def get_day_list(event_date, holiday_list, bday_anniv_list):
|
|||||||
day_list.append((nyears, date, txt_str, event))
|
day_list.append((nyears, date, txt_str, event))
|
||||||
|
|
||||||
# a holiday
|
# a holiday
|
||||||
# will force holidays to be on top
|
|
||||||
nyears = 0
|
nyears = 0
|
||||||
|
|
||||||
for text, event, date in holiday_list:
|
for text, event, date in holiday_list:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user