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(); $now = time();
$one_month_ago = $now - (24 * 60 * 60 * 30); $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'); $this->db->delete ('log');
if ($this->db->trans_status() === FALSE) if ($this->db->trans_status() === FALSE)

View File

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