Sha256: a521ec78a2e324dc3c80489443ae4c5e96eb51ede86515e25c76f19d5035e2f2

Contents?: true

Size: 701 Bytes

Versions: 3

Compression:

Stored size: 701 Bytes

Contents

.new-asset
  %h2 Upload a new image
  %hr
  .asset-upload-form
    = view_create(:assets, :colorbox => true)
.choose-asset{:style => "display: none"}
  %h2 Choose a previously uploaded image
  %hr
  = view_list(:assets, :colorbox => true)
.current-asset
  %hr
  %a.asset-chooser-toggle{:href => "#"} Choose a previously uploaded image instead
  %hr
  %p 
    %em No image currently chosen
:javascript
  $(".asset-chooser-toggle").toggle(function(){
    $(this).text("Upload a new image instead");
    $(".new-asset").hide();
    $(".choose-asset").show();
  }, function(){
    $(this).text("Choose a previously uploaded image instead");
    $(".new-asset").show();
    $(".choose-asset").hide();
  });

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
orange-sparkles-0.7.1 lib/orange-sparkles/views/assets/insert.haml
orange-sparkles-0.7.0 lib/orange-sparkles/views/assets/insert.haml
orange-sparkles-0.5.9 lib/orange-sparkles/views/assets/insert.haml