Fix bugs of redirect url
Horizon has some changes as bellow about security group and keypairs.
Sahara-dashboard should sync the location of resource with horizon.
* Move Security Groups into its own panel
https://review.openstack.org/#/c/427882/
* Make Key Pairs tab a panel under Compute:
https://review.openstack.org/#/c/408247/
Change-Id: I705e2feff090acd1d17e58b3d77c185fd0006c19
(cherry picked from commit 0011eb6130
)
This commit is contained in:
parent
8e8b93080d
commit
655b666d76
|
@ -30,7 +30,7 @@ import sahara_dashboard.content.data_processing.clusters. \
|
|||
cluster_templates.workflows.create as t_flows
|
||||
|
||||
|
||||
KEYPAIR_IMPORT_URL = "horizon:project:access_and_security:keypairs:import"
|
||||
KEYPAIR_IMPORT_URL = "horizon:project:key_pairs:import"
|
||||
BASE_IMAGE_URL = "horizon:project:data_processing.clusters:register"
|
||||
TEMPLATE_UPLOAD_URL = (
|
||||
"horizon:project:data_processing.clusters:upload_file")
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
<ul class="list-bullet">
|
||||
{% for group in node_group.security_groups_full %}
|
||||
{% if group.id %}
|
||||
<li><a href="{% url 'horizon:project:access_and_security:security_groups:detail' group.id %}">{{ group.name }}</a></li>
|
||||
<li><a href="{% url 'horizon:project:security_groups:detail' group.id %}">{{ group.name }}</a></li>
|
||||
{% else %}
|
||||
<li>{{ group.name }}</li>
|
||||
{% endif %}
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
<ul class="list-bullet" id="sahara-bullet-list">
|
||||
{% for group in node_group.security_groups_full %}
|
||||
{% if group.id %}
|
||||
<li><a href="{% url 'horizon:project:access_and_security:security_groups:detail' group.id %}">{{ group.name }}</a></li>
|
||||
<li><a href="{% url 'horizon:project:security_groups:detail' group.id %}">{{ group.name }}</a></li>
|
||||
{% else %}
|
||||
<li>{{ group.name }}</li>
|
||||
{% endif %}
|
||||
|
|
|
@ -65,7 +65,7 @@
|
|||
<ul class="list-bullet">
|
||||
{% for group in security_groups %}
|
||||
{% if group.id %}
|
||||
<li><a href="{% url 'horizon:project:access_and_security:security_groups:detail' group.id %}">{{ group.name }}</a></li>
|
||||
<li><a href="{% url 'horizon:project:security_groups:detail' group.id %}">{{ group.name }}</a></li>
|
||||
{% else %}
|
||||
<li>{{ group.name }}</li>
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue