diff --git a/Gemfile b/Gemfile index dad5b951d..4f56f0973 100644 --- a/Gemfile +++ b/Gemfile @@ -1,9 +1,9 @@ -source 'https://rubygems.org' +source 'http://rubygems.org' gem 'rails', '3.2.2' # Bundle edge Rails instead: -# gem 'rails', :git => 'git://github.com/rails/rails.git' +#gem 'rails', :git => 'git://github.com/rails/rails.git' gem 'sqlite3' @@ -12,24 +12,34 @@ gem 'json' # Gems used only for assets and not required # in production environments by default. group :assets do - gem 'sass-rails', '~> 3.2.3' - gem 'coffee-rails', '~> 3.2.1' - - # See https://github.com/sstephenson/execjs#readme for more supported runtimes - # gem 'therubyracer' - - gem 'uglifier', '>= 1.0.3' + gem 'sass-rails', '~> 3.2.4' + gem 'coffee-rails', '~> 3.2.2' + gem 'uglifier', '>= 1.2.3' end gem 'jquery-rails' +# Optional support for eco templates +gem 'eco' + +gem "omniauth" +gem "omniauth-twitter" +gem "omniauth-facebook" +gem "omniauth-linkedin" + +gem "twitter" +gem "koala" +gem "mail" + +gem "mime-types" + +gem 'delayed_job_active_record' +gem "daemons" + # To use ActiveModel has_secure_password # gem 'bcrypt-ruby', '~> 3.0.0' -# To use Jbuilder templates for JSON -# gem 'jbuilder' - -# Use unicorn as the app server +# Use unicorn as the web server # gem 'unicorn' # Deploy with Capistrano @@ -37,3 +47,4 @@ gem 'jquery-rails' # To use debugger # gem 'ruby-debug' + diff --git a/app/assets/images/close.png b/app/assets/images/close.png new file mode 100644 index 000000000..81a24d89c Binary files /dev/null and b/app/assets/images/close.png differ diff --git a/app/assets/images/glyphicons-halflings.png b/app/assets/images/glyphicons-halflings.png new file mode 100644 index 000000000..92d4445df Binary files /dev/null and b/app/assets/images/glyphicons-halflings.png differ diff --git a/app/assets/javascripts/app/controllers/.gitkeep b/app/assets/javascripts/app/controllers/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/app/assets/javascripts/app/controllers/_application_controller.js.coffee b/app/assets/javascripts/app/controllers/_application_controller.js.coffee new file mode 100644 index 000000000..b93a692b9 --- /dev/null +++ b/app/assets/javascripts/app/controllers/_application_controller.js.coffee @@ -0,0 +1,698 @@ +class App.Controller extends Spine.Controller + + # add @title methode to set title + title: (name) -> + $('html head title').html( Config.product_name + ' - ' + name ) + + # add @notify methode to create notification + notify: (data) -> + Spine.trigger 'notify', data + + # add @navupdate methode to update navigation + navupdate: (url) -> + Spine.trigger 'navupdate', url + +# # extend delegateEvents to unbind and undelegate +# delegateEvents: -> +# +# # here unbind and undelegate while @el +# @el.unbind() +# @el.undelegate() +# +# for key, method of @events +# unless typeof(method) is 'function' +# method = @proxy(@[method]) +# +# match = key.match(@eventSplitter) +# eventName = match[1] +# selector = match[2] +# +# if selector is '' +# @el.bind(eventName, method) +# else +# @el.delegate(selector, eventName, method) + + formGen: (data) -> + form = $('