Browse Source

* styles & scripts

master
Alex 'AdUser' Z 8 years ago
parent
commit
a612f7c9dc
  1. 1
      templates/imgbin/create.html.ep
  2. 1
      templates/imgbin/latest.html.ep
  3. 1
      templates/imgbin/view.html.ep
  4. 6
      templates/layouts/default.html.ep
  5. 2
      templates/zerobin/view.html.ep

1
templates/imgbin/create.html.ep

@ -1,6 +1,5 @@
% layout 'default'; % layout 'default';
% title 'Imgbin -- Create'; % title 'Imgbin -- Create';
% stash 'styles' => 'zerobin';
% my %times = (day => 1, week => 7, month => 30, quarter => 90, year => 365); % my %times = (day => 1, week => 7, month => 30, quarter => 90, year => 365);
% my @times = map { [l($_) => $times{$_}] } sort { $times{$a} <=> $times{$b} } keys(%times); % my @times = map { [l($_) => $times{$_}] } sort { $times{$a} <=> $times{$b} } keys(%times);
% param expire => $times{ config->{imgbin}->{expire} || 'year' }; % param expire => $times{ config->{imgbin}->{expire} || 'year' };

1
templates/imgbin/latest.html.ep

@ -1,6 +1,5 @@
% layout 'default'; % layout 'default';
% title 'Imgbin -- Latest'; % title 'Imgbin -- Latest';
% stash 'styles' => 'zerobin';
<h1><%= l('Latest images') %></h1> <h1><%= l('Latest images') %></h1>
<div> <div>
<div> <div>

1
templates/imgbin/view.html.ep

@ -1,6 +1,5 @@
% layout 'default'; % layout 'default';
% title 'Imgbin -- View'; % title 'Imgbin -- View';
% stash 'styles' => 'zerobin';
<h1><%= l('View image') %></h1> <h1><%= l('View image') %></h1>
<div> <div>
<div> <div>

6
templates/layouts/default.html.ep

@ -5,11 +5,9 @@
<meta name="generator" content="mojolicious" /> <meta name="generator" content="mojolicious" />
<meta name="robots" content="noindex,nofollow" /> <meta name="robots" content="noindex,nofollow" />
<link rel="shortcut icon" href="/theme/img/favicon.png" /> <link rel="shortcut icon" href="/theme/img/favicon.png" />
<link rel="stylesheet" href="/theme/css/default.css" type="text/css" />
<title><%= title %> - Linux во Владивостоке</title> <title><%= title %> - Linux во Владивостоке</title>
% my @styles = qw(); % my @styles = qw(hljs default);
% push @styles, split(/\s+/, stash('styles') || ''); % push @styles, split(/\s+/, stash('styles') || '');
%
% foreach my $style (@styles) { % foreach my $style (@styles) {
<%= stylesheet "/theme/css/$style.css" %> <%= stylesheet "/theme/css/$style.css" %>
% } % }
@ -38,7 +36,7 @@
%= content %= content
</div> </div>
% my @scripts = qw(jquery); % my @scripts = qw(jquery highlight);
% push @scripts, split(/\s+/, stash('scripts') || ''); % push @scripts, split(/\s+/, stash('scripts') || '');
% push @scripts, 'main'; % push @scripts, 'main';
% %

2
templates/zerobin/view.html.ep

@ -1,7 +1,5 @@
% layout 'default'; % layout 'default';
% title 'Zerobin -- View'; % title 'Zerobin -- View';
% stash 'styles' => 'hljs';
% 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