diff options
author | Luke Bennett <lukeeeebennettplus@gmail.com> | 2018-07-25 14:05:40 +0300 |
---|---|---|
committer | Luke Bennett <lukeeeebennettplus@gmail.com> | 2018-07-25 14:05:40 +0300 |
commit | cfefab3259e41669d4326f48f79a9d168f94249f (patch) | |
tree | 1af271ae553ae1d66cc7af0b219020c64504f7f2 /app/views/shared | |
parent | e36f49fb4f01cafecc9ddc6934de33d51a97f135 (diff) |
port
Diffstat (limited to 'app/views/shared')
-rw-r--r-- | app/views/shared/_remote_mirror_update_button.html.haml | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/app/views/shared/_remote_mirror_update_button.html.haml b/app/views/shared/_remote_mirror_update_button.html.haml index 34de1c0695f..f32cff18fa8 100644 --- a/app/views/shared/_remote_mirror_update_button.html.haml +++ b/app/views/shared/_remote_mirror_update_button.html.haml @@ -1,13 +1,6 @@ -- if @project.has_remote_mirror? - .append-bottom-default - - if remote_mirror.update_in_progress? - %span.btn.disabled - = icon("refresh spin") - Updating… - - else - = link_to update_now_project_mirror_path(@project, sync_remote: true), method: :post, class: "btn" do - = icon("refresh") - Update Now - - if @remote_mirror.last_successful_update_at - %p.inline.prepend-left-10 - Successfully updated #{time_ago_with_tooltip(@remote_mirror.last_successful_update_at)}. +- 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", data: { toggle: 'tooltip', container: 'body' }, title: _('Update now') do + = icon("refresh") |