Skip to content

Instantly share code, notes, and snippets.

@jamesweiner
Created April 1, 2009 11:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jamesweiner/88645 to your computer and use it in GitHub Desktop.
Save jamesweiner/88645 to your computer and use it in GitHub Desktop.
.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