From eea05d649c34c938e4e7d2ae90ce7ed6c250ac92 Mon Sep 17 00:00:00 2001 From: James Mason Date: Thu, 20 Sep 2018 12:23:05 -0700 Subject: [PATCH] Clean up export links on admin/registrations #BetterPlace --- app/views/admin/registrations/index.html.haml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/admin/registrations/index.html.haml b/app/views/admin/registrations/index.html.haml index 0417dc68..212763ca 100644 --- a/app/views/admin/registrations/index.html.haml +++ b/app/views/admin/registrations/index.html.haml @@ -8,9 +8,9 @@ = "(#{@registrations.length})" if @registrations .btn-group.pull-right - if can? :read, Registration - = link_to 'Export CSV', admin_conference_registrations_path(@conference.short_title, format: :csv), class: 'btn btn-success' - = link_to 'Export PDF', admin_conference_registrations_path(@conference.short_title, format: :pdf), class: 'btn btn-success' - = link_to 'Export XLS', {format: :xlsx}, class: 'btn btn-success' + = link_to 'Export CSV', { format: :csv }, class: 'btn btn-success' + = link_to 'Export PDF', { format: :pdf }, class: 'btn btn-success' + = link_to 'Export XLS', { format: :xlsx }, class: 'btn btn-success' %p.text-muted All the people who registered to your event .col-md-4