Reload page during repo import

This commit is contained in:
Dmitriy Zaporozhets 2013-08-12 19:28:10 +03:00
parent 7ecebdd02d
commit a0228f94a1
2 changed files with 9 additions and 0 deletions

View file

@ -0,0 +1,7 @@
class ProjectImport
constructor: ->
setTimeout ->
Turbolinks.visit(location.href)
, 5000
@ProjectImport = ProjectImport

View file

@ -7,6 +7,8 @@
%h3 Importing repository.
%p.monospace git clone --bare #{@project.import_url}
%p Please wait until we import repository for you. Refresh at will.
:javascript
new ProjectImport();
- else
%div.git-empty