lib/calamum/templates/twitter/view.html.erb in calamum-1.2.1 vs lib/calamum/templates/twitter/view.html.erb in calamum-1.2.2
- old
+ new
@@ -30,9 +30,23 @@
<div class="field field-el">
<h2>Description</h2>
<p><%= @resource.description %></p>
</div>
+ <% unless @resource.headers.empty? %>
+ <div class="field">
+ <h2>Headers</h2>
+ <div class="odd">
+ <% @resource.headers.each do |key, content| %>
+ <div class="parameter">
+ <span class="param"><%= key %></span>
+ <p><%= content %></p>
+ </div>
+ <% end %>
+ </div>
+ </div>
+ <% end %>
+
<div class="field">
<h2>Parameters</h2>
<div class="odd">
<% @resource.params.each do |key, content| %>
<div class="parameter">