app/helpers/trainings_helper.rb
# Returns the HTML for the TrainingController#show() action of the specified
# Training instance, using the training description as link label, but only
# if the current user can access its contents.
# Otherwise it simply returns the label.
#
# Assumes training is a valid Training instance.
#
Returns the HTML for the TrainingController#show() action of the specified
Training instance, using the training description as link label, but only
if the current user can access its contents.
Otherwise it simply returns the label.

Assumes training is a valid Training instance.
Returns the HTML for the TrainingController#show () action of the specified Training instance using the training description as link label but only if the current user can access its contents . Otherwise it simply returns the label . Assumes training is a valid Training instance .
def link_to_training_show_with_label( training )
    label =  training.get_full_name()
    if check_training_visibility_for( training )
      link_to( label, training_path( id: training.id ) )
    else
      label
    end
  end
def link_to_training_show_with_label ( training ) label = training . get_full_name ( ) if check_training_visibility_for ( training ) link_to ( label , training_path ( id : training . id ) ) else label end end
Returns the HTML for the TrainingController#show() action of the specified
Training instance, using the training description as link label, but only
if the current user can access its contents.
Returns the HTML for the TrainingController#show () action of the specified Training instance using the training description as link label but only if the current user can access its contents .
training
<not_specific>