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

2
templates/zerobin/create.html.ep

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

2
templates/zerobin/view.html.ep

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

Loading…
Cancel
Save