Created
May 19, 2011 15:21
-
-
Save danreedy/981006 to your computer and use it in GitHub Desktop.
Tab Admin Page Layout
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
- title "Rate Calculator" | |
.block#tab-container | |
#tab-container.secondary-navigation | |
%ul.wat-cf | |
%li{class: (current_user.has_role?(:check_role) ? "first" : nil)}= link_to "First Tab", "#tab-one" | |
%li= link_to "Second Tab", "#tab-two" | |
%li= link_to "Third Tab", "#tab-three" | |
.content | |
#tab-one | |
%h2 First Tab | |
.inner | |
= render 'first_tab' | |
#tab-two | |
%h2 Second Tab | |
.inner | |
= render 'second_tab' | |
#tab-three | |
%h2 Third Tab | |
.inner | |
= render 'third_tab' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment