This is an automated email from the ASF dual-hosted git repository.
sijie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pulsar.git
The following commit(s) were added to refs/heads/master by this push:
new 5506b54 Remove property term from dashboard. (#2553)
5506b54 is described below
commit 5506b54d99a5f85ee8d6b5fcb1e652b83bad3ef1
Author: cckellogg <[email protected]>
AuthorDate: Wed Sep 12 02:45:44 2018 -0700
Remove property term from dashboard. (#2553)
This updates the html to display the new v2 naming.
### Motivation
This brings the dashboard up to date with the new v2 naming.
Property/properties are now tenant/tenants.
---
dashboard/django/stats/templates/stats/base.html | 2 +-
dashboard/django/stats/templates/stats/home.html | 4 ++--
dashboard/django/stats/views.py | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dashboard/django/stats/templates/stats/base.html
b/dashboard/django/stats/templates/stats/base.html
index 1e5843f..9ffdb77 100644
--- a/dashboard/django/stats/templates/stats/base.html
+++ b/dashboard/django/stats/templates/stats/base.html
@@ -50,7 +50,7 @@
</div>
{% block nav-global %}
<h2>
- <a href="{% url 'home' %}">Properties</a> |
+ <a href="{% url 'home' %}">Tenants</a> |
<a href="{% url 'brokers' %}">Brokers</a> |
<a href="{% url 'topics' %}">Topics</a> |
<a href="{% url 'clusters' %}">Clusters</a>
diff --git a/dashboard/django/stats/templates/stats/home.html
b/dashboard/django/stats/templates/stats/home.html
index 828bfae..7e9cb80 100644
--- a/dashboard/django/stats/templates/stats/home.html
+++ b/dashboard/django/stats/templates/stats/home.html
@@ -30,7 +30,7 @@
<table>
<thead>
<tr>
- {% column_header properties 'name' 'Property' %}
+ {% column_header properties 'name' 'Tenant' %}
{% column_header properties 'numNamespaces' 'Namespaces' %}
{% column_header properties 'numTopics' 'Topics' %}
{% column_header properties 'numProducers' 'Producers' %}
@@ -64,7 +64,7 @@
<td>{{property.storage | filesizeformat}}</td>
</tr>
{% empty %}
- <tr><td>No properties</td></tr>
+ <tr><td>No tenants</td></tr>
{% endfor %}
</tbody>
</table>
diff --git a/dashboard/django/stats/views.py b/dashboard/django/stats/views.py
index 9ab6859..6aba518 100644
--- a/dashboard/django/stats/views.py
+++ b/dashboard/django/stats/views.py
@@ -62,7 +62,7 @@ def home(request):
return render(request, 'stats/home.html', {
'properties': properties,
- 'title' : 'Properties',
+ 'title' : 'Tenants',
})
def property(request, property_name):