lib/sinatra/docs/collection.haml in sinatra-rabbit-1.1.1 vs lib/sinatra/docs/collection.haml in sinatra-rabbit-1.1.2
- old
+ new
@@ -29,9 +29,20 @@
- f.constraints.each do |c, v|
="#{c}=#{v}<br/>"
%td
%small=f.description
+ - if !collection.collections.empty?
+ %h3 Sub-Collections
+ %table.table.table-bordered
+ %tbody
+ - collection.collections.each do |c|
+ %tr
+ %td
+ %a{ :href => url(c.docs_url)}=c.collection_name
+ %td
+ %small=c.description || '%s subcollection of %s' % [ c.collection_name.to_s.capitalize, collection.collection_name]
+
%h3 Operations
%table.table.table-bordered
%thead
%tr
%th Name