summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-10-20 00:24:22 +0200
committerhukl <contact@smyck.org>2009-10-20 00:24:22 +0200
commitcdf1e60f63ea1bbe819d91ca8f1e3be8c71f247e (patch)
tree7117edb0ab027c2afae3b0e7135680b37f358cab
parentd631a3e65dc8aa0d388e1d1b328e382d4643e36e (diff)
more asset details
-rw-r--r--app/views/assets/show.html.erb23
1 files changed, 18 insertions, 5 deletions
diff --git a/app/views/assets/show.html.erb b/app/views/assets/show.html.erb
index dd657d3..a64987c 100644
--- a/app/views/assets/show.html.erb
+++ b/app/views/assets/show.html.erb
@@ -3,8 +3,21 @@
3 <%= link_to 'Back', assets_path %> 3 <%= link_to 'Back', assets_path %>
4<% end %> 4<% end %>
5 5
6 6<table>
7 7 <tr>
8<%= image_tag @asset.upload.url(:medium) %><br /> 8 <td>Thumbnail</td>
9<%= @asset.upload.content_type %><br /> 9 <td><%= image_tag @asset.upload.url(:medium) %></td>
10<%= "#{@asset.upload.size/1024} KB" %><br /> \ No newline at end of file 10 </tr>
11 <tr>
12 <td>Public Path</td>
13 <td><%= @asset.upload.url.sub(/\?\d+$/, "") %></td>
14 </tr>
15 <tr>
16 <td>Content Type</td>
17 <td><%= @asset.upload.content_type %></td>
18 </tr>
19 <tr>
20 <td>Size</td>
21 <td><%= "#{@asset.upload.size/1024} KB" %></td>
22 </tr>
23</table> \ No newline at end of file