debian-mirror-gitlab/app/views/import/base/create.js.haml

14 lines
636 B
Text
Raw Normal View History

2016-09-29 09:46:39 +05:30
- if @project.persisted?
2015-04-26 12:48:37 +05:30
:plain
job = $("tr#repo_#{@repo_id}")
job.attr("id", "project_#{@project.id}")
target_field = job.find(".import-target")
target_field.empty()
2017-09-10 17:25:29 +05:30
target_field.append('#{link_to @project.full_path, project_path(@project)}')
2015-04-26 12:48:37 +05:30
$("table.import-jobs tbody").prepend(job)
job.addClass("active").find(".import-actions").html("<i class='fa fa-spinner fa-spin'></i> started")
2015-09-11 14:41:01 +05:30
- else
:plain
job = $("tr#repo_#{@repo_id}")
2017-08-17 22:00:37 +05:30
job.find(".import-actions").html("<i class='fa fa-exclamation-circle'></i> Error saving project: #{escape_javascript(h(@project.errors.full_messages.join(',')))}")