forked from asonix/mastodon
commit
9f9680412f
2 changed files with 10 additions and 5 deletions
|
@ -48,11 +48,16 @@ code {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type=checkbox] {
|
label.checkbox {
|
||||||
display: inline-block;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 3px;
|
padding-left: 25px;
|
||||||
margin-right: 8px;
|
}
|
||||||
|
|
||||||
|
input[type=checkbox] {
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
top: 1px;
|
||||||
|
margin: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,7 @@ class ApiController < ApplicationController
|
||||||
|
|
||||||
response.headers['X-RateLimit-Limit'] = match_data[:limit].to_s
|
response.headers['X-RateLimit-Limit'] = match_data[:limit].to_s
|
||||||
response.headers['X-RateLimit-Remaining'] = (match_data[:limit] - match_data[:count]).to_s
|
response.headers['X-RateLimit-Remaining'] = (match_data[:limit] - match_data[:count]).to_s
|
||||||
response.headers['X-RateLimit-Reset'] = (now + (match_data[:period] - now.to_i % match_data[:period])).to_s
|
response.headers['X-RateLimit-Reset'] = (now + (match_data[:period] - now.to_i % match_data[:period])).iso8601(6)
|
||||||
end
|
end
|
||||||
|
|
||||||
def set_pagination_headers(next_path = nil, prev_path = nil)
|
def set_pagination_headers(next_path = nil, prev_path = nil)
|
||||||
|
|
Loading…
Reference in a new issue