summaryrefslogtreecommitdiff
path: root/app/views/shared/_remote_mirror_update_button.html.haml
blob: 34de1c0695fa837db69e4ec762cbacb099027f2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
- 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)}.