Sha256: c41608e1e0020dbc8598808e282e6f36fad4bd43c4aaeb92791cec99db4eb040
Contents?: true
Size: 713 Bytes
Versions: 3
Compression:
Stored size: 713 Bytes
Contents
.new-asset{:style => "display: none"} %h2 Upload a new image %hr .asset-upload-form = view_create(:assets) .choose-asset %h2 Choose a previously uploaded image %hr = view_list(:assets) .current-asset %hr %a.asset-chooser-toggle{:href => "#"} Choose a previously uploaded image instead %hr %p Currently chosen image: %em= model.name .preview = model.to_asset_tag :javascript $(".asset-chooser-toggle").toggle(function(){ $(this).text("Choose a previously uploaded image instead"); $(".new-asset").show(); $(".choose-asset").hide(); }, function(){ $(this).text("Upload a new image instead"); $(".new-asset").hide(); $(".choose-asset").show(); });
Version data entries
3 entries across 3 versions & 1 rubygems