!!!

%html{:lang => "fr"}
	%head
		%meta{:"http-equiv" => "content-type" ,:content =>"text/html;charset=UTF-8" }
		%title
			Forum

		=javascript_include_tag "forum"
		=stylesheet_link_tag "forum"

		= csrf_meta_tag 
		
		%style=Pygments.css('.highlight')

		=javascript_include_tag "http://maps.google.com/maps/api/js?sensor=false&region=FR"
		

		
			


	

	%body


		

		-if current_fuser
			%nav#top
				=link_to "utilisateurs", forum_forum_users_path
				=link_to "forum", forum_forum_path(:id => 1)
			
				.personnal
					=image_tag (current_fuser.avatar? ? current_fuser.avatar.square.url : ""), :class => "avatar"
					%span
						=current_fuser.firstname
						=current_fuser.name
					.menu
						=link_to "se déconnecter", logout_forum_auths_path, :method => :delete
		
			
		#main= yield
		
	
		

			
		
		#flash
		
			-if flash[:alert] or (@flash_i and @flash_i[:alert])
				.message.closeable.alert
					= flash[:alert]
					= @flash_i[:alert] if @flash_i and  @flash_i[:alert] 
			-if flash[:notice]
				.message.closeable.notice
					= flash[:notice]


