Sha256: 8da8f45a0a0c84a95aee9cbd6d29814faffc592c145ae2a29414f1d44ea953ff

Contents?: true

Size: 487 Bytes

Versions: 3

Compression:

Stored size: 487 Bytes

Contents

- @title = "Matches for "#{request.params['q']}""
%script{ src: '/js/search.js', type: 'text/javascript', charset: 'utf-8' }

.results{ 'data-query' => request.params['q'] }
  - if results.empty?
    %h2 No results
  - else
    - results.each do |repo, search_results|
      %h2= repo.name
      %dl
        - search_results.each do |res|
          %dt
            %a{ href: "/#{repo.index}/#{res.file}" }
              = "/#{res.file}"
          %dd
            = res.context

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gitdocs-0.6.2 lib/gitdocs/views/search.haml
gitdocs-0.6.1 lib/gitdocs/views/search.haml
gitdocs-0.6.0 lib/gitdocs/views/search.haml