Add legal links to Help modal

This commit is contained in:
Sebastian Serth
2023-02-24 19:39:26 +01:00
parent f232ff634b
commit 5c98ec74f0
7 changed files with 41 additions and 0 deletions

View File

@ -4,3 +4,10 @@
- if local_assigns.has_key?(:execution_environment)
h2 = t('shared.help.execution_environment_specific_help', execution_environment: execution_environment)
= render_markdown(execution_environment.help)
- content_for :modal_footer do
- if ApplicationController::LEGAL_SETTINGS.present?
ul.horizontal.dash.pull-start
- ApplicationController::LEGAL_SETTINGS.each do |name, link|
li
= link_to(t("shared.help.#{name.delete_suffix('_url')}"), link, target: '_blank', rel: 'noopener')

View File

@ -11,3 +11,4 @@
- else
= render(layout: false, locals: (local_assigns[:template_variables] || {}).merge(modal: true), template: template)
.modal-footer
= yield(:modal_footer)