app/helpers/user_trainings_helper.rb
# Returns the HTML for the UserTrainingController#create_user_story() action of the specified
# UserTraining instance, but only if the current user can access its contents.
#
# Assumes user_training is a valid UserTraining instance.
#
Returns the HTML for the UserTrainingController#create_user_story() action of the specified
UserTraining instance, but only if the current user can access its contents.

Assumes user_training is a valid UserTraining instance.
Returns the HTML for the UserTrainingController#create_user_story () action of the specified UserTraining instance but only if the current user can access its contents . Assumes user_training is a valid UserTraining instance .
def link_to_user_training_create_user_story( user_training )
    link_to(
      I18n.t('user_trainings.create_user_story'),
      user_training_create_user_story_path(id: user_training.id),
      method: :post,
      confirm: I18n.t('user_trainings.create_user_story_ask_confirm'),
      class: 'btn btn-default'
    ) if check_user_training_visibility_for( user_training )
  end
def link_to_user_training_create_user_story ( user_training ) link_to ( I18n . t ( 'user_trainings.create_user_story' ) , user_training_create_user_story_path ( id : user_training . id ) , method : :post , confirm : I18n . t ( 'user_trainings.create_user_story_ask_confirm' ) , class : 'btn btn-default' ) if check_user_training_visibility_for ( user_training ) end
Returns the HTML for the UserTrainingController#create_user_story() action of the specified
UserTraining instance, but only if the current user can access its contents.
Returns the HTML for the UserTrainingController#create_user_story () action of the specified UserTraining instance but only if the current user can access its contents .
user_training
<not_specific>