Sha256: 4457716bd42fce033b1005db7921c01eff2c15129bbc3d76429499fc854b3345
Contents?: true
Size: 983 Bytes
Versions: 5
Compression:
Stored size: 983 Bytes
Contents
- content_for(:header_title) { t(".show_group", name: @group.name) } .actions = link_to t(".edit_group"), edit_group_path(@group), class: "button" if can? :edit, @group = link_to t(".new_picture"), new_picture_path(group_id: @group.id), class: "button" if can? :new, FamilyGallery::Picture = link_to t('.upload_multiple'), new_group_multiple_picture_path(@group), class: 'button' if can? :new, FamilyGallery::Picture %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.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
5 entries across 5 versions & 1 rubygems