added homepage to the sidebar as well as added JS to mark the sidebar item as active
This commit is contained in:
@@ -53,3 +53,14 @@
|
|||||||
</div>
|
</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">
|
<div id="mainnav" class="hidden-phone hidden-tablet">
|
||||||
<ul style="display: block;">
|
<ul style="display: block;">
|
||||||
<li id="home">
|
<li id="home">
|
||||||
<a href="#">
|
<%= link_to home_dashboard_index_path do %>
|
||||||
<div class="icon">
|
<div class="icon">
|
||||||
<span class="fs1" aria-hidden="true" data-icon=""></span>
|
<span class="fs1" aria-hidden="true" data-icon=""></span>
|
||||||
</div>
|
</div>
|
||||||
Dashboard
|
Dashboard
|
||||||
</a>
|
<% end %>
|
||||||
</li>
|
</li>
|
||||||
<% if is_admin? %>
|
<% if is_admin? %>
|
||||||
<li id='admin'>
|
<li id='admin'>
|
||||||
|
|||||||
Reference in New Issue
Block a user