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

Version Path
apipie-rails-1.4.2 app/views/apipie/apipies/_errors.html.erb
apipie-rails-1.4.1 app/views/apipie/apipies/_errors.html.erb
apipie-rails-1.4.0 app/views/apipie/apipies/_errors.html.erb
apipie-rails-1.3.0 app/views/apipie/apipies/_errors.html.erb
apipie-rails-1.2.3 app/views/apipie/apipies/_errors.html.erb
apipie-rails-1.2.2 app/views/apipie/apipies/_errors.html.erb
apipie-rails-1.2.1 app/views/apipie/apipies/_errors.html.erb
apipie-rails-1.2.0 app/views/apipie/apipies/_errors.html.erb
apipie-rails-1.1.0 app/views/apipie/apipies/_errors.html.erb
apipie-rails-1.0.0 app/views/apipie/apipies/_errors.html.erb
apipie-rails-0.9.4 app/views/apipie/apipies/_errors.html.erb
apipie-rails-0.9.3 app/views/apipie/apipies/_errors.html.erb
apipie-rails-0.9.2 app/views/apipie/apipies/_errors.html.erb
apipie-rails-0.9.1 app/views/apipie/apipies/_errors.html.erb
apipie-rails-0.9.0 app/views/apipie/apipies/_errors.html.erb
apipie-rails-0.8.2 app/views/apipie/apipies/_errors.html.erb
apipie-rails-0.8.1 app/views/apipie/apipies/_errors.html.erb
apipie-rails-0.8.0 app/views/apipie/apipies/_errors.html.erb
apipie-rails-0.7.2 app/views/apipie/apipies/_errors.html.erb
apipie-rails-0.7.1 app/views/apipie/apipies/_errors.html.erb