Sha256: 829561c4d513ebf6d7a1a3fb5d9f125b88b773836a9ab899ac67180652baedb3
Contents?: true
Size: 1.75 KB
Versions: 3
Compression:
Stored size: 1.75 KB
Contents
<div class="FCKThumb"> <% if controller.action_name == 'edit_images' %> <%= link_to '', "/ckeditor/pictures/#{asset.id}", :class => 'progressCancel remote-delete'%> <script type="text/javascript" charset="utf-8"> $(document).ready(function() { $('a.remote-delete').click(function() { // we just need to add the key/value pair for the DELETE method // as the second argument to the JQuery $.post() call $.post(this.href, { _method: 'delete' }, null, "script"); $(this).closest(".FCKThumb").hide(); return false; }); }); </script> <% elsif controller.action_name == 'edit_files' -%> <%= link_to '', "/ckeditor/attachments/#{asset.id}", :class => 'progressCancel remote-delete'%> <script type="text/javascript" charset="utf-8"> $(document).ready(function() { $('a.remote-delete').click(function() { // we just need to add the key/value pair for the DELETE method // as the second argument to the JQuery $.post() call $.post(this.href, { _method: 'delete' }, null, "script"); $(this).closest(".FCKThumb").hide(); return false; }); }); </script> <% end -%> <table border="0" cellpadding="0" cellspacing="0" height="100" width="100"> <tbody> <tr> <td align="center" valign="middle"> <%= image_tag(asset.url_thumb, :alt => asset.url_content, :title => asset.filename, :onerror=>"this.src='/javascripts/ckeditor/images/ckfnothumb.gif'", :class=>'image') %> </td> </tr> </tbody> </table> <div class="FCKFileName"><%= asset.filename %></div> <div class="FCKFileDate"><%= asset.format_created_at %></div> <div class="FCKFileSize"><%= number_to_human_size(asset.size, :precision => 2) %></div> </div>
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
dust-ckeditor-3.5.0 | app/views/ckeditor/_asset.html.erb |
hifi-ckeditor-3.5.2 | app/views/ckeditor/_asset.html.erb |
hifi-ckeditor-3.5.1 | app/views/ckeditor/_asset.html.erb |