Sha256: a84c2a112688cf0662ce2ad33324609367185e147800fd3c88d65570c09ae1a4
Contents?: true
Size: 874 Bytes
Versions: 1
Compression:
Stored size: 874 Bytes
Contents
.asset-list - for asset in list .asset-tile{:id => asset.id} %p.asset_tag -if(asset.image?) = asset.to_asset_tag -elsif(asset.pdf?) %img{:src => '/assets/_sparkles_/images/pdf_icon.png'} -else %img{:src => '/assets/_sparkles_/images/file_icon.png'} %p.asset_name - name = asset.name.size > 50 ? asset.name[0,50] + '...' : asset.name %em= name :javascript $(".asset-tile .asset_tag a").click(function(ret){ var tile = $(this).closest('.asset-tile'); var id = tile.attr("id"); $.markItUp({ replaceWith: '<o:asset id="'+id+'" />' } ); $.fn.colorbox.close(); return false; }); $(".asset-tile").click(function(ret){ var tile = $(this); var id = tile.attr("id"); $.markItUp({ replaceWith: '<o:asset id="'+id+'" />' } ); $.fn.colorbox.close(); });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
orange-sparkles-0.5.9 | lib/orange-sparkles/views/assets/list_markitup.haml |