examples/fores33r/app/views/browser/index.rhtml in s33r-0.4.2 vs examples/fores33r/app/views/browser/index.rhtml in s33r-0.5

- old
+ new

@@ -1,11 +1,11 @@ <h2>Buckets</h2> -<% if @buckets.empty? %> +<% if @bucket_names.empty? %> <p><strong>No buckets to list</strong></p> <% else %> - <% for bucket in @buckets %> - <p><%= link_to bucket.name, :action => 'show_bucket', - :bucket_name => bucket.name %> | <%= link_to 'delete', {:action => 'delete', :bucket_name => bucket.name}, + <% for name in @bucket_names %> + <p><%= link_to name, :action => 'show_bucket', + :bucket_name => name %> | <%= link_to 'delete', {:action => 'delete', :bucket_name => name}, :confirm => 'Are you sure you want to delete this bucket?' %></p> <% end %> <% end %> \ No newline at end of file