diff options
Diffstat (limited to 'app/views/assets/index.html.erb')
| -rw-r--r-- | app/views/assets/index.html.erb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/assets/index.html.erb b/app/views/assets/index.html.erb index fc7c0291..51fc4869 100644 --- a/app/views/assets/index.html.erb +++ b/app/views/assets/index.html.erb | |||
| @@ -10,12 +10,12 @@ | |||
| 10 | </tr> | 10 | </tr> |
| 11 | <% @assets.each do |asset| %> | 11 | <% @assets.each do |asset| %> |
| 12 | <tr> | 12 | <tr> |
| 13 | <td><%= image_tag asset.upload.url(:thumb) %></td> | 13 | <td><%= image_tag asset.upload.url(:thumb), style: "max-width: 100px; max-height: 100px;" %></td> |
| 14 | <td><%= link_to asset.name, asset.upload.url %></td> | 14 | <td><%= link_to asset.name, asset.upload.url %></td> |
| 15 | <td><%= asset.upload.content_type %></td> | 15 | <td><%= asset.upload.content_type %></td> |
| 16 | <td><%= link_to 'Show', asset %></td> | 16 | <td><%= link_to 'Show', asset %></td> |
| 17 | <td><%= link_to 'Edit', edit_asset_path(asset) %></td> | 17 | <td><%= link_to 'Edit', edit_asset_path(asset) %></td> |
| 18 | <td><%= link_to 'Destroy', asset, :confirm => 'Are you sure?', :method => :delete %></td> | 18 | <td><%= button_to 'Destroy', asset, method: :delete, form: { data: { confirm: 'Are you sure?' } } %></td> |
| 19 | </tr> | 19 | </tr> |
| 20 | <% end %> | 20 | <% end %> |
| 21 | </table> \ No newline at end of file | 21 | </table> |
