lib/interpol/documentation_app/views/endpoint.erb in interpol-0.0.8 vs lib/interpol/documentation_app/views/endpoint.erb in interpol-0.1.0

- old
+ new

@@ -1,15 +1,17 @@ <div id="<%= endpoint.name %>" class="span9 endpoint-documentation-wrapper" <%= 'style="display: none;"' unless visible %>> <div class="hero-unit"> <h1><%= endpoint.name %></h1> <h2><%= endpoint.method.to_s.upcase %> <%= endpoint.route %></h2> - <% endpoint.definitions.reverse.each do |definition| %> - <div class="versioned-endpoint-definition"> - <h3>Version <%= definition.version %></h3> - <hr> - - <%= Interpol::Documentation.html_for_schema(definition.schema) %> - </div> + <% endpoint.definitions.each do |definitions| %> + <% definitions.each do |definition| %> + <div class="versioned-endpoint-definition"> + <h3><%= definition.message_type.capitalize %> - Version <%= definition.version %> - <%= definition.status_codes %></h3> + <br/> + <%= Interpol::Documentation.html_for_schema(definition.schema) %> + </div> + <hr/> + <% end %> <% end %> </div> </div><!--/span-->