Commit 293c4fdf authored by Douwe Maan's avatar Douwe Maan

Move update mirror button to other buttons.

parent c85f4c54
......@@ -205,6 +205,10 @@
.dropdown-toggle {
margin: -5px;
}
.update-mirror-button {
margin-right: -1px;
}
}
#notification-form {
......
......@@ -19,7 +19,6 @@
Mirrored from #{link_to import_url, import_url}.
= render "shared/mirror_status"
= render "shared/mirror_update_button", size: "sm"
.project-repo-buttons
......@@ -30,6 +29,7 @@
= render "shared/clone_panel"
.split-repo-buttons
= render "projects/buttons/update_mirror"
= render "projects/buttons/download"
= render 'projects/buttons/dropdown'
......
- if @project.mirror? && can?(current_user, :push_code, @project)
- size = nil unless defined?(size) && size
- if @project.updating_mirror?
%span.btn.disabled.update-mirror-button.has_tooltip{title: "Updating from mirror..."}
= icon('refresh')
- else
= link_to update_now_namespace_project_mirror_path(@project.namespace, @project), method: :post, class: "btn update-mirror-button has_tooltip", title: "Update from mirror" do
= icon('refresh')
- if @project.mirror? && can?(current_user, :push_code, @project)
- size = nil unless defined?(size) && size
- if @project.updating_mirror?
%span.btn.disabled{class: ("btn-#{size}" if size)}
%span.btn.disabled
= icon('refresh')
Updating…
- else
= link_to update_now_namespace_project_mirror_path(@project.namespace, @project), method: :post, class: "btn #{"btn-#{size}" if size}" do
= link_to update_now_namespace_project_mirror_path(@project.namespace, @project), method: :post, class: "btn" do
= icon('refresh')
Update Now
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment