Sha256: 5f544c5ab99560f25f42d51fe6debceba7ab6bf02362b4bef2ceb216f8bda592

Contents?: true

Size: 485 Bytes

Versions: 1

Compression:

Stored size: 485 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

1 entries across 1 versions & 1 rubygems

Version Path
gitdocs-0.5.0 lib/gitdocs/views/search.haml