Provide current-contributor application-wide
* This change allows us to reuse the current user in multiple places.
This commit is contained in:

committed by
Sebastian Serth

parent
c29256aa81
commit
883169121c
@ -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"
|
||||
|
Reference in New Issue
Block a user