Commit a0228f94a14a4401cb77f2bb13444794bb6888aa

Authored by Dmitriy Zaporozhets
1 parent 7ecebdd0

Reload page during repo import

app/assets/javascripts/project_import.js.coffee 0 → 100644
... ... @@ -0,0 +1,7 @@
  1 +class ProjectImport
  2 + constructor: ->
  3 + setTimeout ->
  4 + Turbolinks.visit(location.href)
  5 + , 5000
  6 +
  7 +@ProjectImport = ProjectImport
... ...
app/views/projects/empty.html.haml
... ... @@ -7,6 +7,8 @@
7 7 %h3 Importing repository.
8 8 %p.monospace git clone --bare #{@project.import_url}
9 9 %p Please wait until we import repository for you. Refresh at will.
  10 + :javascript
  11 + new ProjectImport();
10 12  
11 13 - else
12 14 %div.git-empty
... ...