You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 22, 2022. It is now read-only.
As you can see above not only is active added to the surrounding li but the html <span class="selected"></span> is added in when a nav link is selected.
I thought this would be a simple change by just passing in a boolean value into the block provided so I could do something like...
<%= nav_link_to "index.html" do |active| %><iclass="icon-home"></i><spanclass="title">Dashboard</span><%ifactive%><spanclass="selected"></span><%end%><%end%>
However you generate the link html before knowing if the link is selected or not so I couldn't just do that.
The text was updated successfully, but these errors were encountered:
I'm using a bootstrap theme I purchased that has posed a problem working with your helper.
The html it uses is as follows.
Selected:
Not Selected:
As you can see above not only is
active
added to the surroundingli
but the html<span class="selected"></span>
is added in when a nav link is selected.I thought this would be a simple change by just passing in a boolean value into the block provided so I could do something like...
However you generate the link html before knowing if the link is selected or not so I couldn't just do that.
The text was updated successfully, but these errors were encountered: