Final piece of moving Mapstraction stylesheet into src/plugins/webstuff/css .

svn: r15755
This commit is contained in:
Rob G. Healey 2010-08-16 22:18:09 +00:00
parent 2789f19366
commit 21651501ca
3 changed files with 8 additions and 5 deletions

View File

@ -1140,12 +1140,13 @@ class BasePage(object):
# Link to Navigation Menus stylesheet
if CSS[self.report.css]["navigation"]:
fname = "/".join(["styles", CSS[self.report.css]["navigation"]])
fname = "/".join(["styles", "navigation-menus.css"])
url = self.report.build_url_fname(fname, None, self.up)
links += Html("link", href = url, type = "text/css", media = "screen", rel = "stylesheet", indent = False)
# add additional meta and link tags
head += (meta, links)
head += meta
head += links
# begin header section
headerdiv = (Html("div", id = 'header') +
@ -2489,8 +2490,7 @@ class PlacePage(BasePage):
# add Mapstraction CSS
fname = "/".join(["styles", "mapstraction.css"])
url = self.report.build_url_fname(fname, None, self.up)
head += Html("link", href = url, type = "text/css", media = "screen",
rel = "stylesheet", indent = False)
head += Html("link", href = url, type = "text/css", media = "screen", rel = "stylesheet")
# add googlev3 specific javascript code
head += Html("script", type = "text/javascript",
@ -5701,7 +5701,7 @@ class NavWebReport(Report):
# copy Mapstraction style sheet if using Place Maps
if self.placemappages or self.familymappages:
fname = os.path.join(const.DATA_DIR, "Mapstraction.css")
fname = CSS["mapstraction"]["filename"]
self.copy_file(fname, "mapstraction.css", "styles")
# copy printer style sheet

View File

@ -5,6 +5,7 @@
DATAFILES = \
css/behaviour.css \
css/Mapstraction.css \
css/Web_Basic-Spruce.css \
css/Web_Mainz.css \
css/Web_Basic-Ash.css \

View File

@ -70,6 +70,8 @@ def load_on_reg(dbstate, uistate, plugin):
["No style sheet",1, _("No style sheet"), '', None, []],
["behaviour", 0, "Behaviour",
os.path.join(dir, "css", 'behaviour.css'), None, []],
["mapstraction", 0, "",
os.path.join(dir, "css", "Mapstraction.css"), None, []],
["default", 0, _("Basic-Ash"),
os.path.join(dir, "css", 'Web_Basic-Ash.css'), None, []],
["Print-Default", 0, "Print-Default",