]> source.dussan.org Git - gitblit.git/commitdiff
Move the Delete Repository button to a separate "administration" tab 25/225/1
authorJames Moger <james.moger@gitblit.com>
Sat, 7 Mar 2015 14:38:53 +0000 (09:38 -0500)
committerJames Moger <james.moger@gitblit.com>
Sat, 7 Mar 2015 14:38:53 +0000 (09:38 -0500)
src/main/java/com/gitblit/wicket/GitBlitWebApp.properties
src/main/java/com/gitblit/wicket/pages/EditRepositoryPage.html

index 648ac2a54b51c210635bd0c465aac5cc22020f51..10b318dc08fac8eaadcc2be489ac0fc2a1295bf3 100644 (file)
@@ -759,4 +759,6 @@ gb.diffCopiedFile = File was copied from {0}
 gb.diffTruncated = Diff truncated after the above file
 gb.opacityAdjust = Adjust opacity
 gb.blinkComparator = Blink comparator
-gb.imgdiffSubtract = Subtract (black = identical)
\ No newline at end of file
+gb.imgdiffSubtract = Subtract (black = identical)
+gb.deleteRepositoryHeader = Delete Repository
+gb.deleteRepositoryDescription = Deleted repositories will be unrecoverable.
\ No newline at end of file
index 1e683b4fbc8b985d9a55acebcd5ad3ac5e87b6a3..7a55b9f58cd253e990170256dc47d67edb1f6778 100644 (file)
@@ -20,6 +20,7 @@
                <li><a href="#search" data-toggle="tab"><wicket:message key="gb.search"></wicket:message></a></li>\r
                <li><a href="#gc" data-toggle="tab"><wicket:message key="gb.gc"></wicket:message></a></li>\r
                <li><a href="#misc" data-toggle="tab"><wicket:message key="gb.miscellaneous"></wicket:message></a></li>\r
+        <li><a href="#admin" data-toggle="tab"><wicket:message key="gb.administration"></wicket:message></a></li>\r
        </ul>\r
 \r
        <!-- tab content -->\r
                        <div wicket:id="mailingLists"></div>\r
                \r
                </div>\r
-               \r
-               <div class="form-actions"><input class="btn btn-appmenu" type="submit" value="Save" wicket:message="value:gb.save" wicket:id="save" /> &nbsp; <input class="btn" type="submit" value="Cancel" wicket:message="value:gb.cancel" wicket:id="cancel" /> &nbsp; <input class="btn btn-danger" type="submit" value="Delete" wicket:message="value:gb.delete" wicket:id="delete" /></div>\r
+\r
+        <!-- administration -->\r
+        <div class="tab-pane" id="admin">\r
+        \r
+            <h4><wicket:message key="gb.deleteRepositoryHeader"></wicket:message></h4>\r
+            <p><wicket:message key="gb.deleteRepositoryDescription"></wicket:message></p>\r
+            <input class="btn btn-danger" type="submit" value="Delete" wicket:message="value:gb.delete" wicket:id="delete" />\r
+               </div>\r
+    \r
+               <div class="form-actions"><input class="btn btn-appmenu" type="submit" value="Save" wicket:message="value:gb.save" wicket:id="save" /> &nbsp; <input class="btn" type="submit" value="Cancel" wicket:message="value:gb.cancel" wicket:id="cancel" /></div>\r
                \r
                </div>\r
        </div>\r