changed the log view to use the title-band class.
fixed a wrong function name in logmodel
This commit is contained in:
parent
256560180b
commit
23eec23609
@ -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)
|
||||
|
@ -122,10 +122,13 @@ $this->load->view (
|
||||
|
||||
<div class="mainarea" id="log_mainarea">
|
||||
|
||||
<div class="title-band" id="code_blame_mainarea_title_band">
|
||||
|
||||
<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='' />
|
||||
@ -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">
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user