Add ability to customize the title template in branding.

This commit is contained in:
Half-Shot
2025-01-13 12:02:41 +00:00
parent 131b28ede8
commit f5402b4ec4
3 changed files with 35 additions and 12 deletions

View File

@@ -211,16 +211,20 @@ Starting with `branding`, the following subproperties are available:
2. `auth_header_logo_url`: A URL to the logo used on the login, registration, etc pages.
3. `auth_footer_links`: A list of links to add to the footer during login, registration, etc. Each entry must have a `text` and
`url` property.
4. `title_template`: A template string that can be used to configure the title of the application.
5. `title_template_in_room`: A template string that can be used to configure the title of the application. This applies while
the client is viewing a Matrix room.
4. `title_template`: A template string that can be used to configure the title of the application when not viewing a room.
5. `title_template_in_room`: A template string that can be used to configure the title of the application when viewing a room
#### `title_template` vars
- `subtitle`
- `room_name`
- `brand`
- `brand` The name of the web app, as configured by the `brand` config value.
- `room_name` The friendly name of a room. Only applicable to `title_template_in_room`.
- `status` The client's status, repesented as.
- The notification count, when at least one room is unread.
- "*" when no rooms are unread, but notifications are not muted.
- "Offline", when the client is offline.
- "", when the client isn't logged in or notifications are muted.
`embedded_pages` can be configured as such: