Commit 117e37565f2274e38a0fed3d8119a58bc567a7e4
1 parent
3ec38214
Exists in
master
and in
22 other branches
Restore template which was not dead code after all
This partially reverts b32ec6cbe8381858f7499e200cf5e443cf2dbd72
Showing
1 changed file
with
10 additions
and
0 deletions
Show diff stats
@@ -0,0 +1,10 @@ | @@ -0,0 +1,10 @@ | ||
1 | +<% if uploaded_file.image? %> | ||
2 | + <%= link_to '', | ||
3 | + uploaded_file.view_url, | ||
4 | + :class => 'image', | ||
5 | + :style => 'background-image: url(%s)'% uploaded_file.public_filename(:thumb) | ||
6 | + %> | ||
7 | + <span><%=h uploaded_file.title %></span> | ||
8 | +<% else %> | ||
9 | + <%= render :partial => 'article', :object => uploaded_file %> | ||
10 | +<% end %> |