Browse Source

* update scripts

master
Alex 'AdUser' Z 9 years ago
parent
commit
506cf086cc
  1. 11
      templates/layouts/default.html.ep
  2. 2
      templates/zerobin/create.html.ep
  3. 2
      templates/zerobin/view.html.ep

11
templates/layouts/default.html.ep

@ -7,18 +7,16 @@
<link rel="shortcut icon" href="/theme/img/favicon.ico" /> <link rel="shortcut icon" href="/theme/img/favicon.ico" />
<link rel="stylesheet" href="/theme/css/default.css" type="text/css" /> <link rel="stylesheet" href="/theme/css/default.css" type="text/css" />
<title><%= title %> - Linux во Владивостоке</title> <title><%= title %> - Linux во Владивостоке</title>
% my @styles = (); % my @styles = qw(default);
% push @styles, split(/\s+/, stash('styles') || ''); % push @styles, split(/\s+/, stash('styles') || '');
% %
% my @scripts = (); % my @scripts = qw(jquery);
% push @scripts, split(/\s+/, stash('scripts') || ''); % push @scripts, split(/\s+/, stash('scripts') || '');
% push @scripts, 'main';
% %
% foreach my $style (@styles) { % foreach my $style (@styles) {
<%= stylesheet "/theme/css/$style.css" %> <%= stylesheet "/theme/css/$style.css" %>
% } % }
% foreach my $script (@scripts) {
<%= javascript "/theme/js/$script.js" %>
% }
</head> </head>
<body> <body>
<div id="main"> <div id="main">
@ -44,6 +42,9 @@
%= content %= content
</div> </div>
% foreach my $script (@scripts) {
<%= javascript "/theme/js/$script.js" %>
% }
</div> </div>
<div id="footer" class="ui-block"> <div id="footer" class="ui-block">

2
templates/zerobin/create.html.ep

@ -2,8 +2,6 @@
% title 'Zerobin -- View'; % title 'Zerobin -- View';
% my %times = (day => 1, week => 7, month => 30, quarter => 90, year => 395); % my %times = (day => 1, week => 7, month => 30, quarter => 90, year => 395);
% my @times = map { [l($_) => $times{$_}] } sort { $times{$a} <=> $times{$b} } keys(%times); % my @times = map { [l($_) => $times{$_}] } sort { $times{$a} <=> $times{$b} } keys(%times);
% stash 'styles' => 'zerobin';
% stash 'scripts' => 'jquery zerobin';
% param 'expire' => 30; % param 'expire' => 30;
% my $syntax = (stash 'syntax') || []; % my $syntax = (stash 'syntax') || [];
% param 'syntax' => ''; % param 'syntax' => '';

2
templates/zerobin/view.html.ep

@ -1,7 +1,7 @@
% layout 'default'; % layout 'default';
% title 'Zerobin -- View'; % title 'Zerobin -- View';
% stash 'styles' => 'hljs zerobin'; % stash 'styles' => 'hljs zerobin';
% stash 'scripts' => 'jquery highlight zerobin'; % stash 'scripts' => 'highlight';
% my $paste = (stash 'paste') || {}; % my $paste = (stash 'paste') || {};
<h1><%= l('View paste') %></h1> <h1><%= l('View paste') %></h1>
<div> <div>

Loading…
Cancel
Save