Created
March 13, 2012 18:03
-
-
Save glideranderson/2030319 to your computer and use it in GitHub Desktop.
Rails Sidebar Tactic Loop
This file contains 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
.sidebar | |
.sidebar-top.hide-on-phones | |
%dl.nice.vertical.tabs | |
- current_workplan.objectives.each do |o| | |
%dd.active | |
= link_to o, workplan_objective_path(current_workplan, o) | |
%span.arrows.hide-on-phones | |
%span.loop | |
%ul.children | |
- o.tactics.each do |t| | |
%li | |
= link_to t, workplan_objective_tactic_path(current_workplan, o) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment