div(:id => "header") do
  span.site_title do
    link_to config_value("wiki_title"), config_value("base_url"), :title => _("go_to_top")
  end

  span.site_subtitle do
    config_value("wiki_description")
  end

  span.site_permission do
    case ApplicationController.permissions[config_value("permission").to_i]
    when :login_required_none
      _("site_login_required_none")
    when :login_required_edit
      _("site_login_required_edit")
    when :login_required_all
      _("site_login_required_all")
    end
  end
  
  span.site_admin do
    a.button(:href => url_for({ :controller => "admin", :action => "index" })) do
      "admin"
    end
  end
end
