Browse Source

refactor, unlink names

pull/1/head
Nicolae Claudius 13 years ago
parent
commit
89521c3b21
  1. 14
      Gemfile
  2. 101
      Gemfile.lock
  3. BIN
      app/assets/images/messages/error.png
  4. BIN
      app/assets/images/messages/notice.png
  5. BIN
      app/assets/images/messages/warning.png
  6. BIN
      app/assets/images/theme/arrow.png
  7. BIN
      app/assets/images/theme/bgd.jpg
  8. BIN
      app/assets/images/theme/boxbar-background.png
  9. BIN
      app/assets/images/theme/button-background-active.png
  10. BIN
      app/assets/images/theme/button-background.png
  11. BIN
      app/assets/images/theme/check.png
  12. 2
      app/assets/javascripts/application.js.coffee
  13. 3
      app/helpers/domains_helper.rb
  14. 23
      app/views/hosts/_list_record_columns.html.erb
  15. 0
      vendor/assets/images/slides/background.jpg
  16. 0
      vendor/assets/images/slides/loading.gif
  17. 0
      vendor/assets/images/slides/navigation-next.png
  18. 0
      vendor/assets/images/slides/navigation-previous.png
  19. 0
      vendor/assets/images/slides/pagination.png
  20. 0
      vendor/assets/javascripts/slides.css.erb
  21. 0
      vendor/assets/javascripts/slides.js

14
Gemfile

@ -1,6 +1,6 @@
source 'http://rubygems.org' source 'http://rubygems.org'
gem 'rails', '3.2.2' gem 'rails', '3.2.6'
# Bundle edge Rails instead: # Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git' # gem 'rails', :git => 'git://github.com/rails/rails.git'
@ -12,10 +12,6 @@ gem 'cancan', '~> 1.6.7'
gem 'squeel', '~> 0.9.3' gem 'squeel', '~> 0.9.3'
gem 'sentient_user', '~> 0.3.2' gem 'sentient_user', '~> 0.3.2'
gem 'userstamp_basic', '~> 0.1.0' gem 'userstamp_basic', '~> 0.1.0'
gem 'active_scaffold', '~> 3.2.3'
# git: 'https://github.com/activescaffold/active_scaffold.git'
# path: '/home/clyfe/dev/active_scaffold'
gem 'pjax_rails', '~> 0.2.0'
gem 'validates_hostname', '~> 1.0.0', git: 'https://github.com/KimNorgaard/validates_hostname.git' gem 'validates_hostname', '~> 1.0.0', git: 'https://github.com/KimNorgaard/validates_hostname.git'
gem 'nilify_blanks', '~> 1.0.0' gem 'nilify_blanks', '~> 1.0.0'
gem 'rails_config', '~> 0.2.4' gem 'rails_config', '~> 0.2.4'
@ -34,17 +30,21 @@ gem 'acts_as_nested_interval', '~> 0.0.5'
# Gems used only for assets and not required # Gems used only for assets and not required
# in production environments by default. # in production environments by default.
group :assets do group :assets do
gem 'compass-rails', '~> 1.0.0.rc.2'
gem 'sass-rails', " ~> 3.2.3" gem 'sass-rails', " ~> 3.2.3"
gem 'compass-rails', '~> 1.0.0.rc.2'
gem 'bootstrap-sass', '~> 2.0.3'
gem 'coffee-rails', "~> 3.2.1" gem 'coffee-rails', "~> 3.2.1"
gem 'uglifier', '>= 1.0.3' gem 'uglifier', '>= 1.0.3'
gem 'therubyracer' gem 'therubyracer'
gem 'bootstrap-sass', '~> 2.0.1'
end end
gem 'jquery-rails' gem 'jquery-rails'
gem 'dalli', '~> 1.1.3' gem 'dalli', '~> 1.1.3'
# gem 'foreigner' ? # gem 'foreigner' ?
gem 'active_scaffold', '~> 3.2.12'
# git: 'https://github.com/activescaffold/active_scaffold.git'
# path: '/home/clyfe/dev/active_scaffold'
gem 'pjax_rails', '~> 0.2.0'
group :development do group :development do
gem 'capistrano', '~> 2.9.0' gem 'capistrano', '~> 2.9.0'

101
Gemfile.lock

@ -13,36 +13,36 @@ GIT
GEM GEM
remote: http://rubygems.org/ remote: http://rubygems.org/
specs: specs:
actionmailer (3.2.2) actionmailer (3.2.6)
actionpack (= 3.2.2) actionpack (= 3.2.6)
mail (~> 2.4.0) mail (~> 2.4.4)
actionpack (3.2.2) actionpack (3.2.6)
activemodel (= 3.2.2) activemodel (= 3.2.6)
activesupport (= 3.2.2) activesupport (= 3.2.6)
builder (~> 3.0.0) builder (~> 3.0.0)
erubis (~> 2.7.0) erubis (~> 2.7.0)
journey (~> 1.0.1) journey (~> 1.0.1)
rack (~> 1.4.0) rack (~> 1.4.0)
rack-cache (~> 1.1) rack-cache (~> 1.2)
rack-test (~> 0.6.1) rack-test (~> 0.6.1)
sprockets (~> 2.1.2) sprockets (~> 2.1.3)
active-model-email-validator (1.0.2) active-model-email-validator (1.0.2)
activemodel activemodel
mail mail
active_scaffold (3.2.11) active_scaffold (3.2.12)
rails (>= 3.1.3) rails (>= 3.1.3)
activemodel (3.2.2) activemodel (3.2.6)
activesupport (= 3.2.2) activesupport (= 3.2.6)
builder (~> 3.0.0) builder (~> 3.0.0)
activerecord (3.2.2) activerecord (3.2.6)
activemodel (= 3.2.2) activemodel (= 3.2.6)
activesupport (= 3.2.2) activesupport (= 3.2.6)
arel (~> 3.0.2) arel (~> 3.0.2)
tzinfo (~> 0.3.29) tzinfo (~> 0.3.29)
activeresource (3.2.2) activeresource (3.2.6)
activemodel (= 3.2.2) activemodel (= 3.2.6)
activesupport (= 3.2.2) activesupport (= 3.2.6)
activesupport (3.2.2) activesupport (3.2.6)
i18n (~> 0.6) i18n (~> 0.6)
multi_json (~> 1.0) multi_json (~> 1.0)
acts_as_nested_interval (0.0.5) acts_as_nested_interval (0.0.5)
@ -82,8 +82,8 @@ GEM
chunky_png (~> 1.2) chunky_png (~> 1.2)
fssm (>= 0.2.7) fssm (>= 0.2.7)
sass (~> 3.1) sass (~> 3.1)
compass-rails (1.0.1) compass-rails (1.0.2)
compass (~> 0.12.0) compass (>= 0.12.0, < 0.14)
concerned_with (0.1.0) concerned_with (0.1.0)
daemons (1.0.10) daemons (1.0.10)
dalli (1.1.5) dalli (1.1.5)
@ -106,30 +106,34 @@ GEM
faker (1.0.1) faker (1.0.1)
i18n (~> 0.4) i18n (~> 0.4)
ffi (1.0.11) ffi (1.0.11)
file-tail (1.0.8) file-tail (1.0.10)
tins (~> 0.3) tins (~> 0.4.3)
fssm (0.2.9) fssm (0.2.9)
gem_plugin (0.2.3) gem_plugin (0.2.3)
guard (1.0.3) guard (1.1.1)
ffi (>= 0.5.0) listen (>= 0.4.2)
thor (>= 0.14.6) thor (>= 0.14.6)
guard-rspec (0.6.0) guard-rspec (0.6.0)
guard (>= 0.10.0) guard (>= 0.10.0)
guard-spork (0.5.2) guard-spork (0.5.2)
guard (>= 0.10.0) guard (>= 0.10.0)
spork (>= 0.8.4) spork (>= 0.8.4)
highline (1.6.12) highline (1.6.13)
hike (1.2.1) hike (1.2.1)
i18n (0.6.0) i18n (0.6.0)
journey (1.0.3) journey (1.0.4)
jquery-rails (2.0.2) jquery-rails (2.0.2)
railties (>= 3.2.0, < 5.0) railties (>= 3.2.0, < 5.0)
thor (~> 0.14) thor (~> 0.14)
json (1.7.3) json (1.7.3)
libnotify (0.7.2) libnotify (0.7.3)
libv8 (3.3.10.4) libv8 (3.3.10.4)
libwebsocket (0.1.3) libwebsocket (0.1.3)
addressable addressable
listen (0.4.5)
rb-fchange (~> 0.0.5)
rb-fsevent (~> 0.9.1)
rb-inotify (~> 0.8.8)
mail (2.4.4) mail (2.4.4)
i18n (>= 0.4.0) i18n (>= 0.4.0)
mime-types (~> 1.16) mime-types (~> 1.16)
@ -139,7 +143,7 @@ GEM
mongrel (1.2.0.pre2) mongrel (1.2.0.pre2)
daemons (~> 1.0.10) daemons (~> 1.0.10)
gem_plugin (~> 0.2.3) gem_plugin (~> 0.2.3)
multi_json (1.3.5) multi_json (1.3.6)
mysql2 (0.3.11) mysql2 (0.3.11)
net-scp (1.0.4) net-scp (1.0.4)
net-ssh (>= 1.99.1) net-ssh (>= 1.99.1)
@ -151,13 +155,13 @@ GEM
nilify_blanks (1.0.0) nilify_blanks (1.0.0)
activerecord (>= 3.0.0) activerecord (>= 3.0.0)
activesupport (>= 3.0.0) activesupport (>= 3.0.0)
nokogiri (1.5.2) nokogiri (1.5.4)
orm_adapter (0.0.7) orm_adapter (0.0.7)
pjax_rails (0.2.1) pjax_rails (0.2.1)
jquery-rails jquery-rails
polyamorous (0.5.0) polyamorous (0.5.0)
activerecord (~> 3.0) activerecord (~> 3.0)
polyglot (0.3.3) polyglot (0.3.2)
rack (1.4.1) rack (1.4.1)
rack-cache (1.2) rack-cache (1.2)
rack (>= 0.4) rack (>= 0.4)
@ -165,28 +169,31 @@ GEM
rack rack
rack-test (0.6.1) rack-test (0.6.1)
rack (>= 1.0) rack (>= 1.0)
rails (3.2.2) rails (3.2.6)
actionmailer (= 3.2.2) actionmailer (= 3.2.6)
actionpack (= 3.2.2) actionpack (= 3.2.6)
activerecord (= 3.2.2) activerecord (= 3.2.6)
activeresource (= 3.2.2) activeresource (= 3.2.6)
activesupport (= 3.2.2) activesupport (= 3.2.6)
bundler (~> 1.0) bundler (~> 1.0)
railties (= 3.2.2) railties (= 3.2.6)
rails-backbone (0.7.2) rails-backbone (0.7.2)
coffee-script (~> 2.2.0) coffee-script (~> 2.2.0)
ejs (~> 1.0.0) ejs (~> 1.0.0)
railties (>= 3.1.0) railties (>= 3.1.0)
rails_config (0.2.7) rails_config (0.2.7)
activesupport (>= 3.0) activesupport (>= 3.0)
railties (3.2.2) railties (3.2.6)
actionpack (= 3.2.2) actionpack (= 3.2.6)
activesupport (= 3.2.2) activesupport (= 3.2.6)
rack-ssl (~> 1.3.2) rack-ssl (~> 1.3.2)
rake (>= 0.8.7) rake (>= 0.8.7)
rdoc (~> 3.4) rdoc (~> 3.4)
thor (~> 0.14.6) thor (>= 0.14.6, < 2.0)
rake (0.9.2.2) rake (0.9.2.2)
rb-fchange (0.0.5)
ffi
rb-fsevent (0.9.1)
rb-inotify (0.8.8) rb-inotify (0.8.8)
ffi (>= 0.5.0) ffi (>= 0.5.0)
rdoc (3.12) rdoc (3.12)
@ -215,7 +222,7 @@ GEM
railties (~> 3.2.0) railties (~> 3.2.0)
sass (>= 3.1.10) sass (>= 3.1.10)
tilt (~> 1.3) tilt (~> 1.3)
selenium-webdriver (2.21.2) selenium-webdriver (2.22.2)
childprocess (>= 0.2.5) childprocess (>= 0.2.5)
ffi (~> 1.0) ffi (~> 1.0)
libwebsocket (~> 0.1.3) libwebsocket (~> 0.1.3)
@ -247,9 +254,9 @@ GEM
switch_user (0.6.0) switch_user (0.6.0)
therubyracer (0.10.1) therubyracer (0.10.1)
libv8 (~> 3.3.10) libv8 (~> 3.3.10)
thor (0.14.6) thor (0.15.2)
tilt (1.3.3) tilt (1.3.3)
tins (0.4.2) tins (0.4.3)
treetop (1.4.10) treetop (1.4.10)
polyglot polyglot
polyglot (>= 0.3.1) polyglot (>= 0.3.1)
@ -269,9 +276,9 @@ PLATFORMS
DEPENDENCIES DEPENDENCIES
active-model-email-validator (~> 1.0.2) active-model-email-validator (~> 1.0.2)
active_scaffold (~> 3.2.3) active_scaffold (~> 3.2.12)
acts_as_nested_interval (~> 0.0.5) acts_as_nested_interval (~> 0.0.5)
bootstrap-sass (~> 2.0.1) bootstrap-sass (~> 2.0.3)
cancan (~> 1.6.7) cancan (~> 1.6.7)
capistrano (~> 2.9.0) capistrano (~> 2.9.0)
capistrano-ext (~> 1.2.1) capistrano-ext (~> 1.2.1)
@ -294,7 +301,7 @@ DEPENDENCIES
navigasmic (~> 0.5.6)! navigasmic (~> 0.5.6)!
nilify_blanks (~> 1.0.0) nilify_blanks (~> 1.0.0)
pjax_rails (~> 0.2.0) pjax_rails (~> 0.2.0)
rails (= 3.2.2) rails (= 3.2.6)
rails-backbone (~> 0.7.0) rails-backbone (~> 0.7.0)
rails_config (~> 0.2.4) rails_config (~> 0.2.4)
rb-inotify (~> 0.8.8) rb-inotify (~> 0.8.8)

BIN
app/assets/images/messages/error.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 454 B

BIN
app/assets/images/messages/notice.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 604 B

BIN
app/assets/images/messages/warning.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 404 B

BIN
app/assets/images/theme/arrow.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 349 B

BIN
app/assets/images/theme/bgd.jpg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

BIN
app/assets/images/theme/boxbar-background.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.0 KiB

BIN
app/assets/images/theme/button-background-active.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.0 KiB

BIN
app/assets/images/theme/button-background.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.0 KiB

BIN
app/assets/images/theme/check.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 586 B

2
app/assets/javascripts/application.js.coffee

@ -9,9 +9,9 @@
#= require jquery_ujs #= require jquery_ujs
#= require jquery.pjax #= require jquery.pjax
#= require pjax/page_triggers #= require pjax/page_triggers
#= require active_scaffold
#= require slides #= require slides
#= require bootstrap #= require bootstrap
#= require active_scaffold
#= require_self #= require_self
$ -> $ ->

3
app/helpers/domains_helper.rb

@ -3,7 +3,6 @@ module DomainsHelper
cannot?(:crud_permissions, record) ? "shared-domain" : '' cannot?(:crud_permissions, record) ? "shared-domain" : ''
end end
# Makes a link out of domain name.
# Indents and dedents to create a tree structure, # Indents and dedents to create a tree structure,
# assuming that the records are sorted in preorder. # assuming that the records are sorted in preorder.
# Adds a visual cue if the record is shared via permissions feature. # Adds a visual cue if the record is shared via permissions feature.
@ -16,7 +15,7 @@ module DomainsHelper
end end
elements << '<span class="ui-icon ui-icon-carat-1-sw"></span>' elements << '<span class="ui-icon ui-icon-carat-1-sw"></span>'
end end
elements << link_to(record.name, "http://#{record.name}") elements << record.name
unless can?(:crud_permissions, record) unless can?(:crud_permissions, record)
who = "<strong>#{record.user.name}</strong> #{mail_to(record.user.email)}" who = "<strong>#{record.user.name}</strong> #{mail_to(record.user.email)}"
elements << <<-HTM elements << <<-HTM

23
app/views/hosts/_list_record_columns.html.erb

@ -1,23 +0,0 @@
<%# meaningful names for empty columns instead tiny dash "-" %>
<% columns.each do |column| %>
<% authorized = record.authorized_for?(:crud_type => :read, :column => column.name) -%>
<% column_value = authorized ? get_column_value(record, column) : active_scaffold_config.list.empty_field_text -%>
<% if column.name == :name %>
<td class="<%= column_class(column, column_value, record) %>" >
<% column_value = 'Manage All Records (0)' if column_value == '-' %>
<%= if authorized
link = render_list_column(column_value, column, record)
link_to link, "http://#{link}"
else
column_value
end %>
</td>
<% else %>
<td class="<%= column_class(column, column_value, record) %>" >
<%= authorized ? render_list_column(column_value, column, record) : column_value %>
</td>
<% end %>
<% end -%>

0
app/assets/images/slides/background.jpg → vendor/assets/images/slides/background.jpg vendored

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 33 KiB

0
app/assets/images/slides/loading.gif → vendor/assets/images/slides/loading.gif vendored

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

0
app/assets/images/slides/navigation-next.png → vendor/assets/images/slides/navigation-next.png vendored

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

0
app/assets/images/slides/navigation-previous.png → vendor/assets/images/slides/navigation-previous.png vendored

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

0
app/assets/images/slides/pagination.png → vendor/assets/images/slides/pagination.png vendored

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

0
app/assets/stylesheets/slides.css.erb → vendor/assets/javascripts/slides.css.erb vendored

0
app/assets/javascripts/slides.js → vendor/assets/javascripts/slides.js vendored

Loading…
Cancel
Save