diff --git a/app/assets/javascripts/project_import.js.coffee b/app/assets/javascripts/project_import.js.coffee new file mode 100644 index 00000000000..7cf44da99fe --- /dev/null +++ b/app/assets/javascripts/project_import.js.coffee @@ -0,0 +1,7 @@ +class ProjectImport + constructor: -> + setTimeout -> + Turbolinks.visit(location.href) + , 5000 + +@ProjectImport = ProjectImport diff --git a/app/views/projects/empty.html.haml b/app/views/projects/empty.html.haml index 5279ddf47ef..99e334cc6b8 100644 --- a/app/views/projects/empty.html.haml +++ b/app/views/projects/empty.html.haml @@ -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