Merge "Make breadcrumb appear on sec groups and keypair details"
This commit is contained in:
commit
2d673191f6
@ -117,7 +117,9 @@ class KeyPairViewTests(test.TestCase):
|
||||
kwargs={'keypair_name': keypair.name})
|
||||
res = self.client.get(url, context)
|
||||
|
||||
self.assertContains(res, "<h1>Key Pair Details</h1>", 1, 200)
|
||||
# Note(Itxaka): With breadcrumbs, the title is in a list as active
|
||||
self.assertContains(res, '<li class="active">Key Pair Details</li>',
|
||||
1, 200)
|
||||
self.assertContains(res, "<dd>%s</dd>" % keypair.name, 2, 200)
|
||||
|
||||
@test.create_stubs({api.nova: ("keypair_create", "keypair_delete")})
|
||||
|
@ -1,8 +1,14 @@
|
||||
{% extends 'base.html' %}
|
||||
{% load i18n sizeformat %}
|
||||
{% load i18n sizeformat breadcrumb_nav %}
|
||||
|
||||
{% block title %}{% trans "Key Pair Details" %}{% endblock %}
|
||||
|
||||
{% block page_header %}
|
||||
<div class='page-header'>
|
||||
{% breadcrumb_nav %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block main %}
|
||||
<div class="row-fluid">
|
||||
<div class="info detail col-sm-12">
|
||||
|
@ -1,7 +1,14 @@
|
||||
{% extends 'base.html' %}
|
||||
{% load i18n %}
|
||||
{% load i18n breadcrumb_nav %}
|
||||
|
||||
{% block title %}{% trans "Manage Security Group Rules" %}{% endblock %}
|
||||
|
||||
{% block page_header %}
|
||||
<div class='page-header'>
|
||||
{% breadcrumb_nav %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block main %}
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
|
Loading…
Reference in New Issue
Block a user