Allow users to view their own rate limits with /rate_limits.json. Note that rate limits are only updated after every API call, so this page only shows the state of the limits after the last call, not the current state.
22 lines
508 B
Plaintext
22 lines
508 B
Plaintext
<div id="c-rate-limits">
|
|
<div id="a-index">
|
|
<%= table_for @rate_limits, class: "striped autofit" do |t| %>
|
|
<% t.column :action %>
|
|
|
|
<% t.column :key %>
|
|
|
|
<% t.column :points do |rate_limit| %>
|
|
<%= rate_limit.points.round(2) %>
|
|
<% end %>
|
|
|
|
<% t.column :limited? %>
|
|
|
|
<% t.column :updated_at do |rate_limit| %>
|
|
<%= time_ago_in_words_tagged rate_limit.updated_at %>
|
|
<% end %>
|
|
<% end %>
|
|
|
|
<%= numbered_paginator(@rate_limits) %>
|
|
</div>
|
|
</div>
|