examples/fores33r/app/views/browser/index.rhtml in s33r-0.4 vs examples/fores33r/app/views/browser/index.rhtml in s33r-0.4.1

- old
+ new

@@ -1,10 +1,14 @@ <h2>Buckets</h2> -<% 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}, -:confirm => 'Are you sure you want to delete this bucket?' %></p> +<% if @buckets.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}, + :confirm => 'Are you sure you want to delete this bucket?' %></p> + <% end %> <% end %> <%= start_form_tag :action => 'create_bucket' %> <p>Create a new bucket: <%= text_field 'bucket', 'name' %></p> <p>Use your default bucket prefix (<strong><%= @default_prefix %></strong>)?