diff --git a/.gitignore b/.gitignore index 45ad9d95..ce01f1ce 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ composer.phar Thumbs.db rev-manifest.json config.codekit +npm-debug.log diff --git a/app/models/Component.php b/app/models/Component.php index 1d4b8932..1a850e29 100644 --- a/app/models/Component.php +++ b/app/models/Component.php @@ -22,19 +22,6 @@ } } - /** - * Color of the label for each status. - * @return string HTML class name - */ - public function getColorAttribute() { - switch ($this->status) { - case 1: return 'text-success'; - case 2: return 'text-info'; - case 3: return 'text-alert'; - case 4: return 'text-danger'; - } - } - /** * Get the transformer instance. * diff --git a/app/models/Incident.php b/app/models/Incident.php index 6e1a7420..15a1e1c1 100644 --- a/app/models/Incident.php +++ b/app/models/Incident.php @@ -22,19 +22,6 @@ } } - /** - * Looks up the class name for the status. - * @return string - */ - public function getColorAttribute() { - switch ($this->status) { - case 1: return 'warning'; - case 2: return 'alert'; - case 3: return 'info'; - case 4: return 'success'; - } - } - /** * Finds the icon to use for each status. * @return string diff --git a/app/views/imports/components.blade.php b/app/views/imports/components.blade.php index 97052e2e..128700fa 100644 --- a/app/views/imports/components.blade.php +++ b/app/views/imports/components.blade.php @@ -3,7 +3,7 @@