debian-mirror-gitlab/app/views/shared/_remote_mirror_update_button.html.haml

7 lines
451 B
Text
Raw Normal View History

2018-11-20 20:47:30 +05:30
- if remote_mirror.update_in_progress?
%button.btn.disabled{ type: 'button', data: { toggle: 'tooltip', container: 'body' }, title: _('Updating') }
= icon("refresh spin")
2019-07-31 22:56:46 +05:30
- elsif remote_mirror.enabled?
2019-10-12 21:52:04 +05:30
= link_to update_now_project_mirror_path(@project, sync_remote: true), method: :post, class: "btn qa-update-now-button rspec-update-now-button", data: { toggle: 'tooltip', container: 'body' }, title: _('Update now') do
2018-11-20 20:47:30 +05:30
= icon("refresh")