Sha256: 89360cd11ca76b62f1f4d6891e21b2f47d2106cc724d99f479835bf9b9ad50fa
Contents?: true
Size: 787 Bytes
Versions: 47
Compression:
Stored size: 787 Bytes
Contents
<% show_metadata = errors.reject { |err| err[:metadata].blank? }.size > 0 %> <table class="table table-bordered"> <thead> <tr> <th><%= t('apipie.error_code', default: 'Code') %></th> <th><%= t('apipie.error_description', default: [:description, 'Description']) %></th> <% if show_metadata %><th><%= t('apipie.error_metadata', default: [:metadata, 'Metadata']) %></th><% end %> </tr> </thead> <tbody> <% errors.each do |err| %> <tr> <td><span class="<%= Apipie.label_class_for_error(err) %>"> <%= err[:code] %> </span></td> <td><%= err[:description] %></td> <% if show_metadata %> <td><%= render(:partial => "metadata", :locals => {:meta => err[:metadata]}) unless err[:metadata].blank? %></td> <% end %> </tr> <% end %> </tbody> </table>
Version data entries
47 entries across 47 versions & 2 rubygems