# File lib/deltacloud/helpers/application_helper.rb, line 162 def link_to_format(format) return '' unless request.env['REQUEST_URI'] uri = request.env['REQUEST_URI'] return if uri.include?('format=') if uri.include?('?') uri+="&format=#{format}" else uri+="?format=#{format}" end '<a href="%s">%s</a>' % [uri, "#{format}".upcase] end