Browse Source

ttl number formatting

pull/1/head
Nicolae Claudius 13 years ago
parent
commit
af71d318e3
  1. 2
      Gemfile
  2. 22
      Gemfile.lock
  3. 1
      app/controllers/as_controller.rb
  4. 1
      app/controllers/cnames_controller.rb
  5. 1
      app/controllers/mxes_controller.rb
  6. 1
      app/controllers/ns_controller.rb
  7. 1
      app/controllers/records_controller.rb
  8. 1
      app/controllers/soas_controller.rb
  9. 1
      app/controllers/txts_controller.rb

2
Gemfile

@ -18,7 +18,7 @@ gem 'devise', '~> 1.4.5'
gem 'cancan', '~> 1.6.5'
# gem "meta_where", "~> 1.0" # squeel ?
gem 'sentient_user', '~> 0.3.2'
gem 'active_scaffold', '~> 3.1.0', :git => 'https://github.com/clyfe/active_scaffold.git' # :path => '/home/clyfe/dev/active_scaffold'
gem 'active_scaffold', '~> 3.1.0', :git => 'https://github.com/activescaffold/active_scaffold.git' # :path => '/home/clyfe/dev/active_scaffold'
gem 'web-app-theme'
gem 'pjax_rails', '~> 0.1.10'
gem 'validates_hostname', '~> 1.0.0', :git => 'https://github.com/KimNorgaard/validates_hostname.git'

22
Gemfile.lock

@ -5,10 +5,10 @@ GIT
validates_hostname (1.0.0)
GIT
remote: https://github.com/clyfe/active_scaffold.git
revision: 04a7e1d3333fcb86a5967b17b4e535beec6acc39
remote: https://github.com/activescaffold/active_scaffold.git
revision: da126afef3d59bb0b1e8cbefb6af9186e0146275
specs:
active_scaffold (3.1.2)
active_scaffold (3.1.5)
rails (~> 3.1.0)
GEM
@ -45,7 +45,7 @@ GEM
arel (2.2.1)
bcrypt-ruby (3.0.1)
builder (3.0.0)
cancan (1.6.6)
cancan (1.6.7)
capistrano (2.9.0)
highline
net-scp (>= 1.0.0)
@ -118,7 +118,7 @@ GEM
pjax_rails (0.1.10)
jquery-rails
polyglot (0.3.2)
rack (1.3.3)
rack (1.3.4)
rack-cache (1.0.3)
rack (>= 0.4)
rack-mount (0.8.3)
@ -160,26 +160,26 @@ GEM
railties (~> 3.0)
rspec (~> 2.6.0)
rubyzip (0.9.4)
sass (3.1.8)
sass-rails (3.1.3)
sass (3.1.10)
sass-rails (3.1.4)
actionpack (~> 3.1.0)
railties (~> 3.1.0)
sass (>= 3.1.4)
sprockets (~> 2.0.0)
tilt (~> 1.3.2)
selenium-webdriver (2.7.0)
selenium-webdriver (2.8.0)
childprocess (>= 0.2.1)
ffi (>= 1.0.7)
json_pure
rubyzip
sentient_user (0.3.2)
spork (0.9.0.rc9)
sprockets (2.0.1)
sprockets (2.0.2)
hike (~> 1.2)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sqlite3 (1.3.4)
therubyracer (0.9.4)
therubyracer (0.9.8)
libv8 (~> 3.3.10)
thor (0.14.6)
tilt (1.3.3)
@ -190,7 +190,7 @@ GEM
uglifier (1.0.3)
execjs (>= 0.3.0)
multi_json (>= 1.0.2)
warden (1.0.5)
warden (1.0.6)
rack (>= 1.0)
web-app-theme (0.8.0)
rails (~> 3.1.0.rc6)

1
app/controllers/as_controller.rb

@ -6,6 +6,7 @@ class AsController < ApplicationController
conf.columns[:content].label = 'IP'
conf.columns[:content].description = 'Ex. "10.10.5.12"'
conf.columns[:change_date].list_ui = :timestamp
conf.columns[:ttl].options = {:i18n_number => {:delimiter => ''}}
conf.actions.exclude :show
end
before_filter :ensure_nested_under_domain

1
app/controllers/cnames_controller.rb

@ -6,6 +6,7 @@ class CnamesController < ApplicationController
conf.columns[:content].label = 'FQDN'
conf.columns[:content].description = 'Ex. "host.domain.com"'
conf.columns[:change_date].list_ui = :timestamp
conf.columns[:ttl].options = {:i18n_number => {:delimiter => ''}}
conf.actions.exclude :show
end
before_filter :ensure_nested_under_domain

1
app/controllers/mxes_controller.rb

@ -6,6 +6,7 @@ class MxesController < ApplicationController
conf.columns[:content].label = 'MX'
conf.columns[:content].description = 'Ex. "mail.domain.com"'
conf.columns[:change_date].list_ui = :timestamp
conf.columns[:ttl].options = {:i18n_number => {:delimiter => ''}}
conf.actions.exclude :show
end
before_filter :ensure_nested_under_domain

1
app/controllers/ns_controller.rb

@ -6,6 +6,7 @@ class NsController < ApplicationController
conf.subform.columns = [:content, :ttl]
conf.columns[:content].label = 'NS'
conf.columns[:change_date].list_ui = :timestamp
conf.columns[:ttl].options = {:i18n_number => {:delimiter => ''}}
conf.actions.exclude :show
end
before_filter :ensure_nested_under_domain

1
app/controllers/records_controller.rb

@ -20,6 +20,7 @@ class RecordsController < ApplicationController
conf.sti_children = [:SOA, :NS, :MX, :A, :CNAME, :TXT]
conf.columns = [:name, :type, :content, :ttl, :prio, :change_date]
conf.columns[:change_date].list_ui = :timestamp
conf.columns[:ttl].options = {:i18n_number => {:delimiter => ''}}
# conf.create.link.label = "Add Record"
conf.actions.exclude :show
end

1
app/controllers/soas_controller.rb

@ -4,6 +4,7 @@ class SoasController < ApplicationController
conf.create.columns = [:contact, :ttl]
conf.update.columns = [:contact, :ttl]
conf.columns[:change_date].list_ui = :timestamp
conf.columns[:ttl].options = {:i18n_number => {:delimiter => ''}}
conf.actions.exclude :delete, :show
end
before_filter :ensure_nested_under_domain

1
app/controllers/txts_controller.rb

@ -6,6 +6,7 @@ class TxtsController < ApplicationController
# conf.columns[:content].label = 'Content'
# conf.columns[:content].description = 'Ex. can be many things'
conf.columns[:change_date].list_ui = :timestamp
conf.columns[:ttl].options = {:i18n_number => {:delimiter => ''}}
conf.actions.exclude :show
end
before_filter :ensure_nested_under_domain

Loading…
Cancel
Save