Merge "Make breadcrumb appear on sec groups and keypair details"

This commit is contained in:
Jenkins 2015-12-08 09:21:31 +00:00 committed by Gerrit Code Review
commit 2d673191f6
3 changed files with 18 additions and 3 deletions

View File

@ -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")})

View File

@ -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">

View File

@ -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">