Partly fixed bug 2788. (Just stylesheet hrefs.)
svn: r12344
This commit is contained in:
parent
aa25958623
commit
e3cc1f6d71
@ -367,8 +367,7 @@ class BasePage:
|
|||||||
'person' : self.author,
|
'person' : self.author,
|
||||||
'year' : year}
|
'year' : year}
|
||||||
elif 0 < copy_nr < len(_CC):
|
elif 0 < copy_nr < len(_CC):
|
||||||
fname = os.path.join("images", "somerights20.gif")
|
fname = self.report.build_url_fname("somerights20.gif", "images", self.up)
|
||||||
fname = self.report.build_url_fname(fname, None, self.up)
|
|
||||||
text = _CC[copy_nr] % {'gif_fname' : fname}
|
text = _CC[copy_nr] % {'gif_fname' : fname}
|
||||||
of.write('\t<p id="copyright">%s</p>\n' % text)
|
of.write('\t<p id="copyright">%s</p>\n' % text)
|
||||||
|
|
||||||
@ -400,20 +399,17 @@ class BasePage:
|
|||||||
of.write('\t<meta name="author" content="%s" />\n' % self.author)
|
of.write('\t<meta name="author" content="%s" />\n' % self.author)
|
||||||
|
|
||||||
# Link to media reference regions behaviour stylesheet
|
# Link to media reference regions behaviour stylesheet
|
||||||
fname = os.path.join("styles", "behaviour.css")
|
url = self.report.build_url_fname("behaviour.css", "styles", self.up)
|
||||||
url = self.report.build_url_fname(fname, None, self.up)
|
|
||||||
of.write('\t<link href="%s" rel="stylesheet" \n'
|
of.write('\t<link href="%s" rel="stylesheet" \n'
|
||||||
'\t\ttype="text/css" 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", _NARRATIVESCREEN)
|
url = self.report.build_url_fname(_NARRATIVESCREEN, "styles", self.up)
|
||||||
url = self.report.build_url_fname(fname, None, self.up)
|
|
||||||
of.write('\t<link href="%s" rel="stylesheet" \n'
|
of.write('\t<link href="%s" rel="stylesheet" \n'
|
||||||
'\t\ttype="text/css" 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", _NARRATIVEPRINT)
|
url = self.report.build_url_fname(_NARRATIVEPRINT, "styles", self.up)
|
||||||
url = self.report.build_url_fname(fname, None, self.up)
|
|
||||||
of.write('\t<link href="%s" rel="stylesheet" \n'
|
of.write('\t<link href="%s" rel="stylesheet" \n'
|
||||||
'\t\ttype="text/css" media="print" />\n' % url)
|
'\t\ttype="text/css" media="print" />\n' % url)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user