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) |
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
.blog | |
#title | |
- unless entry_form.heading_image.nil? || !File.exist?(entry_form.heading_image.asset.path(:headline)) | |
= image_tag(entry_form.heading_image.asset.url(:headline)) | |
- else | |
= image_tag('headline_blank.png') | |
.image_upload | |
.threecolumn.noborder | |
- form_for(image_form, :url => assets_path, :html => {:enctype => 'multipart/form-data', :id => 'headline_image_form'}) do |f| |