summaryrefslogtreecommitdiff
path: root/app/views/assets/show.html.erb
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-04-24 11:43:08 +0200
committerhukl <contact@smyck.org>2009-04-25 14:55:27 +0200
commitcf1b60e0cfa7d1a8f4a80d686649cc12e73a634e (patch)
treeb68bd845d290ce968892c4532bcff52083925834 /app/views/assets/show.html.erb
parentb2b78c06074046bd73cc3408a29386a976f0469c (diff)
Integrated basic Asset upload functionality. You can upload files now and use their url in pages.
Diffstat (limited to 'app/views/assets/show.html.erb')
-rw-r--r--app/views/assets/show.html.erb10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/views/assets/show.html.erb b/app/views/assets/show.html.erb
new file mode 100644
index 0000000..dd657d3
--- /dev/null
+++ b/app/views/assets/show.html.erb
@@ -0,0 +1,10 @@
1<% content_for :subnavigation do %>
2 <%= link_to 'Edit', edit_asset_path(@asset) %>
3 <%= link_to 'Back', assets_path %>
4<% end %>
5
6
7
8<%= image_tag @asset.upload.url(:medium) %><br />
9<%= @asset.upload.content_type %><br />
10<%= "#{@asset.upload.size/1024} KB" %><br /> \ No newline at end of file