Sha256: 1db3b3256d365b321fe3a62e7e84ffb80d38ecaf43900293dcc97d45f27c8a71

Contents?: true

Size: 629 Bytes

Versions: 5

Compression:

Stored size: 629 Bytes

Contents

xml.instruct!
xml.OpenSearchDescription(:xmlns => 'http://a9.com/-/spec/opensearch/1.1/', 'xmlns:moz' => 'http://www.mozilla.org/2006/browser/search/') do
  xml.ShortName(t(:default_title))
  xml.InputEncoding('UTF-8')
  xml.Image("#{asset_url 'homescreen-icon-64x64.png'}", :height => '64', :width =>'64', :type =>'image/png')
  xml.Image("#{asset_url 'favicon.ico'}", :height => '16', :width =>'16', :type => 'image/x-icon')
  xml.Description(t(:opensearch_description))
  xml.Contact(t(:contact_email))
  xml.Url(type: 'text/html', method: 'get', template: root_url + '?q={searchTerms}' )
  xml.moz(:SearchForm, root_url)
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
quick_search-core-0.2.0 app/views/quick_search/opensearch/opensearch.xml.builder
quick_search-core-0.1.1 app/views/quick_search/opensearch/opensearch.xml.builder
quick_search-core-0.1.0 app/views/quick_search/opensearch/opensearch.xml.builder
quick_search-core-0.0.1 app/views/quick_search/opensearch/opensearch.xml.builder
quick_search-core-0.0.1.test app/views/quick_search/opensearch/opensearch.xml.builder