app/decorators/meeting_decorator.rb
# Builds-up the HTML for the 'manage meeting reservation' button link.
# Returns an empty string if the current_user is not allowed to manage (edit or
# update, either one or all the reservations of) the meeting.
#
# The button will be rendered if any reservations are existing for the current_user,
# even if th user is not a team-manager.
#
# Note that with the current version, the button is NO LONGER rendered  when
# the meeting is already closed, even if the current_user has already created
# some reservations.
# (To reach the reservations management page, which will result as read-only,
# the user has to click to the meeting name to reach the "reservations" tab,)
#
Builds-up the HTML for the 'manage meeting reservation' button link.
Returns an empty string if the current_user is not allowed to manage (edit or
update, either one or all the reservations of) the meeting.

The button will be rendered if any reservations are existing for the current_user,
even if th user is not a team-manager.

Note that with the current version, the button is NO LONGER rendered  when
the meeting is already closed, even if the current_user has already created
some reservations.
(To reach the reservations management page, which will result as read-only,
the user has to click to the meeting name to reach the "reservations" tab,)
Builds - up the HTML for the ' manage meeting reservation ' button link . Returns an empty string if the current_user is not allowed to manage ( edit or update either one or all the reservations of ) the meeting . The button will be rendered if any reservations are existing for the current_user even if th user is not a team - manager . Note that with the current version the button is NO LONGER rendered when the meeting is already closed even if the current_user has already created some reservations . ( To reach the reservations management page which will result as read - only the user has to click to the meeting name to reach the " reservations " tab )
def manage_reservation_button( current_user )
    if ( TeamManagerValidator.is_reservation_manageable?( object ) &&
         ( TeamManagerValidator.can_manage?( current_user, object )  || 
           TeamManagerValidator.any_reservations_for?( current_user, object )))
      h.link_to(
        I18n.t('meeting_reservation.manage_button_title'),
        meeting_reservations_edit_events_path(id: object.id),
        { class: 'btn btn-default btn-xs', 'data-toggle'=>'tooltip',
          'title'=>I18n.t('meeting_reservation.manage_meeting_tooltip') }
      )
    else
      ''
    end
  end
def manage_reservation_button ( current_user ) if ( TeamManagerValidator . is_reservation_manageable? ( object ) && ( TeamManagerValidator . can_manage? ( current_user , object ) || TeamManagerValidator . any_reservations_for? ( current_user , object ) ) ) h . link_to ( I18n . t ( 'meeting_reservation.manage_button_title' ) , meeting_reservations_edit_events_path ( id : object . id ) , { class : 'btn btn-default btn-xs' , 'data-toggle' => 'tooltip' , 'title' => I18n . t ( 'meeting_reservation.manage_meeting_tooltip' ) } ) else '' end end
Builds-up the HTML for the 'manage meeting reservation' button link.
Builds - up the HTML for the ' manage meeting reservation ' button link .
current_user
<not_specific>