문서의 선택한 두 판 사이의 차이를 보여줍니다.
다음 판 | 이전 판 |
horizon_dashboard_theme_customization [2024/04/23 07:04] – 만듦 koov | horizon_dashboard_theme_customization [2025/01/06 06:58] (현재) – [static resource] koov |
---|
| |
이후 배포/적용 하면 된다. | 이후 배포/적용 하면 된다. |
| |
| ===== static resource ===== |
| 정적 리소스(이미지, 파일, 자바스크립트)들을 추가하고자 하는경우에는 테마 폴더의 ''static''경로아래 추가하도록 한다. |
| 만약 새로운 테마 이름이 ''my_custom_theme'' 라고 한다면 |
| ''<KOLLA_CONFIG>/horizon/themes/my_custom_theme/static/img/my-logo.png'' 와 같이 파일을 위치시키면 된다. |
| URL에서 호출할때에는 ''/static/themes/my_custom_theme/img/my-logo.png'' 와 같은 형식이 된다. |
| |
| * 정적파일경로 : ''/etc/kolla/config/horizon/themes/<테마명>/static/'' |
| * 소스URL : ''/static/themes/<테마명>/'' |
| * 템플릿내에서 적용시 : ''%%{{ STATIC_URL }}/themes/<테마명>/img/my-logo.png%%'' |
| |
| 이후 ''kolla-ansible''로 배포 적용하면 된다. |
| |
| |
| |
===== 참조링크 ===== | ===== 참조링크 ===== |
* https://docs.openstack.org/kolla-ansible/latest/reference/shared-services/horizon-guide.html | * https://docs.openstack.org/kolla-ansible/latest/reference/shared-services/horizon-guide.html |
| * https://docs.openstack.org/horizon/latest/configuration/customizing.html |
| * https://docs.starlingx.io/system_configuration/kubernetes/creating-a-custom-branding-tarball.html |
| |
| |