Sha256: 124219e0682cdf5e16da8472fd8de0045d674bdd819b82a719a14e2e1e0bfa57

Contents?: true

Size: 1.29 KB

Versions: 7

Compression:

Stored size: 1.29 KB

Contents

<% unless property[:metadata].blank? %>
  <%= heading(t('apipie_dsl.metadata'), h_level) %>
  <%= render(partial: 'metadata', locals: { meta: property[:metadata] }) %>
<% end %>

<% unless property[:examples].blank? %>
  <%= heading(t('apipie_dsl.examples'), h_level) %>
  <% property[:examples].each do |example| %>
    <% if example[:desc] %>
      <p><%= example[:desc] %></p>
    <% end %>
    <pre class="prettyprint"><%= example[:example] %></pre>
  <% end %>
<% end %>

<% unless property[:params].blank? %>
  <%= heading(t('apipie_dsl.params'), h_level) %>
  <table class='table'>
    <thead>
      <tr>
        <th><%= t('apipie_dsl.param_name') %></th>
        <th><%= t('apipie_dsl.description') %></th>
      </tr>
    </thead>
    <tbody>
      <%= render(partial: 'params', locals: { params: property[:params] }) %>
    </tbody>
  </table>
<% end %>

<%= heading(t('apipie_dsl.returns'), h_level) %>
<% if property[:returns][:description] %>
  <p><%= property[:returns][:description] %></p>
<% end %>
<table class='table'>
  <thead>
    <tr>
      <th><%= t("apipie_dsl.#{property[:returns][:object][:class]}") %></th>
      <th><%= t("apipie_dsl.details") %></th>
    </tr>
  </thead>
  <tbody>
    <%= render(partial: 'returns', locals: { return_object: property[:returns][:object]}) %>
  </tbody>
</table>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
apipie-dsl-2.6.2 app/views/apipie_dsl/apipie_dsls/_property_detail.html.erb
apipie-dsl-2.6.1 app/views/apipie_dsl/apipie_dsls/_property_detail.html.erb
apipie-dsl-2.6.0 app/views/apipie_dsl/apipie_dsls/_property_detail.html.erb
apipie-dsl-2.5.0 app/views/apipie_dsl/apipie_dsls/_property_detail.html.erb
apipie-dsl-2.4.0 app/views/apipie_dsl/apipie_dsls/_property_detail.html.erb
apipie-dsl-2.3.0 app/views/apipie_dsl/apipie_dsls/_property_detail.html.erb
apipie-dsl-2.2.10 app/views/apipie_dsl/apipie_dsls/_property_detail.html.erb