Browse Source

* default expire settings for imgbin

master
Alex 'AdUser' Z 9 years ago
parent
commit
c7b6b1e35d
  1. 1
      conf/ldv.conf.sample
  2. 3
      templates/imgbin/create.html.ep

1
conf/ldv.conf.sample

@ -28,6 +28,7 @@
imgbin => {
root => 'data/imgbin',
expire => 'year',
maxres => '8192x8192',
maxsize => 32 * 1024 * 1024,
thumbs_ext => 'jpg',

3
templates/imgbin/create.html.ep

@ -1,8 +1,9 @@
% layout 'default';
% title 'Imgbin -- Create';
% stash 'styles' => 'zerobin';
% my %times = (day => 1, week => 7, month => 30, quarter => 90, year => 395);
% 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' };
<h1>Загрузить файл</h1>
<div>
<%= form_for "/imgbin" => (method => 'POST', enctype => 'multipart/form-data') => begin %>

Loading…
Cancel
Save