From 320a4080ec62308ca7864251e7ed1bb783b7371f Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 24 Aug 2015 12:36:35 +0200 Subject: [PATCH] Dashlet: Add support for CSS animated progress labels refs #8848 --- .../Icinga/Web/Widget/Dashboard/Dashlet.php | 43 +++++++++++++++++-- public/css/icinga/animation.less | 14 ++++++ public/css/icinga/widgets.less | 12 ++++++ 3 files changed, 65 insertions(+), 4 deletions(-) diff --git a/library/Icinga/Web/Widget/Dashboard/Dashlet.php b/library/Icinga/Web/Widget/Dashboard/Dashlet.php index 06d6851e2..eb72fb851 100644 --- a/library/Icinga/Web/Widget/Dashboard/Dashlet.php +++ b/library/Icinga/Web/Widget/Dashboard/Dashlet.php @@ -3,8 +3,6 @@ namespace Icinga\Web\Widget\Dashboard; -use Zend_Form_Element_Button; -use Icinga\Web\Form; use Icinga\Web\Url; use Icinga\Data\ConfigObject; use Icinga\Exception\IcingaException; @@ -43,6 +41,13 @@ class Dashlet extends UserWidget */ private $disabled = false; + /** + * The progress label being used + * + * @var string + */ + private $progressLabel; + /** * The template string used for rendering this widget * @@ -52,6 +57,7 @@ class Dashlet extends UserWidget

{TITLE}

+

{PROGRESS_LABEL}...