diff --git a/.gitignore b/.gitignore index 949c9ec24..975011ebe 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,5 @@ -Makefile +config.php +.index +logs patches +rrd diff --git a/Makefile b/Makefile new file mode 100644 index 000000000..4ad69d63d --- /dev/null +++ b/Makefile @@ -0,0 +1,30 @@ +GIT=git +SYNC=rsync -rtvx --cvs-exclude --exclude '.*.swp' +TEST_DEST=librenms:/opt/librenms/ + +default: check + $(GIT) merge master + $(SYNC) html includes $(TEST_DEST) + +test t: merge check push-testing gc + +dev d: merge check push-dev gc + +check: + for i in `$(GIT) diff --name-only`; do php -l $$i; done + +gc: + $(GIT) gc + +merge: + $(GIT) merge master + +pull: + $(GIT) pull + +push-dev: + $(GIT) push + +push-testing: + $(GIT) push testing + diff --git a/html/css/styles.css b/html/css/styles.css index 11a70c9f4..4d9542937 100644 --- a/html/css/styles.css +++ b/html/css/styles.css @@ -495,7 +495,46 @@ a.list-device-disabled, a.list-device-disabled:visited { border-radius: 2pt 2pt 2pt 2pt; } -.front-syslog .front-eventlog { +.status-boxes { +} + +.boxes { + width: 350px; + height: 200px; + vertical-align: center; +} + +.left-2-col-fluid { + display: table-cell; + margin-right: 400px; +/* width: 100%; */ +/* vertical-align: top;*/ +} + +.right-2-col-fixed { + display: table-cell; + width: 350px; + height: 250px; + float: right; +/* vertical-align: top;*/ + + /* Rounded Corners */ + -moz-border-radius: 4px; + -webkit-border-radius: 4px; + border-radius: 4px; + + /* Borders */ + border: 1px solid #aaaaaa; + padding: 5px; +} + +.front-syslog { + margin: 4px; + clear: both; + padding: 5px; +} + +.front-eventlog { margin: 4px; clear: both; padding: 5px; @@ -1521,3 +1560,16 @@ tr.search:nth-child(odd) { margin: 2px; } +.box { +} + +.welcome { + padding-right: 25px; +} + +.simple { + border: 0px; + width: 100%; + text-align: left; +} + diff --git a/html/includes/front/common.inc.php b/html/includes/front/common.inc.php new file mode 100644 index 000000000..155def0f7 --- /dev/null +++ b/html/includes/front/common.inc.php @@ -0,0 +1,16 @@ + + * + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation, either version 3 of the License, or (at your + * option) any later version. Please see LICENSE.txt at the top level of + * the source code distribution for details. + */ + +?> + + diff --git a/html/includes/front/top_graphs.inc.php b/html/includes/front/top_graphs.inc.php new file mode 100644 index 000000000..b9876a386 --- /dev/null +++ b/html/includes/front/top_graphs.inc.php @@ -0,0 +1,38 @@ + + * + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation, either version 3 of the License, or (at your + * option) any later version. Please see LICENSE.txt at the top level of + * the source code distribution for details. + */ + +require_once("includes/front/common.inc.php"); + +echo('
Next 1
'); +echo('Next 2
'); +echo('| '.$result['hostname'].' | '.$result['ifIndex'].' | '.$result['ifDescr'].' | '.$result['total'].' |
This is where status notifications about devices and services would normally go. You might have none + because you run such a great network, or perhaps you've just started using ".$config['project_name'].". If you're new to ".$config['project_name'].", you might + want to start by adding one or more devices in the Devices menu.
"); +} +echo('