= render partial: 'application/header', locals: {image_file: @banner_image || 'grafitti.jpg'}
%article
  = row do
    = columns do
      - if logged_in?
        %h2=_'articles.user_settings.headings.Your_Account'
        - if @conference.present? && (@conference.registration_status == :pre || @conference.registration_status == :open)
          %p=_'articles.user_settings.paragraphs.conference_registration', :t
          = link_to (_'actions.conference.edit_registration'), register_path(@conference.slug), class: :button
        - if @my_conferences.present?
          %h3=_'articles.user_settings.headings.Your_Conferences'
          .link-dump
            - @my_conferences.each do |conference|
              = link_to (_!conference.title), administrate_conference_path(conference.slug), class: :button

        = form_tag update_settings_path do
          = textfield :name, current_user.name, required: true, heading: 'articles.conference_registration.headings.name', big: true
          = checkboxes :languages, User.AVAILABLE_LANGUAGES, (current_user.languages || [I18n.locale]).map(&:to_sym), 'languages', heading: 'articles.conference_registration.headings.languages'
          = radiobuttons :preferred_language, I18n.backend.enabled_locales, current_user.locale || I18n.locale, 'languages', heading: 'articles.conference_registration.headings.preferred_language'
          = checkbox :email_subscribe, current_user.is_subscribed != false, 'articles.user_settings.email_subscribe', heading: 'articles.user_settings.headings.email_subscribe', help: 'articles.user_settings.paragraphs.email_subscribe', inline: true, right_help: true
          .actions.center
            = button :save, value: :save
      - else
        %h2=_'forms.actions.generic.login'
        = render 'login'
