[icinga-checkins] icinga.org: icingaweb2-module-director/master: css: style activity-log table
git at icinga.org
git at icinga.org
Sun Feb 28 17:12:39 CET 2016
Module: icingaweb2-module-director
Branch: master
Commit: 57592368ac29a0f5c97a932626585e89ed94a7cc
URL: https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=57592368ac29a0f5c97a932626585e89ed94a7cc
Author: Thomas Gelf <thomas at gelf.net>
Date: Sun Feb 28 11:16:06 2016 +0100
css: style activity-log table
---
application/tables/ActivityLogTable.php | 5 +++++
public/css/module.less | 32 +++++++++++++++++++++++++++++++
2 files changed, 37 insertions(+)
diff --git a/application/tables/ActivityLogTable.php b/application/tables/ActivityLogTable.php
index 8ea8650..b6e8034 100644
--- a/application/tables/ActivityLogTable.php
+++ b/application/tables/ActivityLogTable.php
@@ -21,6 +21,11 @@ class ActivityLogTable extends QuickTable
);
}
+ protected function listTableClasses()
+ {
+ return array_merge(array('activity-log'), parent::listTableClasses());
+ }
+
protected function getActionUrl($row)
{
return $this->url(
diff --git a/public/css/module.less b/public/css/module.less
index 53971c3..77b68d5 100644
--- a/public/css/module.less
+++ b/public/css/module.less
@@ -546,6 +546,38 @@ table.deployment-log {
}
}
+table.activity-log {
+
+ tr th:first-child {
+ padding-left: 2em;
+ }
+
+ tr td:first-child {
+ padding-left: 2em;
+ &::before {
+ font-family: 'ifont';
+ // icon-help:
+ content: '\e85b';
+ float: left;
+ font-weight: bold;
+ margin-left: -1.5em;
+ line-height: 1.5em;
+ }
+ }
+
+ tr.deployed td:first-child::before {
+ // icon-ok
+ color: @color-ok;
+ content: '\e803';
+ }
+
+ tr.undeployed td:first-child::before {
+ color: @gray;
+ // icon-clock
+ content: '\e833';
+ }
+}
+
.tree li a {
display: inline-block;
padding-left: 2.4em;
More information about the icinga-checkins
mailing list