feat: add clouds.yaml download in menu

Add a link for clouds.yaml download in dropdown menu, like openrc one

Change-Id: I2e3f8a1b96be120d4a853e2b8243fa0f6deab549
This commit is contained in:
Francesco Di Nucci 2024-06-18 14:46:17 +02:00
parent a4404445ab
commit 23fa6c499e

View File

@ -287,6 +287,12 @@ if USER_MENU_LINKS is None:
'icon_classes': ['fa-download', ],
'url': 'horizon:project:api_access:openrc',
})
if SHOW_OPENSTACK_CLOUDS_YAML:
USER_MENU_LINKS.append({
'name': _('OpenStack clouds.yaml File'),
'icon_classes': ['fa-download', ],
'url': 'horizon:project:api_access:clouds.yaml',
})
if not WEBROOT.endswith('/'):
WEBROOT += '/'