Added submenu to notes and improved notice if no notes exist

pull/106/merge
Peter Goodhall 2011-09-28 12:06:41 +01:00
rodzic 076866bf77
commit 77e12484c0
2 zmienionych plików z 12 dodań i 3 usunięć

Wyświetl plik

@ -198,4 +198,15 @@
</ul> </ul>
</div> </div>
<?php } ?> <?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> <div id="clear" class="clear"></div>

Wyświetl plik

@ -14,11 +14,9 @@
} }
echo "</ul>"; echo "</ul>";
} else { } else {
echo "<p>You have no notes, why not create one!</p>"; echo "<p>You dont 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 cant lose them!</p>";
} }
?> ?>
<p><a href="<?php echo site_url('notes/add'); ?>" title="Add Note">Create a Note</a></p>
</div> </div>