Reload page during repo import
This commit is contained in:
parent
7ecebdd02d
commit
a0228f94a1
2 changed files with 9 additions and 0 deletions
7
app/assets/javascripts/project_import.js.coffee
Normal file
7
app/assets/javascripts/project_import.js.coffee
Normal file
|
@ -0,0 +1,7 @@
|
|||
class ProjectImport
|
||||
constructor: ->
|
||||
setTimeout ->
|
||||
Turbolinks.visit(location.href)
|
||||
, 5000
|
||||
|
||||
@ProjectImport = ProjectImport
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue