Skip to content

[CSS] Improve style of tables on large screens #27

@nook24

Description

@nook24

While I like the mobile look of Statusengine
Bildschirmfoto vom 2019-10-04 16-17-08

I think tables on a desktop PC could be improved.
desktop_tables

Please also make sure to consider the night mode.
desktop_dark

The tables are build using the bootstrap grid system. So no <table></table> is used.

<div class="col-xs-12 no-padding row-hover" ng-class="{ 'row-even':$even }">
<div class="col-xs-12 hidden-sm hidden-md hidden-lg shield-mobile shield-service-{{ servicestatus.current_state }}">
<a ui-sref="servicedetails({nodename:'{{ node.hoststatus.hostname |encodeURI }}', 'servicedescription':'{{ servicestatus.service_description | encodeURI }}'})">
{{ servicestatus.service_description }}
</a>
<small class="label bg-purple" title="Issue has been acknowledged"
ng-show="servicestatus.problem_has_been_acknowledged">
<i class="fa fa-commenting-o"></i>
</small>
<small class="label bg-purple" title="Scheduled downtime is running"
ng-class="{'fix-downtime-icon': servicestatus.problem_has_been_acknowledged}"
ng-show="servicestatus.scheduled_downtime_depth > 0">
<i class="fa fa-plug"></i>
</small>
<small class="label bg-purple" title="State of service is flapping"
ng-class="{'fix-downtime-icon': servicestatus.problem_has_been_acknowledged || servicestatus.scheduled_downtime_depth}"
ng-show="servicestatus.is_flapping">
<i class="fa fa-adjust"></i>
</small>
</div>

Statusengine UI is based on AdminLTE.

Online demo: https://demo.statusengine.org


You can also setup a own instance in less then five minutes if you want.

Setup Statusengine Ui on Ubuntu 18.04 (Quick start)

(Just copy and past all commands to a plain Ubuntu box)

Install dependencies
Run all comands as root or via sudo

apt-get update
apt-get install git php-cli php-zip php-mysql php-ldap php-json mysql-server curl wget

curl -o composer-setup.php  https://getcomposer.org/installer
php composer-setup.php
cp composer.phar /usr/local/bin/composer

Load MySQL Demo Database (35KB)
Create MySQL User: (run the command mysql):

CREATE USER 'statusengine'@'localhost' IDENTIFIED BY 'password';
CREATE DATABASE IF NOT EXISTS `statusengine` DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
GRANT ALL PRIVILEGES ON `statusengine`.* TO 'statusengine'@'localhost';

Import Data

wget https://statusengine.org/hacktoberfest/statusengine.sql

mysql -u statusengine -ppassword statusengine < statusengine.sql

Install Statusengine Ui

git clone https://github.com/statusengine/interface.git
cd interface/
chmod +x bin/*
composer install

Load default config file (database settings and so on)

wget https://statusengine.org/hacktoberfest/config.yml
mv config.yml etc/

Start PHP build-in web server

php -S 0.0.0.0:80 -t ./public

Browse to webinterface:

http://<ip-address>:80/

You areready to rock!
ready


Full installation guide for different distributions:
https://statusengine.org/ui/#installation

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions