Improve LTI handling for InternalUsers

This commit is contained in:
Sebastian Serth
2023-11-02 00:28:11 +01:00
committed by Sebastian Serth
parent 3b05a44b9e
commit b43dfa364e
3 changed files with 7 additions and 7 deletions

View File

@ -1,10 +1,8 @@
h1 = t('.headline')
- consumer = current_user.consumer
p
= t(".success_#{consumer ? 'with' : 'without'}_outcome", consumer: consumer)
==< t(".finished_#{consumer ? 'with' : 'without'}_consumer", consumer: h(consumer.name), url: @url)
= t(".success_#{@lti_parameter ? 'with' : 'without'}_outcome", consumer: current_user.consumer)
==< t(".finished_#{@lti_parameter ? 'with' : 'without'}_consumer", consumer: h(current_user.consumer.name), url: @url)
=< t(".do_not_use_backbutton")
h2 = t('shared.statistics')