Skip to content

Commit 6450bd4

Browse files
BibianaCmichaelwood
authored andcommitted
ui: rename 'dashboard' to 'status'
1 parent 02b96cd commit 6450bd4

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

datastore/ui/templates/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<a class="nav-link" href="{% url 'ui:index' %}">Home</a>
3939
</li>
4040
<li class="nav-item">
41-
<a class="nav-link" href="{% url 'ui:dashboard' %}">Dashboard</a>
41+
<a class="nav-link" href="{% url 'ui:status' %}">Status</a>
4242
</li>
4343
<li class="nav-item">
4444
<a class="nav-link" href="{% url 'ui:explore' %}">Explore</a>

datastore/ui/templates/dash.html renamed to datastore/ui/templates/status.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{% load humanize %}
44
{% load prettyjson %}
55

6-
{% block title %}Dashboard{% endblock %}
6+
{% block title %}Status{% endblock %}
77

88
{% block content %}
99

datastore/ui/urls.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
ui.views.ExploreDatagetterView.as_view(),
1515
name="explore-datagetter",
1616
),
17-
path("dashboard", ui.views.DashBoardView.as_view(), name="dashboard"),
18-
path("dashboard/log/<slug:log_name>", ui.views.LogView.as_view(), name="log"),
17+
path("status", ui.views.StatusView.as_view(), name="status"),
18+
path("status/log/<slug:log_name>", ui.views.LogView.as_view(), name="log"),
1919
]

datastore/ui/views.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ def get_context_data(self, *args, **kwargs):
8484
return context
8585

8686

87-
class DashBoardView(TemplateView):
88-
template_name = "dash.html"
87+
class StatusView(TemplateView):
88+
template_name = "status.html"
8989

9090
@staticmethod
9191
def git_revision():
@@ -127,7 +127,7 @@ def get_context_data(self, *args, **kwargs):
127127

128128
# Not critical if this fails e.g. git not installed
129129
try:
130-
context["git_rev"] = DashBoardView.git_revision()
130+
context["git_rev"] = StatusView.git_revision()
131131
except Exception:
132132
pass
133133

0 commit comments

Comments
 (0)