Commit 9d63bd1e authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'feature/turbolinks' of /home/git/repositories/gitlab/gitlabhq

parents fbb7cd8b de7d6431
...@@ -105,6 +105,8 @@ group :assets do ...@@ -105,6 +105,8 @@ group :assets do
gem "coffee-rails", "~> 3.2.2" gem "coffee-rails", "~> 3.2.2"
gem "uglifier", "~> 1.3.0" gem "uglifier", "~> 1.3.0"
gem "therubyracer" gem "therubyracer"
gem 'turbolinks'
gem 'jquery-turbolinks'
gem 'chosen-rails', "0.9.8" gem 'chosen-rails', "0.9.8"
gem 'select2-rails' gem 'select2-rails'
......
...@@ -232,6 +232,9 @@ GEM ...@@ -232,6 +232,9 @@ GEM
jquery-rails (2.1.3) jquery-rails (2.1.3)
railties (>= 3.1.0, < 5.0) railties (>= 3.1.0, < 5.0)
thor (~> 0.14) thor (~> 0.14)
jquery-turbolinks (1.0.0)
railties (>= 3.1.0)
turbolinks
jquery-ui-rails (2.0.2) jquery-ui-rails (2.0.2)
jquery-rails jquery-rails
railties (>= 3.1.0) railties (>= 3.1.0)
...@@ -461,6 +464,8 @@ GEM ...@@ -461,6 +464,8 @@ GEM
treetop (1.4.12) treetop (1.4.12)
polyglot polyglot
polyglot (>= 0.3.1) polyglot (>= 0.3.1)
turbolinks (1.1.1)
coffee-rails
tzinfo (0.3.37) tzinfo (0.3.37)
uglifier (1.3.0) uglifier (1.3.0)
execjs (>= 0.3.0) execjs (>= 0.3.0)
...@@ -521,6 +526,7 @@ DEPENDENCIES ...@@ -521,6 +526,7 @@ DEPENDENCIES
httparty httparty
jquery-atwho-rails (= 0.1.7) jquery-atwho-rails (= 0.1.7)
jquery-rails (= 2.1.3) jquery-rails (= 2.1.3)
jquery-turbolinks
jquery-ui-rails (= 2.0.2) jquery-ui-rails (= 2.0.2)
kaminari (~> 0.14.1) kaminari (~> 0.14.1)
launchy launchy
...@@ -564,5 +570,6 @@ DEPENDENCIES ...@@ -564,5 +570,6 @@ DEPENDENCIES
test_after_commit test_after_commit
therubyracer therubyracer
thin thin
turbolinks
uglifier (~> 1.3.0) uglifier (~> 1.3.0)
webmock webmock
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
//= require jquery.waitforimages //= require jquery.waitforimages
//= require jquery.atwho //= require jquery.atwho
//= require jquery.scrollto //= require jquery.scrollto
//= require turbolinks
//= require jquery.turbolinks
//= require bootstrap //= require bootstrap
//= require modernizr //= require modernizr
//= require chosen-jquery //= require chosen-jquery
......
...@@ -41,6 +41,14 @@ window.linkify = (str) -> ...@@ -41,6 +41,14 @@ window.linkify = (str) ->
exp = /(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig exp = /(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig
return str.replace(exp,"<a href='$1'>$1</a>") return str.replace(exp,"<a href='$1'>$1</a>")
window.startSpinner = ->
$('.turbolink-spinner').fadeIn()
window.stopSpinner = ->
$('.turbolink-spinner').fadeOut()
document.addEventListener("page:fetch", startSpinner)
document.addEventListener("page:receive", stopSpinner)
$ -> $ ->
# Click a .one_click_select field, select the contents # Click a .one_click_select field, select the contents
......
...@@ -8,6 +8,10 @@ ...@@ -8,6 +8,10 @@
%span.separator %span.separator
%h1.project_name= title %h1.project_name= title
%ul.nav %ul.nav
%li
%a
%div.hide.turbolink-spinner
%i.icon-refresh.icon-spin
%li %li
= render "layouts/search" = render "layouts/search"
%li %li
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment