Show if partner is online
This commit is contained in:

committed by
Sebastian Serth

parent
97764bd02e
commit
056a8e5107
@@ -4,7 +4,7 @@
|
||||
- show_tips_interventions = @show_tips_interventions || "false"
|
||||
- hide_rfc_button = @hide_rfc_button || false
|
||||
|
||||
#editor.row data-exercise-id=@exercise.id data-message-depleted=t('exercises.editor.depleted') data-message-timeout=t('exercises.editor.timeout', permitted_execution_time: @exercise.execution_environment.permitted_execution_time) data-message-out-of-memory=t('exercises.editor.out_of_memory', memory_limit: @exercise.execution_environment.memory_limit) data-submissions-url=submissions_path data-user-id=current_user.id data-contributor-id=current_contributor.id data-user-external-id=external_user_external_id data-working-times-url=working_times_exercise_path(@exercise) data-intervention-save-url=intervention_exercise_path(@exercise) data-rfc-interventions=show_rfc_interventions data-break-interventions=show_break_interventions data-tips-interventions=show_tips_interventions
|
||||
#editor.row data-exercise-id=@exercise.id data-message-depleted=t('exercises.editor.depleted') data-message-timeout=t('exercises.editor.timeout', permitted_execution_time: @exercise.execution_environment.permitted_execution_time) data-message-out-of-memory=t('exercises.editor.out_of_memory', memory_limit: @exercise.execution_environment.memory_limit) data-submissions-url=submissions_path data-user-id=current_user.id data-user-name=current_user.name data-contributor-id=current_contributor.id data-user-external-id=external_user_external_id data-working-times-url=working_times_exercise_path(@exercise) data-intervention-save-url=intervention_exercise_path(@exercise) data-rfc-interventions=show_rfc_interventions data-break-interventions=show_break_interventions data-tips-interventions=show_tips_interventions
|
||||
- unless @embed_options[:hide_sidebar]
|
||||
- additional_classes = 'sidebar-col'
|
||||
- if @tips.blank?
|
||||
@@ -39,12 +39,22 @@
|
||||
= t('exercises.editor.download')
|
||||
|
||||
div
|
||||
ruby:
|
||||
if current_contributor.programming_group?
|
||||
current_contributor.users.each do |user|
|
||||
if user.id != current_user.id
|
||||
@programming_partners_name = user.name
|
||||
end
|
||||
end
|
||||
end
|
||||
- if current_contributor.programming_group?
|
||||
span#pg_session
|
||||
= t('exercises.editor.is_offline', name: @programming_partners_name)
|
||||
= " | "
|
||||
= t('exercises.editor.pair_programming_session')
|
||||
= " | "
|
||||
= t('exercises.editor.lastsaved')
|
||||
span
|
||||
button style="display:none" id="autosave"
|
||||
span id="autosave"
|
||||
|
||||
= " | "
|
||||
|
||||
|
Reference in New Issue
Block a user