class LeftNav < Iowa::Component
	attr_binding :user

	# The next two methods are included just to make it more likely that
	# this example will run out of the box with no edits on both *nix and
	# windows platforms.

	def cgi_page_url
		/mswin/.match(RUBY_PLATFORM) ? '/cgi-bin/cgi_page-win.cgi' : '/cgi-bin/cgi_page-other.cgi'
	end


	def static_page_url
		/mswin/.match(RUBY_PLATFORM) ? '/static_page-win.html' : '/static_page-other.html'
	end

	def hasUser?
		begin
			self.user.to_s != ''
		rescue Exception
			false
		end
	end
end
