Don't show host field in project tables
We already suppress this information in non-admin contexts in
manila itself [1] so drop the field from the project view
tables.
Closes-Bug: #1664370
[1] I799bb7378927b6c3ee0f9fe88fd9876a03dd85b5
Change-Id: I00b99b082a4188e0e95c7a055da0fa28c5541338
(cherry picked from commit ad27411eb4
)
This commit is contained in:
parent
fa25b14b14
commit
97441440e0
|
@ -165,7 +165,6 @@ class ReplicasTable(tables.DataTable):
|
|||
|
||||
replica_state = tables.Column(
|
||||
"replica_state", verbose_name=_("Replica State"))
|
||||
host = tables.Column("host", verbose_name=_("Host"))
|
||||
created_at = tables.Column(
|
||||
"created_at", verbose_name=_("Created At"),
|
||||
filters=(filters.parse_isotime,))
|
||||
|
|
|
@ -70,8 +70,10 @@
|
|||
<dd>{{ share.mount_snapshot_support }}</dd>
|
||||
<dt>{% trans "Created" %}</dt>
|
||||
<dd>{{ share.created_at|parse_date }}</dd>
|
||||
{% if share.host %}
|
||||
<dt>{% trans "Host" %}</dt>
|
||||
<dd>{{ share.host }}</dd>
|
||||
{% endif %}
|
||||
<dt>{% trans "Task state" %}</dt>
|
||||
<dd>{{ share.task_state }}</dd>
|
||||
</dl>
|
||||
|
|
|
@ -34,7 +34,9 @@
|
|||
<dd>{{ replica.created_at|parse_date }}</dd>
|
||||
<dt>{% trans "Updated" %}</dt>
|
||||
<dd>{{ replica.updated_at|parse_date }}</dd>
|
||||
{% if replica.host %}
|
||||
<dt>{% trans "Host" %}</dt>
|
||||
<dd>{{ replica.host }}</dd>
|
||||
{% endif %}
|
||||
</dl>
|
||||
</div>
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
fixes:
|
||||
- |
|
||||
Drop the ``host`` field from project view tables since this information is
|
||||
only visible to administrators. This is the UI side of `Launchpad bug 1664370
|
||||
<https://bugs.launchpad.net/manila/+bug/1664370>`_ and completes the fix for
|
||||
that bug.
|
Loading…
Reference in New Issue