summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2024-12-16 22:42:50 +0000
committerPhilip Sargent <philip.sargent@gmail.com>2024-12-16 22:42:50 +0000
commit151cba336bdb78e6b5030c1f2e4cd12e4bf2c5cf (patch)
tree3b8e116187eb2f6084ac81787e9f4778656fe6b7
parentd8ab17217f8fd7784b35ec4c9924717ed05491a5 (diff)
downloadtroggle-151cba336bdb78e6b5030c1f2e4cd12e4bf2c5cf.tar.gz
troggle-151cba336bdb78e6b5030c1f2e4cd12e4bf2c5cf.tar.bz2
troggle-151cba336bdb78e6b5030c1f2e4cd12e4bf2c5cf.zip
fix absolute addressing in templates
-rw-r--r--core/views/expo.py4
-rw-r--r--templates/image_page_template.html2
-rw-r--r--templates/logbook2005style.html2
-rw-r--r--templates/prospecting.html2
4 files changed, 4 insertions, 6 deletions
diff --git a/core/views/expo.py b/core/views/expo.py
index 411aaec..b2ab312 100644
--- a/core/views/expo.py
+++ b/core/views/expo.py
@@ -30,9 +30,7 @@ This is a succession of hacks and needs to be redisgned and refactored.
default_head = """<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>CUCC Expedition - index</title>
-<link rel="stylesheet" type="text/css" href="../css/main2.css" />
-<link rel="stylesheet" type="text/css" href="../../css/main2.css" />
-<link rel="stylesheet" type="text/css" href="../../../css/main2.css" />
+<link rel="stylesheet" type="text/css" href="/css/main2.css" />
</head>
<body>
<h1>Expo</h1>
diff --git a/templates/image_page_template.html b/templates/image_page_template.html
index 4a240e8..c1bd52b 100644
--- a/templates/image_page_template.html
+++ b/templates/image_page_template.html
@@ -5,7 +5,7 @@
<title>
{{ header }}
</title>
-<link rel="stylesheet" type="text/css" href="../../../css/main2.css" />
+<link rel="stylesheet" type="text/css" href="/css/main2.css" />
</head>
<body>
diff --git a/templates/logbook2005style.html b/templates/logbook2005style.html
index 872ee4c..668ea9d 100644
--- a/templates/logbook2005style.html
+++ b/templates/logbook2005style.html
@@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{{logbook_entries.0.expedition}} Expo Logbook</title>
-<link rel="stylesheet" href="../../css/main2.css" />
+<link rel="stylesheet" href="/css/main2.css" />
<meta name="keywords" content="NOEDIT">
<style>figure {font-weight: bold; font-size: small; font-family: sans-serif;font-variant-caps: small-caps;}</style>
</head>
diff --git a/templates/prospecting.html b/templates/prospecting.html
index 90626f3..c261a45 100644
--- a/templates/prospecting.html
+++ b/templates/prospecting.html
@@ -22,7 +22,7 @@
<p><b>Notes:</b></p>
<ul><li>A marking status of "Retag" means a tag is in place but it carries a provisional number, or in some cases an incorrect number, and needs replacing with a new tag.</li>
-<li>Kataster status codes indicate the size of a cave, its character and its exploration status, as described <a href="../katast.htm">here</a>.</li>
+<li>Kataster status codes indicate the size of a cave, its character and its exploration status, as described <a href="/katast.htm">here</a>.</li>
<li>For more info on each cave, see the links to detailed description pages.</li>
</ul>