Added submenu to notes and improved notice if no notes exist

这个提交包含在:
Peter Goodhall 2011-09-28 12:06:41 +01:00
父节点 076866bf77
当前提交 77e12484c0
共有 2 个文件被更改,包括 12 次插入3 次删除

查看文件

@ -198,4 +198,15 @@
</ul>
</div>
<?php } ?>
<?php if($this->uri->segment(1) == "notes") { ?>
<div id="subnav">
<ul id="sublist">
<li class="ui-corner-all"><a href="<?php echo site_url('notes');?>" title="Note">Notes</a></li>
</ul>
<ul id="sublist">
<li class="ui-corner-all"><a href="<?php echo site_url('notes/add');?>" title="Add a note">Add Note</a></li>
</ul>
</div>
<?php } ?>
<div id="clear" class="clear"></div>

查看文件

@ -14,11 +14,9 @@
}
echo "</ul>";
} else {
echo "<p>You have no notes, why not create one!</p>";
echo "<p>You don’t currently have any notes, these are a fantastic way of storing data like ATU settings, beacons and general station notes and its better than paper as you can’t lose them!</p>";
}
?>
<p><a href="<?php echo site_url('notes/add'); ?>" title="Add Note">Create a Note</a></p>
</div>