added homepage to the sidebar as well as added JS to mark the sidebar item as active

This commit is contained in:
Ken Johnson
2013-05-20 17:40:08 -04:00
parent 4337cb9a46
commit b7eb18276e
2 changed files with 14 additions and 3 deletions
+12 -1
View File
@@ -52,4 +52,15 @@
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
function makeActive(){
$('li[id="home"]').addClass('active');
};
$(document).ready(
makeActive
);
</script>
+2 -2
View File
@@ -1,12 +1,12 @@
<div id="mainnav" class="hidden-phone hidden-tablet">
<ul style="display: block;">
<li id="home">
<a href="#">
<%= link_to home_dashboard_index_path do %>
<div class="icon">
<span class="fs1" aria-hidden="true" data-icon="&#xe0a0;"></span>
</div>
Dashboard
</a>
<% end %>
</li>
<% if is_admin? %>
<li id='admin'>