- 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 %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")