Skip to content

Commit

Permalink
Merge pull request #32 from YOzaz/master
Browse files Browse the repository at this point in the history
Fixes for relative paths
  • Loading branch information
mlazarov authored Jul 13, 2017
2 parents b82dba0 + 5e1f019 commit 6b0f357
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 14 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
application/config/supervisor.php
composer.phar
composer.lock
/vendor
14 changes: 7 additions & 7 deletions application/views/welcome.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
<meta charset="utf-8">
<title>Supervisord Monitoring</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link type="text/css" rel="stylesheet" href="<?php echo site_url('/css/bootstrap.min.css');?>"/>
<link type="text/css" rel="stylesheet" href="<?php echo site_url('/css/bootstrap-responsive.min.css');?>"/>
<link type="text/css" rel="stylesheet" href="<?php echo site_url('/css/custom.css');?>"/>
<script type="text/javascript" src="<?php echo site_url('/js/jquery-1.10.1.min.js');?>"></script>
<script type="text/javascript" src="<?php echo site_url('/js/bootstrap.min.js');?>"></script>
<link type="text/css" rel="stylesheet" href="<?php echo base_url('/css/bootstrap.min.css');?>"/>
<link type="text/css" rel="stylesheet" href="<?php echo base_url('/css/bootstrap-responsive.min.css');?>"/>
<link type="text/css" rel="stylesheet" href="<?php echo base_url('/css/custom.css');?>"/>
<script type="text/javascript" src="<?php echo base_url('/js/jquery-1.10.1.min.js');?>"></script>
<script type="text/javascript" src="<?php echo base_url('/js/bootstrap.min.js');?>"></script>
<noscript>
<?php
if($this->config->item('refresh')){ ?>
Expand Down Expand Up @@ -121,7 +121,7 @@
$alert = true;
echo '<span class="pull-right"><a href="'.site_url('/control/clear/'.$name.'/'.$item_name).'" id="'.$name.'_'.$item_name.
'" onclick="return false" data-toggle="popover" data-message="'.htmlspecialchars($check).'" data-original-title="'.
$item_name.'@'.$name.'" class="pop btn btn-mini btn-danger"><img src="/img/alert_icon.png" /></a></span>';
$item_name.'@'.$name.'" class="pop btn btn-mini btn-danger"><img src="' . base_url('/img/alert_icon.png') . '" /></a></span>';
}
?>
</td>
Expand Down Expand Up @@ -157,7 +157,7 @@
<?php
}
if($alert && !$muted && $this->config->item('enable_alarm')){
echo '<embed height="0" width="0" src="'.site_url('/sounds/alert.mp3').'">';
echo '<embed height="0" width="0" src="'.base_url('/sounds/alert.mp3').'">';
}
if($alert){
echo '<title>!!! WARNING !!!</title>';
Expand Down
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "mlazarov/supervisord-monitor",
"description": "Supervisord Multi Server Monitoring Tool",
"license": "MIT"
}
14 changes: 14 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "supervisord-monitor",
"version": "1.0.0",
"description": "Supervisord Multi Server Monitoring Tool",
"author": "Martin Lazarov",
"repository": {
"type": "git",
"url": "https://github.com/mlazarov/supervisord-monitor"
},
"bugs": {
"url": "https://github.com/mlazarov/supervisord-monitor/issues"
},
"license": "MIT"
}
14 changes: 7 additions & 7 deletions public_html/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,23 +37,23 @@ body{
}

.icon-red {
background-image: url("/img/glyphicons-halflings-red.png") !important;
background-image: url("../img/glyphicons-halflings-red.png") !important;
}
.icon-purple {
background-image: url("/img/glyphicons-halflings-purple.png") !important;
background-image: url("../img/glyphicons-halflings-purple.png") !important;
}
.icon-blue {
background-image: url("/img/glyphicons-halflings-blue.png") !important;
background-image: url("../img/glyphicons-halflings-blue.png") !important;
}
.icon-lightblue {
background-image: url("/img/glyphicons-halflings-lightblue.png") !important;
background-image: url("../img/glyphicons-halflings-lightblue.png") !important;
}
.icon-green {
background-image: url("/img/glyphicons-halflings-green.png") !important;
background-image: url("../img/glyphicons-halflings-green.png") !important;
}
.icon-yellow {
background-image: url("/img/glyphicons-halflings-yellow.png") !important;
background-image: url("../img/glyphicons-halflings-yellow.png") !important;
}
.icon-orange {
background-image: url("/img/glyphicons-halflings-orange.png") !important;
background-image: url("../img/glyphicons-halflings-orange.png") !important;
}

0 comments on commit 6b0f357

Please sign in to comment.