app/helpers/user_trainings_helper.rb
# Returns the HTML for the UserTrainingController#show() action linked to the
# specified UserTraining instance, but only if the current user can access its contents.
# Otherwise it simply returns the label.
#
# Does not return anything if the user_training is nil.
#
Returns the HTML for the UserTrainingController#show() action linked to the
specified UserTraining instance, but only if the current user can access its contents.
Otherwise it simply returns the label.

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