about summary refs log tree commit diff
path: root/app/views/admin
diff options
context:
space:
mode:
authorJeong Arm <kjwonmail@gmail.com>2022-03-26 08:39:54 +0900
committerGitHub <noreply@github.com>2022-03-26 00:39:54 +0100
commit6907605026a5d46acf8a5f3aaf5384807c1d8d3c (patch)
tree9a6d9862b1785444a584492d4b5f3344635b1238 /app/views/admin
parent71f2b95106b2e75d3efb40040b29c216c2d99ee6 (diff)
Add stop delivery link also for failing instance (#17871)
Diffstat (limited to 'app/views/admin')
-rw-r--r--app/views/admin/instances/show.html.haml3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/admin/instances/show.html.haml b/app/views/admin/instances/show.html.haml
index 70912a4f5..ef4de602d 100644
--- a/app/views/admin/instances/show.html.haml
+++ b/app/views/admin/instances/show.html.haml
@@ -87,7 +87,8 @@
     - else
       %span.negative-hint
         = t('admin.instances.availability.failures_recorded', count: @instance.delivery_failure_tracker.days)
-        = link_to t('admin.instances.delivery.clear'), clear_delivery_errors_admin_instance_path(@instance), data: { confirm: t('admin.accounts.are_you_sure'), method: :post } unless @instance.exhausted_deliveries_days.empty?
+        %span= link_to t('admin.instances.delivery.clear'), clear_delivery_errors_admin_instance_path(@instance), data: { confirm: t('admin.accounts.are_you_sure'), method: :post } unless @instance.exhausted_deliveries_days.empty?
+        %span= link_to t('admin.instances.delivery.stop'), stop_delivery_admin_instance_path(@instance), data: { confirm: t('admin.accounts.are_you_sure'), method: :post }
 
 - if @instance.purgeable?
   %p= t('admin.instances.purge_description_html')