Browse Source

* display limits

master
Alex 'AdUser' Z 10 years ago
parent
commit
6f963ae3d0
  1. 3
      lib/LDV/I18N/ru.pm
  2. 8
      templates/imgbin/create.html.ep

3
lib/LDV/I18N/ru.pm

@ -55,6 +55,9 @@ our %Lexicon =
'Height' => 'Высота',
'Size' => 'Размер',
'Name' => 'Имя',
'Max' => 'Макс.',
'resolution' => 'размер (px)',
'size (MB)' => 'размер (МБ)',
);
1;

8
templates/imgbin/create.html.ep

@ -21,6 +21,14 @@
<%= file_field 'file', required => 1 %>
</div>
<% end %>
<br/>
% my $size = sprintf "%.1f", config->{imgbin}->{maxsize} / 1024 ** 2;
<span style="color: lightgray;">
<table>
<tr><td><%= l('Max') %> <%= l('resolution') %></td><td> : </td><%= tag td => config->{imgbin}->{maxres} %></tr>
<tr><td><%= l('Max') %> <%= l('size (MB)') %></td><td> : </td><%= tag td => $size %></tr>
</table>
</span>
</div>
% if (my $error = flash 'error') {
<div>

Loading…
Cancel
Save