Skip to content

Commit 934e1c4

Browse files
author
Andrew Bogott
committed
Display project name rather than ID on database instance pages
Bug: T366679
1 parent ed0c138 commit 934e1c4

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

app.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ def project_database(project, name):
157157
cached = "purge" not in flask.request.args
158158
ctx = {
159159
"project": project,
160+
"project_name": keystone.project_name_for_id(project),
160161
"name": name,
161162
}
162163
try:
@@ -186,6 +187,7 @@ def zone(project, name):
186187
cached = "purge" not in flask.request.args
187188
ctx = {
188189
"project": project,
190+
"project_name": keystone.project_name_for_id("project"),
189191
"name": name,
190192
}
191193
try:

templates/databaseinstance.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{% block content %}
66
<ol class="breadcrumb">
77
<li><a href="{{ url_for('projects') }}" rel="nofollow">Projects</a></li>
8-
<li><a href="{{ url_for('project', project_id=project ) }}" rel="nofollow">{{ project }}</a></li>
8+
<li><a href="{{ url_for('project', project_id=project ) }}" rel="nofollow">{{ project_name }}</a></li>
99
<li>Databases</li>
1010
<li class="active">{{ name }}</li>
1111
</ol>

0 commit comments

Comments
 (0)