added homepage to the sidebar as well as added JS to mark the sidebar item as active
This commit is contained in:
@@ -52,4 +52,15 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
function makeActive(){
|
||||
$('li[id="home"]').addClass('active');
|
||||
};
|
||||
|
||||
$(document).ready(
|
||||
makeActive
|
||||
);
|
||||
</script>
|
||||
@@ -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=""></span>
|
||||
</div>
|
||||
Dashboard
|
||||
</a>
|
||||
<% end %>
|
||||
</li>
|
||||
<% if is_admin? %>
|
||||
<li id='admin'>
|
||||
|
||||
Reference in New Issue
Block a user