%html

%head
  %style{:type => 'text/css'}=css
%body
  %ul.breadcrumb.well{:style=>'margin-bottom:0;'}
    %li.active
      Documentation
  .container
    %h1=base.name
    %ul
      - base.collections.each do |c|
        %li
          %a{:href => url(c.docs_url) }=c.collection_name.to_s.split('_').map {|p| p.capitalize}.join(' ')

  %footer.footer
    .container
      %p
        Documentation generated by
        %a{ :href => 'http://github.com/mifo/sinatra-rabbit'} Rabbit
        extension.