Skip to content

Conversation

@tomasr8
Copy link
Member

@tomasr8 tomasr8 commented Nov 20, 2024

Allows overriding the inline and numbered notes settings from themes.yaml.

These settings are available on the Layout page:

image

For example if inline minutes is toggled, the meeting minutes will always render expanded even if the theme's default is different.

The settings are only visible for themes that explicitly allow the settings to be overridden. This can be done by extending the user_settings with either user_setting_inline_minutes, user_setting_numbered_contributions or both:

  oqi:
    <<: *standard_themes_cern
    stylesheet: oqi.scss
    title: Open Quantum Institute
    user_settings:
      <<: [*user_setting_inline_minutes, *user_setting_numbered_contributions]

@tomasr8 tomasr8 marked this pull request as ready for review November 28, 2024 12:25
@tomasr8 tomasr8 requested review from AjobK and micsucmed November 28, 2024 12:25
- Populate event user setting defaults as well
- Assign `False` if the event user setting is disabled

This allows to have themes where those theme settings are set
explicitly, and the event user setting can be used to override the
setting to "off".
@ThiefMaster ThiefMaster merged commit 388dafb into indico:master Nov 28, 2024
9 checks passed
@ThiefMaster ThiefMaster deleted the theme-override branch November 28, 2024 14:09
@ThiefMaster ThiefMaster added this to the v3.3 milestone Nov 28, 2024
AjobK pushed a commit to AjobK/indico that referenced this pull request Dec 19, 2024
AjobK pushed a commit to AjobK/indico that referenced this pull request Jan 7, 2025
AjobK pushed a commit to AjobK/indico that referenced this pull request Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants