mconf/mconf-web

View on GitHub
app/views/events/_invite_button.html.haml

Summary

Maintainability
Test Coverage
- if !@event.past? && can?(:invite, @event)
  %session.event-invite
    = link_to invite_event_path(@event), :class => 'open-modal btn btn-info btn-block' do
      %i.icon.icon-envelope
      = t('events.registration.invite_button')