changed the log view to use the title-band class.

fixed a wrong function name in logmodel
This commit is contained in:
hyung-hwan 2016-01-09 05:12:01 +00:00
parent 256560180b
commit 23eec23609
2 changed files with 25 additions and 19 deletions

View File

@ -200,7 +200,7 @@ class LogModel extends Model
$now = time();
$one_month_ago = $now - (24 * 60 * 60 * 30);
$this->db->where ('createdon <=', codepot_unixtimetodate($one_month_ago));
$this->db->where ('createdon <=', codepot_unixtimetodbdate($one_month_ago));
$this->db->delete ('log');
if ($this->db->trans_status() === FALSE)

View File

@ -122,11 +122,14 @@ $this->load->view (
<div class="mainarea" id="log_mainarea">
<div class="title" id="log_mainarea_title">
<?php print anchor ("site/log", $this->lang->line ('Change log')) ?>
</div>
<div class="title-band" id="code_blame_mainarea_title_band">
<?php if ($login['sysadmin?'] && isset($site)): ?>
<div class="title" id="log_mainarea_title">
<?php print anchor ("site/log", $this->lang->line ('Change log')) ?>
</div>
<div class="actions">
<?php if ($login['sysadmin?'] && isset($site)): ?>
<?php print form_open("site/log", 'id="purge_form"')?>
<input type='hidden' name='purge_log' id='purge_log' value='' />
<?php print form_close()?>
@ -138,11 +141,14 @@ $this->load->view (
</p>
</div>
<div class="infostrip">
<a id="log_mainarea_purge" href="#"><?php print $this->lang->line('Purge') ?></a>
<?php endif; ?>
</div>
<?php endif; ?>
<div style="clear: both;"></div>
</div>
<div id="log_mainarea_result" class="result">