From 3f9a041d442b3e8d0757d05de690f83c9d6ebd66 Mon Sep 17 00:00:00 2001 From: Christophe Vilayphiou Date: Mon, 13 Feb 2012 13:28:42 +0800 Subject: [PATCH] Gemfile and bugs in js for orbit-bar --- Gemfile | 3 +- Gemfile.lock | 4 +++ app/views/layouts/_orbit_bar.html.erb | 8 +++-- .../front_end/posts/_post_frontend.html.erb | 35 +++++++++++++++---- .../new_blog/front_end/posts/index.html.erb | 4 ++- 5 files changed, 41 insertions(+), 13 deletions(-) diff --git a/Gemfile b/Gemfile index 408151ead..003d7da9f 100644 --- a/Gemfile +++ b/Gemfile @@ -20,8 +20,7 @@ gem 'ruby-debug19' gem 'rubyzip' gem 'sinatra' gem 'sprockets' -#gem 'therubyracer' # For linux -#gem 'libv8', '3.3.10.4' +gem 'therubyracer' # For linux # Gems used only for assets and not required # in production environments by default. diff --git a/Gemfile.lock b/Gemfile.lock index ce0d8d6df..d67f72e51 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -82,6 +82,7 @@ GEM actionpack (>= 3.0.0) activesupport (>= 3.0.0) railties (>= 3.0.0) + libv8 (3.3.10.4) linecache19 (0.5.12) ruby_core_source (>= 0.1.4) mail (2.3.0) @@ -177,6 +178,8 @@ GEM rack (~> 1.0) tilt (~> 1.1, != 1.3.0) subexec (0.2.1) + therubyracer (0.9.9) + libv8 (~> 3.3.10) thor (0.14.6) tilt (1.3.3) treetop (1.4.10) @@ -231,5 +234,6 @@ DEPENDENCIES sinatra spork sprockets + therubyracer uglifier watchr diff --git a/app/views/layouts/_orbit_bar.html.erb b/app/views/layouts/_orbit_bar.html.erb index d42ab8195..d6e5217ef 100644 --- a/app/views/layouts/_orbit_bar.html.erb +++ b/app/views/layouts/_orbit_bar.html.erb @@ -1,6 +1,8 @@ - - - +<% if controller.controller_name.eql?('pages') %> + + + +<% end %>