summaryrefslogtreecommitdiff
path: root/app/helpers/admin/deploy_key_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/admin/deploy_key_helper.rb')
-rw-r--r--app/helpers/admin/deploy_key_helper.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/app/helpers/admin/deploy_key_helper.rb b/app/helpers/admin/deploy_key_helper.rb
new file mode 100644
index 00000000000..caf3757a68e
--- /dev/null
+++ b/app/helpers/admin/deploy_key_helper.rb
@@ -0,0 +1,14 @@
+# frozen_string_literal: true
+
+module Admin
+ module DeployKeyHelper
+ def admin_deploy_keys_data
+ {
+ edit_path: edit_admin_deploy_key_path(':id'),
+ delete_path: admin_deploy_key_path(':id'),
+ create_path: new_admin_deploy_key_path,
+ empty_state_svg_path: image_path('illustrations/empty-state/empty-deploy-keys-lg.svg')
+ }
+ end
+ end
+end