<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -26,10 +26,10 @@ module AssetTags
     result = []
     # all = tag.attr['all']
     # all == 'true' ? assets = Asset.find(:all) : assets = tag.locals.page.assets
-    associations = tag.locals.page.attachments.sort_by{ |a| a.position }
-    tag.locals.assets = associations
-    associations.each do |assoc|
-      tag.locals.asset = assoc.asset
+    attachments = tag.locals.page.attachments
+    tag.locals.assets = attachments
+    attachments.each do |attachment|
+      tag.locals.asset = attachment.asset
       result &lt;&lt; tag.expand
     end
     result
@@ -38,17 +38,17 @@ module AssetTags
   tag 'asset:first' do |tag|
      # all = tag.attr['all']
      # all == 'true' ? assets = Asset.find(:all) : 
-     associations = tag.locals.page.attachments.sort_by{ |a| a.position }
-     if first = associations.first
+     attachmentss = tag.locals.page.attachments
+     if first = attachmentss.first
        tag.locals.asset = first.asset
        tag.expand
      end
    end
    
    tag 'asset:if_first' do |tag|
-     associations = tag.locals.assets
+     attachments = tag.locals.assets
      asset = tag.locals.asset
-     if asset == associations.first.asset
+     if asset == attachments.first.asset
        tag.expand
      end
    end</diff>
      <filename>app/models/asset_tags.rb</filename>
    </modified>
    <modified>
      <diff>@@ -7,18 +7,23 @@
     = image_tag(asset.public_filename(:thumbnail)) 
 
   .image_info{ :id =&gt; info_id, :style =&gt; &quot;display: none&quot; }
-    %p
-      %strong= asset.title
-    %p= link_to &quot;Edit&quot;, asset_edit_url(asset)
-    %p= link_to &quot;Thumbnail Url&quot;, asset.public_filename(:thumbnail)
-    %p= link_to &quot;Original Url&quot;, asset.public_filename
-    - if @page and @page.id
-      - if @page.assets.include?(asset)
-        %p= link_to_remote &quot;Remove Image&quot;, :url =&gt; remove_asset_url(:asset =&gt; asset.id, :page =&gt; @page.id), |
-          :after =&gt; &quot;Effect.Fade('#{dom_id}', { duration: 0.8 })&quot;, :complete =&gt; &quot;Element.remove('#{dom_id}')&quot; if id_name == 'attachment' |
-      - else
-        %p= link_to_remote &quot;Attach Image&quot;, :url =&gt; attach_asset_url(:asset =&gt; asset.id, :page =&gt; @page.id)
+    %h4= asset.title
+    %div.image_links
+      - if @page and @page.id
+        %p
+          %strong
+            - if @page.assets.include?(asset)
+              = link_to_remote &quot;Remove Image&quot;, :url =&gt; remove_asset_url(:asset =&gt; asset.id, :page =&gt; @page.id), | 
+                :confirm =&gt; &quot;Are you sure you want to remove this asset from the page?&quot;, |
+                :after =&gt; &quot;Effect.Fade('#{dom_id}', { duration: 0.8 })&quot;, :complete =&gt; &quot;Element.remove('#{dom_id}')&quot; if id_name == 'attachment' |
+               
+            - else
+              = link_to_remote &quot;Attach Image&quot;, :url =&gt; attach_asset_url(:asset =&gt; asset.id, :page =&gt; @page.id)
+          
+      %p= link_to &quot;Edit&quot;, asset_edit_url(asset)
+      %p= link_to &quot;Thumbnail Url&quot;, asset.public_filename(:thumbnail)
+      %p= link_to &quot;Original Url&quot;, asset.public_filename
       
-    %p
+    %div
       %a{ :href =&gt; &quot;#&quot;, :onclick =&gt; &quot;Effect.Fade('#{info_id}', { duration: 0.4 }); return false; &quot; }
         Close</diff>
      <filename>app/views/admin/asset/_asset.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -20,7 +20,8 @@
   %h4 
     Bucket&amp;nbsp;
     %span.note Items placed here can be used in your pages, layouts and snippets.
-    = link_to_remote('Clear Bucket', {:url =&gt; clear_bucket_url}, :id =&gt; 'clear-bucket')
+    %span#clear-bucket
+      = link_to_remote('Clear Bucket', {:url =&gt; clear_bucket_url} )
   
   = render :partial =&gt; &quot;admin/asset/bucket&quot;
 </diff>
      <filename>app/views/admin/asset/_assets_container.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -6,8 +6,7 @@
       = render :partial =&gt; &quot;admin/asset/asset&quot;, :locals =&gt; { :asset =&gt; asset, :id_name =&gt; 'asset' }
   - else
     %li
-      %p
-        %em Your bucket is empty
+      %p.note Your bucket is empty
       
 
 </diff>
      <filename>app/views/admin/asset/_bucket.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -4,8 +4,7 @@
     
 - else
   %li
-    %p
-      %em You have no attached assets.
+    %p.note You have no attached assets.
     
 
 </diff>
      <filename>app/views/admin/asset/_page_assets.html.haml</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>db/migrate/004_add_position.rb</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>96e829366c80e00084033e3e68119b028be7e2f7</id>
    </parent>
  </parents>
  <author>
    <name>Keith Bingman</name>
    <email>keith@Calculon.local</email>
  </author>
  <url>http://github.com/kbingman/assets_extension/commit/ca1f33daa6648d846e25251afecb89d6b57ff70d</url>
  <id>ca1f33daa6648d846e25251afecb89d6b57ff70d</id>
  <committed-date>2008-03-30T02:57:21-07:00</committed-date>
  <authored-date>2008-03-30T02:57:21-07:00</authored-date>
  <message>Don't really know what I updated here, the bucket I suspect</message>
  <tree>1000e839cd8b180526ab660552bb4ef340018a0b</tree>
  <committer>
    <name>Keith Bingman</name>
    <email>keith@Calculon.local</email>
  </committer>
</commit>
