From: lombardofr Date: Wed, 18 Jul 2018 07:47:28 +0000 (+0200) Subject: refactoring urls X-Git-Tag: BUILD_v4.0.1_1~8 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F67%2F6367%2F1;p=osm%2FLW-UI.git refactoring urls Change-Id: If7c9bbfec35f733b3154fd74d83794764f4dad44 Signed-off-by: lombardofr --- diff --git a/instancehandler/template/instance_list.html b/instancehandler/template/instance_list.html index 5888519..5471c19 100644 --- a/instancehandler/template/instance_list.html +++ b/instancehandler/template/instance_list.html @@ -25,7 +25,7 @@ {% block breadcrumb_body %} {{ block.super }} -
  • {{ type|upper }} Instances
  • +
  • {{ type|upper }} Instances
  • {% endblock %} {% block content_body %} diff --git a/instancehandler/template/instance_list_ns.html b/instancehandler/template/instance_list_ns.html index 2da870d..2481d87 100644 --- a/instancehandler/template/instance_list_ns.html +++ b/instancehandler/template/instance_list_ns.html @@ -7,7 +7,7 @@ @@ -58,20 +58,20 @@
    @@ -80,21 +80,21 @@ diff --git a/instancehandler/template/instance_list_vnf.html b/instancehandler/template/instance_list_vnf.html index 410fcb0..b8fd9cc 100644 --- a/instancehandler/template/instance_list_vnf.html +++ b/instancehandler/template/instance_list_vnf.html @@ -37,7 +37,7 @@
    diff --git a/instancehandler/template/instance_operations_list.html b/instancehandler/template/instance_operations_list.html index e72b56c..55c097b 100644 --- a/instancehandler/template/instance_operations_list.html +++ b/instancehandler/template/instance_operations_list.html @@ -25,7 +25,7 @@ {% block breadcrumb_body %} {{ block.super }} -
  • Instances
  • +
  • Instances
  • {% endblock %} {% block content_body %} @@ -74,7 +74,7 @@
    diff --git a/instancehandler/template/instance_topology_view.html b/instancehandler/template/instance_topology_view.html index 627770d..fb67fbc 100644 --- a/instancehandler/template/instance_topology_view.html +++ b/instancehandler/template/instance_topology_view.html @@ -24,7 +24,7 @@ {% block breadcrumb_body %} {{ block.super }} -
  • {{ type|upper }} Instances
  • +
  • {{ type|upper }} Instances
  • {{ type|upper }} Topology
  • {% endblock %} diff --git a/instancehandler/template/modal/instance_create.html b/instancehandler/template/modal/instance_create.html index 384e782..a776697 100644 --- a/instancehandler/template/modal/instance_create.html +++ b/instancehandler/template/modal/instance_create.html @@ -6,7 +6,7 @@
    -
    {% csrf_token %} diff --git a/instancehandler/views.py b/instancehandler/views.py index 2148b7b..149b9c1 100644 --- a/instancehandler/views.py +++ b/instancehandler/views.py @@ -78,7 +78,7 @@ def create(request): user = osmutils.get_user(request) client = Client() result = client.ns_create(user.get_token(), ns_data) - return __response_handler(request, result, 'projects:instances:list', to_redirect=True, type='ns', + return __response_handler(request, result, 'instances:list', to_redirect=True, type='ns', ) @@ -132,7 +132,7 @@ def delete(request, instance_id=None, type=None): client = Client() result = client.ns_delete(user.get_token(), instance_id, force) print result - return __response_handler(request, result, 'projects:instances:list', to_redirect=True, type='ns', + return __response_handler(request, result, 'instances:list', to_redirect=True, type='ns', ) diff --git a/projecthandler/template/project/osm/descriptor/descriptorlist.html b/projecthandler/template/project/osm/descriptor/descriptorlist.html index c995844..ee3eaa7 100644 --- a/projecthandler/template/project/osm/descriptor/descriptorlist.html +++ b/projecthandler/template/project/osm/descriptor/descriptorlist.html @@ -42,7 +42,7 @@ {% if descriptor_type == "nsd" %} {% endif %}
    - Open list Open list
    @@ -71,7 +71,7 @@

    {{ project_overview.vnf }}

    VNF Instances

    - Open list Open list diff --git a/projecthandler/template/project/osm/osm_project_left_sidebar.html b/projecthandler/template/project/osm/osm_project_left_sidebar.html index b07c432..82becc5 100644 --- a/projecthandler/template/project/osm/osm_project_left_sidebar.html +++ b/projecthandler/template/project/osm/osm_project_left_sidebar.html @@ -38,8 +38,8 @@ - {% url "projects:instances:list" type='ns' as instance_ns_list_url %} - {% url "projects:instances:list" type='vnf' as instance_vnf_list_url %} + {% url "instances:list" type='ns' as instance_ns_list_url %} + {% url "instances:list" type='vnf' as instance_vnf_list_url %} - {% url "projects:sdns:list" as sdn_list_url %} + {% url "sdns:list" as sdn_list_url %}
  • - + SDN Controllers
  • - {% url "projects:vims:list" as vim_list_url %} + {% url "vims:list" as vim_list_url %}
  • - + VIM Accounts
  • diff --git a/projecthandler/urls/project.py b/projecthandler/urls/project.py index 1e3b24e..e0395c8 100644 --- a/projecthandler/urls/project.py +++ b/projecthandler/urls/project.py @@ -36,8 +36,6 @@ urlpatterns = [ name='new_descriptor'), url(r'^composer$', views.open_composer, name='open_composer'), url(r'^availablenodes', views.get_available_nodes, name='get_available_nodes'), - url(r'^sdn/', include('sdnctrlhandler.urls', namespace='sdns'), name='sdns_base'), - url(r'^vims/', include('vimhandler.urls', namespace='vims'), name='vims_base'), - url(r'^instances/', include('instancehandler.urls', namespace='instances'), name='instances_base'), + ] \ No newline at end of file diff --git a/sdnctrlhandler/template/sdn_create.html b/sdnctrlhandler/template/sdn_create.html index 75d010d..cd912bc 100644 --- a/sdnctrlhandler/template/sdn_create.html +++ b/sdnctrlhandler/template/sdn_create.html @@ -19,7 +19,7 @@ {% block breadcrumb_body %} {{ block.super }} -
  • SDN Controllers
  • +
  • SDN Controllers
  • {% endblock %} {% block content_body %} @@ -27,7 +27,7 @@
    - + {% csrf_token %}
    @@ -120,7 +120,7 @@