summaryrefslogtreecommitdiff
path: root/app/views/shared/_remote_mirror_update_button.html.haml
blob: 721a2af8069e1c38b92cfa4c3f8a41f6bdc053b9 (plain)
1
2
3
4
5
6
- if remote_mirror.update_in_progress?
  %button.btn.disabled{ type: 'button', data: { toggle: 'tooltip', container: 'body' }, title: _('Updating') }
    = icon("refresh spin")
- else
  = link_to update_now_project_mirror_path(@project, sync_remote: true), method: :post, class: "btn qa-update-now-button", data: { toggle: 'tooltip', container: 'body' }, title: _('Update now') do
    = icon("refresh")