Fixes Deployment History page incorrectly formatting status.

Currently, the all Deployment History page always adds a
red underline underneath every status table
cell, even for those in a non-error/non-warning status.
The red underline should only appear for error/warning status.

This patch ensures that only error/warning status has the red underline.

Change-Id: I606162174bd02da1851d03c303f6fd755ddf1563
Closes-Bug: #1703187
This commit is contained in:
zhurong 2017-07-09 18:05:22 +08:00
parent 0f21fc1fba
commit 31b7a5dcc3
1 changed files with 1 additions and 0 deletions

View File

@ -747,6 +747,7 @@ class DeploymentHistoryTable(tables.DataTable):
'state',
verbose_name=_('Status'),
status=True,
status_choices=consts.DEPLOYMENT_STATUS_CHOICES,
display_choices=consts.DEPLOYMENT_STATUS_DISPLAY_CHOICES)
class Meta(object):