Replace site title with string from settings table

This commit is contained in:
2011-12-22 14:16:36 +00:00
parent 833c416be8
commit 07a76fed01
4 changed files with 13 additions and 2 deletions

View File

@@ -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`
--

View File

@@ -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.severity', 'debug\ninfo\nwarning\nerror', '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`

View File

@@ -1,6 +1,10 @@
<?php
$config = StatusBoard_Main::instance()->config();
$services = StatusBoard_Service::all();
$this->smarty->assign('services', $services);
$this->smarty->assign('site_title', $config->get('site.title', 'Status Board'));
?>

View File

@@ -1,7 +1,7 @@
<div id="statusboard">
<div class="row">
<div class="span14">
<h2>Atos UK Networks Shared Services Status</h2>
<h2>{$site_title}</h2>
</div>
<div class="span2">
<a href="#" class="btn small">Add Incident</a>