Last active
December 15, 2015 16:09
-
-
Save xlozinguez/5287029 to your computer and use it in GitHub Desktop.
Emblem sexyness
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul class="dropdown-menu"> | |
<li id="ember328" class="ember-view active" href="#/edit_profile"> | |
<a href="view.href"><i class="icon-user"></i>Profile</a> | |
</li> | |
<li id="ember331" class="ember-view" href="#/schedule"> | |
<a href="view.href"><i class="icon-calendar"></i>Schedule</a></li> | |
</ul> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ul.dropdown-menu | |
linkTo "edit_profile" tagName="li" | |
a href="view.href" | |
i.icon-user | |
| Profile | |
linkTo "schedule" tagName="li" | |
a href="view.href" | |
i.icon-calendar | |
| Schedule |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While that syntax makes a lot fo sense, works and is cleaner, I need to set up the active class on the current view... I believe that could be done some other way.
Here's the result with your code: http://screencast.com/t/Czgu3tXGDvft
And the result in my code (witness the fact that the current menu is already highlighted): http://screencast.com/t/vJalhalN4