Replace site title with string from settings table
This commit is contained in:
@@ -15,6 +15,12 @@ SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
|
|||||||
|
|
||||||
-- --------------------------------------------------------
|
-- --------------------------------------------------------
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Dumping data for table `settings`
|
||||||
|
--
|
||||||
|
|
||||||
|
UPDATE `settings` SET `value`='Example Status Board' WHERE `name`='site.title';
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Dumping data for table `service`
|
-- Dumping data for table `service`
|
||||||
--
|
--
|
||||||
|
|||||||
@@ -43,7 +43,8 @@ INSERT INTO `settings` (`name`, `value`, `type`) VALUES
|
|||||||
('logging.FlatFile.tmp.format', '%timestamp% %hostname%:%pid% %progname%:%file%[%line%] %message%', 'string'),
|
('logging.FlatFile.tmp.format', '%timestamp% %hostname%:%pid% %progname%:%file%[%line%] %message%', 'string'),
|
||||||
('logging.FlatFile.tmp.severity', 'debug\ninfo\nwarning\nerror', 'array(string)'),
|
('logging.FlatFile.tmp.severity', 'debug\ninfo\nwarning\nerror', 'array(string)'),
|
||||||
('logging.FlatFile.tmp.category', 'webui\ndefault', 'array(string)'),
|
('logging.FlatFile.tmp.category', 'webui\ndefault', 'array(string)'),
|
||||||
('templates.tmp_path', '/var/tmp/status-board/', 'string');
|
('templates.tmp_path', '/var/tmp/status-board/', 'string'),
|
||||||
|
('site.title', 'Status Board', 'string');
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `log`
|
-- Table structure for table `log`
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
$config = StatusBoard_Main::instance()->config();
|
||||||
|
|
||||||
$services = StatusBoard_Service::all();
|
$services = StatusBoard_Service::all();
|
||||||
$this->smarty->assign('services', $services);
|
$this->smarty->assign('services', $services);
|
||||||
|
|
||||||
|
$this->smarty->assign('site_title', $config->get('site.title', 'Status Board'));
|
||||||
|
|
||||||
?>
|
?>
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
<div id="statusboard">
|
<div id="statusboard">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span14">
|
<div class="span14">
|
||||||
<h2>Atos UK Networks Shared Services Status</h2>
|
<h2>{$site_title}</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="span2">
|
<div class="span2">
|
||||||
<a href="#" class="btn small">Add Incident</a>
|
<a href="#" class="btn small">Add Incident</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user