Open-Source-Access-Control-.../app/views/space_api/index.html.erb

15 lines
334 B
Plaintext

<% content_for :header do %>
<h2>Space Status API
<%= link_to 'JSON', space_api_path( :format => :json ), :class => 'btn' %>
<%= link_to 'Door Access', space_api_access_path, :class => 'btn' %>
</h2>
<% end %>
<dl>
<% @json.each do |key,value| %>
<dt><%= key.humanize.capitalize %>:</dt>
<dd><%= value %></dd>
<% end %>
</dl>