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();
|
$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)
|
||||||
|
@ -122,11 +122,14 @@ $this->load->view (
|
|||||||
|
|
||||||
<div class="mainarea" id="log_mainarea">
|
<div class="mainarea" id="log_mainarea">
|
||||||
|
|
||||||
<div class="title" id="log_mainarea_title">
|
<div class="title-band" id="code_blame_mainarea_title_band">
|
||||||
<?php print anchor ("site/log", $this->lang->line ('Change log')) ?>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<?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"')?>
|
<?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='' />
|
||||||
<?php print form_close()?>
|
<?php print form_close()?>
|
||||||
@ -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">
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user