lib/calamum/templates/bootstrap/index.html.erb in calamum-1.1.0 vs lib/calamum/templates/bootstrap/index.html.erb in calamum-1.2.0
- old
+ new
@@ -1,9 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="description" content="">
<meta name="author" content="">
<link href="./assets/stylesheets/bootstrap.css" rel="Stylesheet"/>
<link href="./assets/stylesheets/bootstrap-responsive.css" rel="Stylesheet"/>
<link href="./assets/stylesheets/docs.css" rel="Stylesheet"/>
@@ -56,26 +57,26 @@
</div>
<div class="accordion" id="accordion2">
<% requests.each do |req| %>
<div class="accordion-group">
<div class="accordion-heading <%= req.action.downcase %>Header">
- <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#<%= req.object_id %>">
+ <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#<%= req.slug %>">
<span><span class="label <%= req.action_label %>"><%= req.action %></span><h4 style="display:inline;"><%= " #{req.uri}" %></h4></span>
</a>
</div>
- <div id="<%= req.object_id %>" class="accordion-body collapse">
+ <div id="<%= req.slug %>" class="accordion-body collapse">
<div class="accordion-inner">
<ul class="nav nav-tabs">
- <li class="active"><a href="#description_<%= req.object_id %>" data-toggle="tab">Description</a></li>
- <li><a href="#header_<%= req.object_id %>" data-toggle="tab">Header</a></li>
- <li><a href="#params_<%= req.object_id %>" data-toggle="tab">Parameters</a></li>
- <li><a href="#response_<%= req.object_id %>" data-toggle="tab">Response</a></li>
+ <li class="active"><a href="#description_<%= req.slug %>" data-toggle="tab">Description</a></li>
+ <li><a href="#header_<%= req.slug %>" data-toggle="tab">Header</a></li>
+ <li><a href="#params_<%= req.slug %>" data-toggle="tab">Parameters</a></li>
+ <li><a href="#response_<%= req.slug %>" data-toggle="tab">Response</a></li>
</ul>
<div class="tab-content">
- <div class="tab-pane active" id="description_<%= req.object_id %>"><%= req.description %></div>
- <div class="tab-pane" id="header_<%= req.object_id %>">
- <% unless req.params.empty? %>
+ <div class="tab-pane active" id="description_<%= req.slug %>"><%= req.description %></div>
+ <div class="tab-pane" id="header_<%= req.slug %>">
+ <% unless req.headers.empty? %>
<table class="table table-bordered table-hover">
<thead>
<tr>
<th>Key</th>
<th>Value</th>
@@ -92,11 +93,11 @@
</table>
<% else %>
Request without headers
<% end %>
</div>
- <div class="tab-pane" id="params_<%= req.object_id %>">
+ <div class="tab-pane" id="params_<%= req.slug %>">
<% unless req.params.empty? %>
<table class="table table-bordered table-hover">
<thead>
<tr>
<th>Label</th>
@@ -115,13 +116,13 @@
</tr>
<% end %>
</tbody>
</table>
<% else %>
- Request without parametres
+ Request without parameters
<% end %>
</div>
- <div class="tab-pane content" id="response_<%= req.object_id %>">
+ <div class="tab-pane content" id="response_<%= req.slug %>">
<% if req.response %>
<pre class="prettyprint"><%= pj req.response %></pre>
<% end%>
</div>
</div>