mirror of
https://github.com/internetee/registry.git
synced 2025-05-19 10:49:39 +02:00
Added basic Registrant portal
This commit is contained in:
parent
90633160c0
commit
fdcad95683
28 changed files with 810 additions and 26 deletions
13
app/helpers/registrant/application_helper.rb
Normal file
13
app/helpers/registrant/application_helper.rb
Normal file
|
@ -0,0 +1,13 @@
|
|||
module Registrant::ApplicationHelper
|
||||
def env_style
|
||||
return '' if unstable_env.nil?
|
||||
"background-image: url(#{image_path("registrar/bg-#{unstable_env}.png")});"
|
||||
end
|
||||
|
||||
def pagination_details
|
||||
params[:page] ||= 1
|
||||
limit = ENV['depp_records_on_page'] || 20
|
||||
offset = ((params[:page].to_i - 1) * limit.to_i)
|
||||
[limit, offset]
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue