aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-03-29 07:24:03 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-03-29 07:24:03 +0000
commit5591d621b90855beeb5460f0ac11279d19835699 (patch)
treeed8dea922eece54aad4b6f3e9da8597e894c2481 /IkiWiki
parentce48f18a3b63ca82a835c151093b8bede5c856c1 (diff)
downloadikiwiki-5591d621b90855beeb5460f0ac11279d19835699.tar
ikiwiki-5591d621b90855beeb5460f0ac11279d19835699.tar.gz
css support
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/CGI.pm8
-rw-r--r--IkiWiki/Render.pm1
2 files changed, 7 insertions, 2 deletions
diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm
index 52da67b9a..67bce6795 100644
--- a/IkiWiki/CGI.pm
+++ b/IkiWiki/CGI.pm
@@ -38,6 +38,7 @@ sub cgi_recentchanges ($) { #{{{
indexlink => indexlink(),
wikiname => $config{wikiname},
changelog => [rcs_recentchanges(100)],
+ styleurl => styleurl(),
);
print $q->header, $template->output;
} #}}}
@@ -64,7 +65,8 @@ sub cgi_signin ($$) { #{{{
action => $q->request_uri,
header => 0,
template => (-e "$config{templatedir}/signin.tmpl" ?
- "$config{templatedir}/signin.tmpl" : "")
+ "$config{templatedir}/signin.tmpl" : ""),
+ stylesheet => styleurl(),
);
$form->field(name => "name", required => 0);
@@ -228,7 +230,8 @@ sub cgi_prefs ($$) { #{{{
params => $q,
action => $q->request_uri,
template => (-e "$config{templatedir}/prefs.tmpl" ?
- "$config{templatedir}/prefs.tmpl" : "")
+ "$config{templatedir}/prefs.tmpl" : ""),
+ stylesheet => styleurl(),
);
my @buttons=("Save Preferences", "Logout", "Cancel");
@@ -323,6 +326,7 @@ sub cgi_editpage ($$) { #{{{
$form->tmpl_param("indexlink", indexlink());
$form->tmpl_param("helponformattinglink",
htmllink("", "HelpOnFormatting", 1));
+ $form->tmpl_param("styleurl", styleurl());
if (! $form->submitted) {
$form->field(name => "rcsinfo", value => rcs_prepedit($file),
force => 1);
diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm
index 1fc047a62..7d1e8ee53 100644
--- a/IkiWiki/Render.pm
+++ b/IkiWiki/Render.pm
@@ -227,6 +227,7 @@ sub genpage ($$$) { #{{{
backlinks => [backlinks($page)],
discussionlink => htmllink($page, "Discussion", 1, 1),
mtime => scalar(gmtime($mtime)),
+ styleurl => styleurl($page),
);
return $template->output;