app/views/family_gallery/groups/index.html.haml in family_gallery-0.0.3 vs app/views/family_gallery/groups/index.html.haml in family_gallery-0.0.4
- old
+ new
@@ -1,7 +1,9 @@
- content_for(:header_title) { FamilyGallery::Group.model_name.human(count: 2) }
-= link_to t("add_new"), new_group_path
+- if can? :new, FamilyGallery::Group
+ .actions
+ = link_to t("add_new"), new_group_path, class: "button"
%table.list
%thead
%tr
%th= sort_link @ransack, :name