From 8736db957c1b1ddc8804a0d5353d5a6fd024778e Mon Sep 17 00:00:00 2001 From: James Brooks Date: Tue, 25 Nov 2014 09:16:00 +0000 Subject: [PATCH] Move component/incident color lookups into actual CSS. --- .gitignore | 1 + app/models/Component.php | 13 -------- app/models/Incident.php | 13 -------- app/views/imports/components.blade.php | 2 +- app/views/imports/incident.blade.php | 2 +- public/assets/sass/application.scss | 31 ++++++++++--------- ...-52640275.css => application-4c5cd8a5.css} | 27 ++++++++-------- public/build/css/application.css | 27 ++++++++-------- public/build/rev-manifest.json | 2 +- public/css/application.css | 27 ++++++++-------- 10 files changed, 62 insertions(+), 83 deletions(-) rename public/build/css/{application-52640275.css => application-4c5cd8a5.css} (88%) 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 @@