only show 'unknown backups' if there is no ExtraData

This commit is contained in:
Dr Nic Williams 2015-09-02 14:42:47 -07:00
parent 1b6155cf5f
commit 540cf00ede
2 changed files with 8 additions and 7 deletions

View File

@ -132,6 +132,14 @@ func NewDeployment(configTier config.Tier, configSlot config.Slot, boshDeploymen
extraData = append(extraData, dataItem)
}
}
if len(extraData) == 0 {
dataItem := Data{
Label: "backup status",
Value: "unknown",
DisplayClass: "icon-arrow-down red",
}
extraData = append(extraData, dataItem)
}
deployment = &Deployment{
Name: name,

View File

@ -97,13 +97,6 @@
</div>
<div class="box-content">
<ul class="dashboard-list metro">
<li>
<a href="#">
<i class="icon-arrow-down red"></i>
<strong>unknown</strong>
backup status
</a>
</li>
{{range .Releases}}
<li>
<a href="#">