Commit 8711fa2acb6e498966877c02b74b920cfb836dd8

Thomas de Grivel 2021-12-11T17:49:46

deploy keys (read-only)

diff --git a/lib/kmxgit_web/templates/admin/repository/form.html.heex b/lib/kmxgit_web/templates/admin/repository/form.html.heex
index 3a5ca6c..71f5573 100644
--- a/lib/kmxgit_web/templates/admin/repository/form.html.heex
+++ b/lib/kmxgit_web/templates/admin/repository/form.html.heex
@@ -24,6 +24,12 @@
   </div>
 
   <div class="mb-3">
+    <%= label f, :deploy_keys, gettext("Deploy keys (read-only)"), class: "form-label" %>
+    <%= textarea f, :deploy_keys, class: "form-control" %>
+    <%= error_tag f, :deploy_keys %>
+  </div>
+
+  <div class="mb-3">
     <%= label f, :owner_slug, gettext("Change owner ⚠"), class: "form-label" %>
     <%= text_input f, :owner_slug, class: "form-control" %>
     <%= error_tag f, :owner_slug %>
diff --git a/lib/kmxgit_web/templates/repository/form.html.heex b/lib/kmxgit_web/templates/repository/form.html.heex
index fcdced7..c21780e 100644
--- a/lib/kmxgit_web/templates/repository/form.html.heex
+++ b/lib/kmxgit_web/templates/repository/form.html.heex
@@ -25,7 +25,7 @@
 
   <%= if @conn.assigns[:current_repository] do %>
     <div class="mb-3">
-      <%= label f, :deploy_keys, class: "form-label" %>
+      <%= label f, :deploy_keys, gettext("Deploy keys (read-only)"), class: "form-label" %>
       <%= textarea f, :deploy_keys, class: "form-control" %>
       <%= error_tag f, :deploy_keys %>
     </div>