summaryrefslogtreecommitdiff
path: root/app/views/shared
diff options
context:
space:
mode:
authorLuke Bennett <lbennett@gitlab.com>2019-03-21 22:24:48 +0000
committerLuke Bennett <lbennett@gitlab.com>2019-05-07 03:42:09 +0100
commit875338487343b092f670ab5e0323904ec5457a3a (patch)
treef625635a4198e9d6a884fa6bfe73630ab49af978 /app/views/shared
parent4ebbfb9f1e95091a7753a10e12d989d72f4332f8 (diff)
downloadgitlab-ce-875338487343b092f670ab5e0323904ec5457a3a.tar.gz
Show disabled project repo mirrorsshow-disabled-mirrors
Show disabled mirrors with a badge so that they can be deleted by project owners.
Diffstat (limited to 'app/views/shared')
-rw-r--r--app/views/shared/_remote_mirror_update_button.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/shared/_remote_mirror_update_button.html.haml b/app/views/shared/_remote_mirror_update_button.html.haml
index 721a2af8069..8da2ae5111a 100644
--- a/app/views/shared/_remote_mirror_update_button.html.haml
+++ b/app/views/shared/_remote_mirror_update_button.html.haml
@@ -1,6 +1,6 @@
- if remote_mirror.update_in_progress?
%button.btn.disabled{ type: 'button', data: { toggle: 'tooltip', container: 'body' }, title: _('Updating') }
= icon("refresh spin")
-- else
+- elsif remote_mirror.enabled?
= 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")