app/helpers/trainings_helper.rb
# Returns the HTML for the TrainingController#show() action linked to the
# specified Training instance, but only if the current user can access its contents.
# Otherwise it simply returns the label.
#
# Does not return anything if the training is new (with id == nil).
#
Returns the HTML for the TrainingController#show() action linked to the
specified Training instance, but only if the current user can access its contents.
Otherwise it simply returns the label.

Does not return anything if the training is new (with id == nil).
Returns the HTML for the TrainingController#show () action linked to the specified Training instance but only if the current user can access its contents . Otherwise it simply returns the label . Does not return anything if the training is new ( with id == nil ) .
def link_to_training_show( training )
    link_to( training_path(id: training.id), class: 'btn btn-default' ) do
      image_tag('page_go.png') << "&nbsp; #{I18n.t(:show)}".html_safe
    end if training && check_training_visibility_for( training )
  end
def link_to_training_show ( training ) link_to ( training_path ( id : training . id ) , class : 'btn btn-default' ) do image_tag ( 'page_go.png' ) << "&nbsp; #{I18n.t(:show)}" . html_safe end if training && check_training_visibility_for ( training ) end
Returns the HTML for the TrainingController#show() action linked to the
specified Training instance, but only if the current user can access its contents.
Returns the HTML for the TrainingController#show () action linked to the specified Training instance but only if the current user can access its contents .
training
<not_specific>