Skip to content

Instantly share code, notes, and snippets.

@fidothe
Forked from jamesweiner/show.html.haml
Created April 1, 2009 11:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fidothe/88646 to your computer and use it in GitHub Desktop.
Save fidothe/88646 to your computer and use it in GitHub Desktop.
- 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!')
- if current_user
- if current_user.staff?
.admin.panel
%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