Sha256: 435f7b882a05813ed8bba9cdda01947702534a2187544b32d131f1fe0c06413f

Contents?: true

Size: 1.04 KB

Versions: 3

Compression:

Stored size: 1.04 KB

Contents

- content_for(:header_title) { t(".show_group", name: @group.name) }

- if can? :edit, @group
  - content_for(:header_right) { link_to t("edit"), edit_group_path(@group), class: "mobile-button-header"  }

.actions
  = link_to t(".new_picture"), new_picture_path(group_id: @group.id), class: "mobile-button" if can? :new, FamilyGallery::Picture
  = link_to t('.upload_multiple'), new_group_multiple_picture_path(@group), class: 'mobile-button' if can? :new, FamilyGallery::Picture

%table.mobile-table.form
  %tbody
    %tr
      %td= FamilyGallery::Group.human_attribute_name(:name)
      %td= @group.name
    %tr
      %td= FamilyGallery::Group.human_attribute_name(:description)
      %td= simple_format @group.description, nil, wrapper_tag: "div"

%h2= FamilyGallery::Picture.model_name.human(count: 2)
%table.mobile-table.list
  %tbody
    - groups_of_pictures do |pictures|
      %tr
        - pictures.each do |picture|
          %td= picture_image_tag(picture, width: 100)
    - unless @group.pictures.any?
      %tr
        %td{colspan: 1}= t("no_results")

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
family_gallery-0.0.8 app/views/family_gallery/groups/show.mobile.haml
family_gallery-0.0.7 app/views/family_gallery/groups/show.mobile.haml
family_gallery-0.0.6 app/views/family_gallery/groups/show.mobile.haml