зеркало из https://github.com/mozilla/pjs.git
Add configurable stylesheet support.
This commit is contained in:
Родитель
060b8d2500
Коммит
509ce44efb
|
@ -44,6 +44,7 @@ my $form = $cgi->Vars;
|
||||||
my $vars;
|
my $vars;
|
||||||
$vars->{'form'} = $form;
|
$vars->{'form'} = $form;
|
||||||
$vars->{'newsgroup'} = $newsgroup;
|
$vars->{'newsgroup'} = $newsgroup;
|
||||||
|
$vars->{'stylesheet'} = $form->{'stylesheet'} || "hendrix.css";
|
||||||
|
|
||||||
my $template = Template->new({
|
my $template = Template->new({
|
||||||
INCLUDE_PATH => ["template"],
|
INCLUDE_PATH => ["template"],
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>[% title %]</title>
|
<title>[% title %]</title>
|
||||||
<link rel="stylesheet" href="hendrix.css">
|
<link rel="stylesheet" href="[% stylesheet FILTER html %]">
|
||||||
<script language="JavaScript" type="text/javascript">
|
<script language="JavaScript" type="text/javascript">
|
||||||
[% script %]
|
[% script %]
|
||||||
</script>
|
</script>
|
||||||
|
|
Загрузка…
Ссылка в новой задаче