extends layout

mixin displayFeature(feature)
  .panel.panel-default
    .panel-heading: h2.panel-title= feature.name
    dl.panel-body: each example in feature.examples
      +displayExample(example.technology, example.snippets)

mixin displayExample(technology, snippets)
  dt: h4= technology
  each snippet in snippets
    dd: code= snippet

block content
  // header
  .page-header
    a.btn.btn-default.pull-right(href='https://github.com/nicolasmccurdy/rose' target='_blank').
      GitHub Repository
    h1
      a(href='/') Rose 
      p: small An interactive, technical, and openly editable Rosetta Stone for developers.

    // search form
    form.input-group.input-group-lg(role='search')
      input.form-control(type='search', name='query', placeholder='Search for features, technologies, or code snippets', value=query, autofocus)
      .input-group-btn
        button.btn.btn-primary(type='submit')
          span.glyphicon.glyphicon-search

  // results
  .search-results
    if features.length > 0
      each feature in features
        +displayFeature(feature)
    else
      h2.text-muted No results

  // footer
  hr
  footer
    | &copy; 2014 
    a(href='http://thenickperson.com') Nicolas McCurdy

extends layout

mixin displayFeature(feature)
  .panel.panel-default
    .panel-heading: h2.panel-title= feature.name
    dl.panel-body: each example in feature.examples
      +displayExample(example.technology, example.snippets)

mixin displayExample(technology, snippets)
  dt: h4= technology
  each snippet in snippets
    dd: code= snippet

block content
  // header
  .page-header
    h1
      a(href='/') Rose 
      small An interactive, technical, and openly editable Rosetta Stone for developers.

    // search form
    form.input-group.input-group-lg(role='search')
      input.form-control(type='search', name='query', placeholder='Search for features, technologies, or code snippets', value=query, autofocus)
      .input-group-btn
        button.btn.btn-primary(type='submit')
          span.glyphicon.glyphicon-search

  // results
  .search-results
    if features.length > 0
      each feature in features
        +displayFeature(feature)
    else
      h2.text-muted No results

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

Move the GitHub link to the footer
Move the GitHub link to the footer
