templates/Front/Scholar/Partial/_back_to_dashboard.html.twig line 1

Open in your IDE?
  1. {% set channelFromDomain = cursus.channelUserData.channel ?? channel ?? training.ownerChannel ?? get_channel_from_domain() %}
  2. {% if app.user
  3. and channelFromDomain is not null
  4. and app.request.attributes.get('_route') starts with 'front_'
  5. and nellapp_url_exist('core', 'account_channel_user_data_dashboard') %}
  6. <div class="{{ wrapper_class|default('container flex-grow-0 pt-3 d-flex justify-content-end') }}">
  7. <a class="{{ button_class|default('nellapp-btn') }}" href="{{ nellapp_url('core', 'account_channel_user_data_dashboard', {'channelId': channelFromDomain.id}) }}">
  8. <i class="fas fa-arrow-left"></i>{{- 'front.scholar.back_to_dashboard.label'|trans -}}
  9. </a>
  10. </div>
  11. {% endif %}