From a612f7c9dc5819f02b2ac4483f040f2e58809ced Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Sun, 3 Jan 2016 17:50:56 +1000 Subject: [PATCH] * styles & scripts --- templates/imgbin/create.html.ep | 1 - templates/imgbin/latest.html.ep | 1 - templates/imgbin/view.html.ep | 1 - templates/layouts/default.html.ep | 6 ++---- templates/zerobin/view.html.ep | 2 -- 5 files changed, 2 insertions(+), 9 deletions(-) diff --git a/templates/imgbin/create.html.ep b/templates/imgbin/create.html.ep index c0390f4..2d9aaa4 100644 --- a/templates/imgbin/create.html.ep +++ b/templates/imgbin/create.html.ep @@ -1,6 +1,5 @@ % layout 'default'; % title 'Imgbin -- Create'; -% stash 'styles' => 'zerobin'; % my %times = (day => 1, week => 7, month => 30, quarter => 90, year => 365); % my @times = map { [l($_) => $times{$_}] } sort { $times{$a} <=> $times{$b} } keys(%times); % param expire => $times{ config->{imgbin}->{expire} || 'year' }; diff --git a/templates/imgbin/latest.html.ep b/templates/imgbin/latest.html.ep index 1672820..74b5da9 100644 --- a/templates/imgbin/latest.html.ep +++ b/templates/imgbin/latest.html.ep @@ -1,6 +1,5 @@ % layout 'default'; % title 'Imgbin -- Latest'; -% stash 'styles' => 'zerobin';

<%= l('Latest images') %>

diff --git a/templates/imgbin/view.html.ep b/templates/imgbin/view.html.ep index 33ce581..a903759 100644 --- a/templates/imgbin/view.html.ep +++ b/templates/imgbin/view.html.ep @@ -1,6 +1,5 @@ % layout 'default'; % title 'Imgbin -- View'; -% stash 'styles' => 'zerobin';

<%= l('View image') %>

diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep index f77c1d4..ba319c7 100644 --- a/templates/layouts/default.html.ep +++ b/templates/layouts/default.html.ep @@ -5,11 +5,9 @@ - <%= title %> - Linux во Владивостоке -% my @styles = qw(); +% my @styles = qw(hljs default); % push @styles, split(/\s+/, stash('styles') || ''); -% % foreach my $style (@styles) { <%= stylesheet "/theme/css/$style.css" %> % } @@ -38,7 +36,7 @@ %= content
-% my @scripts = qw(jquery); +% my @scripts = qw(jquery highlight); % push @scripts, split(/\s+/, stash('scripts') || ''); % push @scripts, 'main'; % diff --git a/templates/zerobin/view.html.ep b/templates/zerobin/view.html.ep index 1618e20..a56c505 100644 --- a/templates/zerobin/view.html.ep +++ b/templates/zerobin/view.html.ep @@ -1,7 +1,5 @@ % layout 'default'; % title 'Zerobin -- View'; -% stash 'styles' => 'hljs'; -% stash 'scripts' => 'highlight'; % my $paste = (stash 'paste') || {};

<%= l('View paste') %>