Skip to content

Commit

Permalink
Merge pull request #24 from viniciusdc/23-keycloak-realm-name
Browse files Browse the repository at this point in the history
Introduce `keycloak_realm_name` for theme customization
  • Loading branch information
viniciusdc authored Jul 29, 2024
2 parents dbfa10e + 85fc8f5 commit c27f9fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
</picture>
</p>

| Information | Links |
| :---------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Project | [![License](https://img.shields.io/badge/License-BSD%203--Clause-gray.svg?colorA=2D2A56&colorB=5936D9&style=flat.svg)](https://opensource.org/licenses/BSD-3-Clause) [![Nebari documentation](https://img.shields.io/badge/%F0%9F%93%96%20Read-the%20docs-gray.svg?colorA=2D2A56&colorB=5936D9&style=flat.svg)](https://nebari.dev) [![PyPI package version](https://img.shields.io/pypi/v/nebari-jupyterhub-theme.svg?colorA=2D2A56&colorB=5936D9&style=flat.svg)](https://pypi.org/project/nebari-jupyterhub-theme/) |
| Community | [![GH discussions](https://img.shields.io/badge/%F0%9F%92%AC%20-Participate%20in%20discussions-gray.svg?colorA=2D2A56&colorB=5936D9&style=flat.svg)](https://github.com/nebari-dev/nebari/discussions) [![Open an issue](https://img.shields.io/badge/%F0%9F%93%9D%20Open-an%20issue-gray.svg?colorA=2D2A56&colorB=5936D9&style=flat.svg)](https://github.com/nebari-dev/nebari-jupyterhub-theme/issues/new/choose) [![Nebari documentation - Community guidelines](https://img.shields.io/badge/🤝%20-Community%20guidelines-gray.svg?colorA=2D2A56&colorB=5936D9&style=flat.svg)](https://www.nebari.dev/community/) |
| Information | Links |
| :---------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Project | [![License](https://img.shields.io/badge/License-BSD%203--Clause-gray.svg?colorA=2D2A56&colorB=5936D9&style=flat.svg)](https://opensource.org/licenses/BSD-3-Clause) [![Nebari documentation](https://img.shields.io/badge/%F0%9F%93%96%20Read-the%20docs-gray.svg?colorA=2D2A56&colorB=5936D9&style=flat.svg)](https://nebari.dev) [![PyPI package version](https://img.shields.io/pypi/v/nebari-jupyterhub-theme.svg?colorA=2D2A56&colorB=5936D9&style=flat.svg)](https://pypi.org/project/nebari-jupyterhub-theme/) |
| Community | [![GH discussions](https://img.shields.io/badge/%F0%9F%92%AC%20-Participate%20in%20discussions-gray.svg?colorA=2D2A56&colorB=5936D9&style=flat.svg)](https://github.com/nebari-dev/nebari/discussions) [![Open an issue](https://img.shields.io/badge/%F0%9F%93%9D%20Open-an%20issue-gray.svg?colorA=2D2A56&colorB=5936D9&style=flat.svg)](https://github.com/nebari-dev/nebari-jupyterhub-theme/issues/new/choose) [![Nebari documentation - Community guidelines](https://img.shields.io/badge/🤝%20-Community%20guidelines-gray.svg?colorA=2D2A56&colorB=5936D9&style=flat.svg)](https://www.nebari.dev/community/) |

---

Expand Down Expand Up @@ -162,6 +162,7 @@ The available configuration variables are:
- `navbar_text_color`: Navigation bar links and text color (`default:` `#1c1d26`)
- `navbar_hover_color`: Hover color for navigation bar links (`default:` `#00a3b0`)
- `display_version`: Display the JupyterHub version in the footer (`default: False`)
- `keycloak_realm_name`: Keycloak realm name (`default: "nebari"`)
> **Note**
> The default colors, typefaces and logos are chosen based on the Nebari branding. You can find more about this on the [Nebari design repository](https://github.com/nebari-dev/nebari-design).
Expand Down
2 changes: 1 addition & 1 deletion nebari_jupyterhub_theme/templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
{% endif %}

<!-- Custom integrations-->
<li class="nav-item"><a class="nav-link" href="/auth/admin/nebari/console/">User Management</a></li>
<li class="nav-item"><a class="nav-link" href="/auth/admin/{{ keycloak_realm_name or 'nebari' }}/console/">User Management</a></li>
<li class="nav-item"><a class="nav-link" href="/argo">Argo Workflows</a></li>
{% if cdsdashboards_enabled %}
<li class="nav-item"><a class="nav-link" href="{{ base_url }}dashboards">Dashboards</a></li>
Expand Down

0 comments on commit c27f9fc

Please sign in to comment.