Provide current-contributor application-wide

* This change allows us to reuse the current user in multiple places.
This commit is contained in:
kiragrammel
2023-09-11 13:54:30 +02:00
committed by Sebastian Serth
parent c29256aa81
commit 883169121c
4 changed files with 13 additions and 2 deletions

View File

@ -17,6 +17,7 @@ html lang="#{I18n.locale || I18n.default_locale}" data-default-locale="#{I18n.de
= csrf_meta_tags
meta name='sentry' data-enabled=SentryJavascript.active?.to_s data-release=SentryJavascript.release data-dsn=SentryJavascript.dsn data-environment=SentryJavascript.environment
meta name='current-user' content=current_user&.to_page_context&.to_json
meta name='current-contributor' content=current_contributor&.to_page_context&.to_json
body
- unless @embed_options[:hide_navbar]
nav.navbar.bg-dark.navbar-expand-md.mb-4.py-1 role='navigation' data-bs-theme="dark"