patx/gitman

tweak ux on repo settings, always show git import description if panel is displayed

Commit f80e137 · patx · 2026-05-08T02:44:17-04:00

Changeset
f80e1375cabb039a5cd56e42446f64f6644c6143
Parents
f70e5cc1e14078bdacd1e2c8e755e0746c2a14b5

View source at this commit

Comments

No comments yet.

Log in to comment

Diff

diff --git a/templates/repo_settings.tpl b/templates/repo_settings.tpl
index 9124a6b..e82a1a0 100644
--- a/templates/repo_settings.tpl
+++ b/templates/repo_settings.tpl
@@ -26,12 +26,13 @@
 % if commit_count == 0 or import_bundle_finalizing:
 <section class="panel">
   <h2>Import Git bundle</h2>
+    <p class="muted">Create a bundle from the source repository using 
+        <strong>git bundle create repo.bundle --all</strong>, 
+        then upload it here.
+    </p>
   % if import_bundle_finalizing:
     <p class="muted" data-import-bundle-status>{{import_bundle_status_message}}</p>
   % else:
-  <p class="muted">Create a bundle from the source repository using 
-                   <strong>git bundle create repo.bundle --all</strong>, 
-                   then upload it here.</p>
   <form method="post" enctype="multipart/form-data" data-import-bundle-form data-upload-url="/{{repo['owner_username']}}/{{repo['name']}}/settings/import-bundle/chunk">
     {{!csrf_field()}}
     <input type="hidden" name="action" value="import_bundle">