%header.page-header
  %h1
    %span.muted= @album.formated_event_date
    %span.album-title=@album.title

  = render('header_actions', album: @album)

= render('images/form') if can?(:create, Image)

= render('view_options', album: @album)

#thumbnails-wrapper.row-fluid
  #albums.grid-container
    = render partial: @children, cache: true

  #images.grid-container{data: { toggle: 'modal-gallery', target: '#modal-gallery' }}
    = render partial: @images, cache: true
  = paginate @images
  - unless @images.empty?
    %span.muted= page_entries_info(@images)

%section.row-fluid
  .span6
    - if can?(:create, Album)
      = simple_form_for(Album.new) do |f|
        %fieldset
          %legend New Child Album
          = render 'form', f: f
          = f.hidden_field :parent_id, value: @album.id
          = f.button :submit, 'Create', class: 'btn-primary'

#comments.row-fluid
  %header.page-header
    %h3 Comments
  = render('comments/form') if can?(:create, Comment)
  - comments_list(@comments, @album)

= render 'images/modal'

%header.page-header
  %h1
    %span.muted= @album.formated_event_date
    %span.album-title=@album.title

  = render('header_actions', album: @album)

= render('images/form') if can?(:create, Image)

= render('view_options', album: @album)

#thumbnails-wrapper.row-fluid
  #albums.grid-container
    = render partial: @children, cache: true

  #images.grid-container{data: { toggle: 'modal-gallery', target: '#modal-gallery' }}
    = render partial: @images, cache: true
  = paginate @images
  - unless @images.empty?
    %span.muted= page_entries_info(@images)

- if can?(:create, Album)
  %section.row-fluid
    .span6
      = simple_form_for(Album.new) do |f|
        %fieldset
          %legend New Child Album
          = render 'form', f: f
          = f.hidden_field :parent_id, value: @album.id
          = f.button :submit, 'Create', class: 'btn-primary'

#comments.row-fluid
  %header.page-header
    %h3 Comments
  = render('comments/form') if can?(:create, Comment)
  - comments_list(@comments, @album)

= render 'images/modal'

Fix empty tag displaying when not logged in.
Fix empty tag displaying when not logged in.
