extends layout

block content
  // header
  h1 Rose
  p An interactive, technical, and openly editable Rosetta Stone for developers.

  // search form
  form.pure-form(role='search', ng-submit='updateResults()')
    input.pure-input-rounded(type='search', ng-model='query', placeholder='Search for features, technologies, or code snippets', ng-change='updateResults()', autofocus)
    button.pure-button.pure-button-primary(type='submit') Search

  // results
  .search-results
    .card(ng-repeat='feature in features')
      h2.panel-title(ng-bind-html='feature.name | highlight:query')
      table.pure-table.pure-table-striped
        tr(ng-repeat='example in feature.examples')
          td(ng-bind-html='example.technology | highlight:query')
          td: pre(ng-repeat='snippet in listify(example.snippets)')
            code(ng-bind-html='snippet | highlight:query')
    h2.text-muted(ng-if='!features') No results

  // footer
  hr
  footer
    | &copy; 2014 
    a(href='http://nicolasmccurdy.com/') Nicolas McCurdy
    a.pull-right(href='https://github.com/nicolasmccurdy/rose' target='_blank').
      GitHub Repository

extends layout

block content
  // header
  h1 Rose
  p An interactive, technical, and openly editable Rosetta Stone for developers.

  // search form
  form.pure-form(role='search', ng-submit='updateResults()')
    input.pure-input-rounded(type='search', ng-model='query', placeholder='Search for features, technologies, or code snippets', ng-change='updateResults()', autofocus)
    button.pure-button.pure-button-primary(type='submit') Search

  // results
  .search-results
    .card(ng-repeat='feature in features')
      h2.panel-title(ng-bind-html='feature.name | highlight:query')
      table.pure-table.pure-table-striped
        tr(ng-repeat='example in feature.examples')
          td(ng-bind-html='example.technology | highlight:query')
          td: pre(ng-repeat='snippet in listify(example.snippets)')
            code(ng-bind-html='snippet | highlight:query')
    h2.text-muted(ng-if='!features || features.length === 0') No results

  // footer
  hr
  footer
    | &copy; 2014 
    a(href='http://nicolasmccurdy.com/') Nicolas McCurdy
    a.pull-right(href='https://github.com/nicolasmccurdy/rose' target='_blank').
      GitHub Repository

Fix the display of "No results"
Fix the display of "No results"
