Sha256: 2f7a11de5b5d8a6b0a89fe45af6e3ed87742dfb8e9442fb0f5b7ec29446f13d8
Contents?: true
Size: 1.63 KB
Versions: 9
Compression:
Stored size: 1.63 KB
Contents
<% level ||= 0 %> <% col = 255 - level * 5 %> <% params.each do |param| %> <% if !param[:show] %> <%= render(:partial => "params", :locals => {:level => level, :params => param[:params]}) unless param[:params].blank? %> <% next %> <% end %> <tr style='background-color:rgb(<%= "#{col},#{col},#{col}" %>);'> <td> <strong><%= param[:full_name] %></strong> <% if param[:deprecated].present? %> <code><%= t('apipie.deprecated').upcase %></code> <% end %> <br> <small> <%= param[:required] ? t('apipie.required') : t('apipie.optional') %> <%= param[:allow_nil] ? ', '+t('apipie.nil_allowed') : '' %> </small> </td> <td> <%= param[:description].html_safe %> <%- if param[:validations].present? || param[:validator].present? %> <p><strong>Validations:</strong></p> <ul> <%- if param[:validator].present? %> <li><%= Apipie.markup_to_html(param[:validator]).html_safe %></li> <%- end %> <%- if param[:validations].present? %> <%- param[:validations].each do |item| %> <li><%= item.html_safe %></li> <%- end %> <%- end %> </ul> <%- end %> <%= render partial: 'deprecation', locals: { deprecation: param[:deprecation] } %> <% unless param[:metadata].blank? %> <br> Metadata: <%= render(:partial => "metadata", :locals => {:meta => param[:metadata]}) %> <% end %> </td> </tr> <%= render(:partial => "params", :locals => {:level => level + 1, :params => param[:params]}) unless param[:params].blank? %> <% end %>
Version data entries
9 entries across 9 versions & 1 rubygems