app/helpers/user_training_stories_helper.rb
# Returns the HTML for the UserTrainingController#show() action linked to the
# specified UserTrainingStory 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 nil.
#
Returns the HTML for the UserTrainingController#show() action linked to the
specified UserTrainingStory 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 nil.
Returns the HTML for the UserTrainingController#show () action linked to the specified UserTrainingStory 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 nil .
def link_to_user_training_from_story( user_training_story )
    label =  UserTrainingStoryDecorator.decorate(user_training_story).get_user_training_name
    if user_training_story && user_training_story.user_training && user_training_story.user_training.visible_to_user(current_user)
      link_to(
          label,
          user_training_path( id: user_training_story.user_training_id )
      )
    else
      label
    end
  end
def link_to_user_training_from_story ( user_training_story ) label = UserTrainingStoryDecorator . decorate ( user_training_story ) . get_user_training_name if user_training_story && user_training_story . user_training && user_training_story . user_training . visible_to_user ( current_user ) link_to ( label , user_training_path ( id : user_training_story . user_training_id ) ) else label end end
Returns the HTML for the UserTrainingController#show() action linked to the
specified UserTrainingStory instance, but only if the current user can access its contents.
Returns the HTML for the UserTrainingController#show () action linked to the specified UserTrainingStory instance but only if the current user can access its contents .
user_training_story
<not_specific>