lib/fdoc/templates/meta_service.html.erb in fdoc-0.2.1 vs lib/fdoc/templates/meta_service.html.erb in fdoc-0.2.2
- old
+ new
@@ -14,13 +14,11 @@
<%= @meta_service.name %>
</h1>
<%= description %>
- <h2>
- Services
- </h2>
+ <%= tag_with_anchor('h2', 'Services') %>
<ul>
<% services.each do |serv| %>
<li>
<h3>
@@ -28,30 +26,24 @@
</h3>
</li>
<% end %>
</ul>
- <h2>
- Endpoints
- </h2>
+ <%= tag_with_anchor('h2', 'Endpoints') %>
<% endpoints.each do |endpoint_ary| %>
- <h3>
- <%= endpoint_ary.first.prefix %>
- </h3>
+ <%= tag_with_anchor('h3', endpoint_ary.first.prefix) %>
<ul>
<% endpoint_ary.each do |endpoint| %>
<li>
<%= endpoint.name_as_link %>
</li>
<% end %>
</ul>
<% end %>
<% if discussion %>
- <h2>
- Discussion
- </h2>
+ <%= tag_with_anchor('h2', 'Discussion') %>
<%= discussion %>
<% end %>
</div>
</div>
</body>