Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
nook24 opened this issue Oct 4, 2019 · 3 comments
Closed

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

nook24 opened this issue Oct 4, 2019 · 3 comments

Comments

@nook24
Copy link
Member

nook24 commented Oct 4, 2019

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

@AdamHebby
Copy link

Is there a reason you are using the grid system for the tables rather than using bootstrap tables?

What advantages do you gain from this?

Are you opposed to switching to tables, providing no functionality is lost and it is done correctly / to your satisfaction?

@nook24
Copy link
Member Author

nook24 commented Oct 5, 2019

@AdamHebby the reason why I don't want to use tables is basically because they are not responsive at all. Or at least, I was never able to get this done.

I'm not a fan about horizontal scrolling tables which always requires some ugly javascript hacks.

But maybe this is just due to my poor CSS skills :)

@nook24
Copy link
Member Author

nook24 commented Oct 21, 2019

Many thanks to @adrienluitot for resolving this #30

@nook24 nook24 closed this as completed Oct 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants