%html
%ead %syle{:type => 'text/css'}=css %ody %l.breadcrumb.well{:style=>'margin-bottom:0;'} %i %{ :href => url('/docs') } Documentation %san.divider='/' %li.active=collection.collection_name.to_s.split('_').map {|p| p.capitalize}.join(' ') .container %1.pull-right=collection.collection_name.to_s.split('_').map {|p| p.capitalize}.join(' ') %lockquote.clearfix %{ :style => 'width : 400px;font-size:small;padding-top:1em;'} =collection.description || 'Collection does not have description set' - if !collection.features.empty? %3 Features %able.table.table-bordered %head %r %h Name %h Constraints %h Description %body.features - collection.features.each do |f| %r %d.feature %m=f.name %d - f.constraints.each do |c, v| ="#{c}=#{v}<br/>" %d %sall=f.description - if !collection.collections.empty? %3 Sub-Collections %able.table.table-bordered %body - collection.collections.each do |c| %r %d %{ :href => url(c.docs_url)}=c.collection_name %d %sall=c.description || '%s subcollection of %s' % [ c.collection_name.to_s.capitalize, collection.collection_name] %3 Operations %able.table.table-bordered %head %r %h Name %h HTTP method %h URL %h Description %body.operations - collection.operations.each do |o| %r %d %{:href => url(o.docs_url) }=o.operation_name %d=o.http_method.to_s.upcase %d %{ :href=> url(o.full_path) }=o.full_path %d %sall=o.description %footer.footer .container %p Documentation generated by %{ :href => 'http://github.com/mifo/sinatra-rabbit'} Rabbit extension.