Add a additional filter replace_underscores to filter the snapshot status

When the status of the volume snapshot is Error Deleting,
the status displayed on the snapshot details page is Error_deleting

Change-Id: Ib9541fe0612c154dd3aa4120e3526d678a9f7b37
Closes-Bug: #1816011
This commit is contained in:
pengyuesheng 2019-02-15 15:29:07 +08:00
parent a8df389822
commit 74b5367c74
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@
<dd>{{ snapshot.description }}</dd>
{% endif %}
<dt>{% trans "Status" %}</dt>
<dd>{{ snapshot.status|capfirst }}</dd>
<dd>{{ snapshot.status|replace_underscores|capfirst }}</dd>
<dt>{% trans "Volume" %}</dt>
<dd class="word-wrap">
<a href="{{ snapshot.volume_url }}">