diff --git a/templates/imgbin/view.html.ep b/templates/imgbin/view.html.ep index c343335..c54083b 100644 --- a/templates/imgbin/view.html.ep +++ b/templates/imgbin/view.html.ep @@ -12,7 +12,9 @@
% my $image = (stash 'image') || {}; % my $style = sprintf "max-width: %dpx;", $config->{imgbin}->{css_maxwidth}; - %= image $image->{path}, style => $style; + <%= link_to $image->{path} => begin %> + <%= image $image->{path}, style => $style; %> + <% end %>