header “Bucket”

subheader bucket.id

%div{ :'data-role' => :content, :'data-theme' => 'c'}

%l{ :'data-role' => :listview , :'data-inset' => :true, :'data-divider-theme' => 'd'}
  %i{ :'data-role' => 'list-divider'} Name
  %i
    %{ :'data-role' => 'fieldcontain'}=bucket.name
  %i{ :'data-role' => 'list-divider'} Size
  %i
    %{ :'data-role' => 'fieldcontain'}=bucket.size
  %i{ :'data-role' => 'list-divider'}
    Blobs
  - bucket.blob_list.each do |blob|
    %i
      %{ :href => bucket_url(bucket.name) + "/" + blob, :'data-ajax' => 'false'}
        %mg{ :class => 'ui-link-thumb', :src => '/images/blob.png'}
        %3=blob
  %i{ :'data-role' => 'list-divider'} Actions
  %i
    %iv{ :'data-role' => 'controlgroup', :'data-type' => "horizontal" }
      %{ :href => new_blob_form_url(bucket), :'data-role' => "button", :'data-ajax' => 'false'} Create new blob...
      =link_to_action 'Delete bucket', destroy_bucket_url(bucket.name), :delete