This commit is contained in:
Nicolas Bally 2019-07-25 16:41:37 +02:00
parent f89d448327
commit cdcd4b03fe
4 changed files with 56 additions and 63 deletions

View File

@ -1,7 +1,7 @@
source 'https://rubygems.org' source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.0' gem 'rails', '4.0.13'
gem 'bcrypt-ruby', '~> 3.0.0' gem 'bcrypt-ruby', '~> 3.0.0'
@ -51,8 +51,8 @@ group :doc do
gem 'sdoc', require: false gem 'sdoc', require: false
end end
gem "capistrano", group: :development gem "capistrano", group: :development, :require => false
gem "rvm-capistrano", group: :development gem "rvm-capistrano", group: :development, :require => false
#gem 'net-ssh', '~>2.7.0' #gem 'net-ssh', '~>2.7.0'
# Use ActiveModel has_secure_password # Use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0' # gem 'bcrypt-ruby', '~> 3.0.0'

View File

@ -8,34 +8,33 @@ GIT
GEM GEM
remote: https://rubygems.org/ remote: https://rubygems.org/
specs: specs:
actionmailer (4.0.0) actionmailer (4.0.13)
actionpack (= 4.0.0) actionpack (= 4.0.13)
mail (~> 2.5.3) mail (~> 2.5, >= 2.5.4)
actionpack (4.0.0) actionpack (4.0.13)
activesupport (= 4.0.0) activesupport (= 4.0.13)
builder (~> 3.1.0) builder (~> 3.1.0)
erubis (~> 2.7.0) erubis (~> 2.7.0)
rack (~> 1.5.2) rack (~> 1.5.2)
rack-test (~> 0.6.2) rack-test (~> 0.6.2)
activemodel (4.0.0) activemodel (4.0.13)
activesupport (= 4.0.0) activesupport (= 4.0.13)
builder (~> 3.1.0) builder (~> 3.1.0)
activerecord (4.0.0) activerecord (4.0.13)
activemodel (= 4.0.0) activemodel (= 4.0.13)
activerecord-deprecated_finders (~> 1.0.2) activerecord-deprecated_finders (~> 1.0.2)
activesupport (= 4.0.0) activesupport (= 4.0.13)
arel (~> 4.0.0) arel (~> 4.0.0)
activerecord-deprecated_finders (1.0.3) activerecord-deprecated_finders (1.0.4)
activesupport (4.0.0) activesupport (4.0.13)
i18n (~> 0.6, >= 0.6.4) i18n (~> 0.6, >= 0.6.9)
minitest (~> 4.2) minitest (~> 4.2)
multi_json (~> 1.3) multi_json (~> 1.3)
thread_safe (~> 0.1) thread_safe (~> 0.1)
tzinfo (~> 0.3.37) tzinfo (~> 0.3.37)
acts_as_tree (1.4.0) acts_as_tree (1.4.0)
activerecord (>= 3.0.0) activerecord (>= 3.0.0)
arel (4.0.0) arel (4.0.2)
atomic (1.1.10)
bcrypt-ruby (3.0.1) bcrypt-ruby (3.0.1)
builder (3.1.4) builder (3.1.4)
capistrano (2.15.5) capistrano (2.15.5)
@ -55,7 +54,8 @@ GEM
coffee-script-source coffee-script-source
execjs execjs
coffee-script-source (1.6.3) coffee-script-source (1.6.3)
commonjs (0.2.6) commonjs (0.2.7)
concurrent-ruby (1.1.5)
erubis (2.7.0) erubis (2.7.0)
execjs (1.4.0) execjs (1.4.0)
multi_json (~> 1.0) multi_json (~> 1.0)
@ -67,9 +67,9 @@ GEM
haml (>= 3.1, < 4.1) haml (>= 3.1, < 4.1)
railties (>= 3.1, < 4.1) railties (>= 3.1, < 4.1)
highline (1.6.19) highline (1.6.19)
hike (1.2.3)
htmlentities (4.3.1) htmlentities (4.3.1)
i18n (0.6.4) i18n (0.9.5)
concurrent-ruby (~> 1.0)
jbuilder (1.0.2) jbuilder (1.0.2)
activesupport (>= 3.0.0) activesupport (>= 3.0.0)
jquery-rails (3.0.4) jquery-rails (3.0.4)
@ -83,19 +83,19 @@ GEM
kaminari (>= 0.13.0) kaminari (>= 0.13.0)
rails rails
kgio (2.11.2) kgio (2.11.2)
less (2.3.2) less (2.6.0)
commonjs (~> 0.2.6) commonjs (~> 0.2.7)
less-rails (2.3.3) less-rails (4.0.0)
actionpack (>= 3.1) actionpack (>= 4)
less (~> 2.3.1) less (~> 2.6.0)
sprockets (>= 2)
libv8 (3.11.8.17) libv8 (3.11.8.17)
mail (2.5.4) mail (2.7.1)
mime-types (~> 1.16) mini_mime (>= 0.1.1)
treetop (~> 1.4.8) mini_mime (1.0.2)
mime-types (1.23)
mini_portile (0.5.1) mini_portile (0.5.1)
minitest (4.7.5) minitest (4.7.5)
multi_json (1.7.7) multi_json (1.13.1)
mysql2 (0.3.21) mysql2 (0.3.21)
net-scp (1.1.2) net-scp (1.1.2)
net-ssh (>= 2.6.5) net-ssh (>= 2.6.5)
@ -106,25 +106,24 @@ GEM
net-ssh (>= 2.6.5) net-ssh (>= 2.6.5)
nokogiri (1.6.0) nokogiri (1.6.0)
mini_portile (~> 0.5.0) mini_portile (~> 0.5.0)
polyglot (0.3.3) rack (1.5.5)
rack (1.5.2) rack-test (0.6.3)
rack-test (0.6.2)
rack (>= 1.0) rack (>= 1.0)
rails (4.0.0) rails (4.0.13)
actionmailer (= 4.0.0) actionmailer (= 4.0.13)
actionpack (= 4.0.0) actionpack (= 4.0.13)
activerecord (= 4.0.0) activerecord (= 4.0.13)
activesupport (= 4.0.0) activesupport (= 4.0.13)
bundler (>= 1.3.0, < 2.0) bundler (>= 1.3.0, < 2.0)
railties (= 4.0.0) railties (= 4.0.13)
sprockets-rails (~> 2.0.0) sprockets-rails (~> 2.0)
railties (4.0.0) railties (4.0.13)
actionpack (= 4.0.0) actionpack (= 4.0.13)
activesupport (= 4.0.0) activesupport (= 4.0.13)
rake (>= 0.8.7) rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0) thor (>= 0.18.1, < 2.0)
raindrops (0.19.0) raindrops (0.19.0)
rake (10.1.0) rake (12.3.3)
rdoc (3.12.2) rdoc (3.12.2)
json (~> 1.4) json (~> 1.4)
ref (1.0.5) ref (1.0.5)
@ -134,25 +133,19 @@ GEM
sdoc (0.3.20) sdoc (0.3.20)
json (>= 1.1.3) json (>= 1.1.3)
rdoc (~> 3.10) rdoc (~> 3.10)
sprockets (2.10.0) sprockets (3.7.2)
hike (~> 1.2) concurrent-ruby (~> 1.0)
multi_json (~> 1.0) rack (> 1, < 3)
rack (~> 1.0) sprockets-rails (2.3.3)
tilt (~> 1.1, != 1.3.0)
sprockets-rails (2.0.0)
actionpack (>= 3.0) actionpack (>= 3.0)
activesupport (>= 3.0) activesupport (>= 3.0)
sprockets (~> 2.8) sprockets (>= 2.8, < 4.0)
therubyracer (0.11.4) therubyracer (0.11.4)
libv8 (~> 3.11.8.12) libv8 (~> 3.11.8.12)
ref ref
thor (0.18.1) thor (0.20.3)
thread_safe (0.1.0) thread_safe (0.3.6)
atomic tilt (2.0.9)
tilt (1.4.1)
treetop (1.4.14)
polyglot
polyglot (>= 0.3.1)
turbolinks (1.3.0) turbolinks (1.3.0)
coffee-rails coffee-rails
twitter-bootstrap-rails (2.2.7) twitter-bootstrap-rails (2.2.7)
@ -160,7 +153,7 @@ GEM
execjs execjs
rails (>= 3.1) rails (>= 3.1)
railties (>= 3.1) railties (>= 3.1)
tzinfo (0.3.37) tzinfo (0.3.55)
uglifier (2.1.2) uglifier (2.1.2)
execjs (>= 0.3.0) execjs (>= 0.3.0)
multi_json (~> 1.0, >= 1.0.2) multi_json (~> 1.0, >= 1.0.2)
@ -187,7 +180,7 @@ DEPENDENCIES
less-rails less-rails
mysql2 mysql2
nokogiri nokogiri
rails (= 4.0.0) rails (= 4.0.13)
rmagick rmagick
rvm-capistrano rvm-capistrano
sdoc sdoc

View File

@ -19,7 +19,7 @@ class Block < ActiveRecord::Base
belongs_to :blockable, :polymorphic => true belongs_to :blockable, :polymorphic => true
has_many :portlets, :order => :position, :dependent => :destroy has_many :portlets,:dependent => :destroy
accepts_nested_attributes_for :portlets accepts_nested_attributes_for :portlets

View File

@ -1,5 +1,5 @@
.row-fluid .row-fluid
-block.portlets.each do |p| -block.portlets.order(:position).each do |p|
-if p.content_type -if p.content_type
=render :partial => "portlets/render_public/"+p.content_type.to_s.downcase, :locals => {:admin => false,:input => p.content} =render :partial => "portlets/render_public/"+p.content_type.to_s.downcase, :locals => {:admin => false,:input => p.content}