Labels are now coloured by their status

This commit is contained in:
James Brooks
2014-11-19 12:02:51 +00:00
parent 68ddefff1f
commit 916110c32c
2 changed files with 13 additions and 1 deletions
+12
View File
@@ -9,4 +9,16 @@
case 4: return 'Fixed';
}
}
public function getLabelColorAttribute() {
switch ($this->status) {
case 1:
return 'label-warning';
case 2:
case 3:
return 'label-info';
case 4:
return 'label-success';
}
}
}