Created
April 1, 2009 11:21
-
-
Save jamesweiner/88645 to your computer and use it in GitHub Desktop.
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
.admin.panel | |
- unless @confirmation_code.nil? | |
- form_for(:game_citizen, :url => confirm_game_citizen_path(@game_citizen)) do |f| | |
%p | |
= f.hidden_field(:confirmation_code, :value => @confirmation_code) | |
= f.submit('Confirm my account!') | |
- content_for :secondary_column do | |
- if current_user | |
- if current_user.staff? | |
%p= link_to('Create Blog post', new_entry_path) | |
%p= link_to('Create Page', new_page_path) | |
- if current_user.admin? | |
- form_for(:game_citizen, :url => role_game_citizen_path(@game_citizen)) do |f| | |
%p | |
= f.label(:role) | |
= f.select(:role, current_user.allowable_roles_for(@game_citizen).collect { |value| [value.to_s.humanize, value] }) | |
%p | |
= f.submit('Change role') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment