]> source.dussan.org Git - gitblit.git/commitdiff
Improved empty page content
authorJames Moger <james.moger@gitblit.com>
Fri, 23 Dec 2011 13:11:41 +0000 (08:11 -0500)
committerJames Moger <james.moger@gitblit.com>
Fri, 23 Dec 2011 13:11:41 +0000 (08:11 -0500)
src/com/gitblit/wicket/pages/EmptyRepositoryPage.html
src/com/gitblit/wicket/pages/EmptyRepositoryPage.java

index 4f0b9bdbffa2b6095bf8aaaf309509c8dfffe460..a424c6a508787e50af48d26e24e99e70d2be6f8c 100644 (file)
                <p></p>\r
                Please push some commits to <span wicket:id="pushurl"></span>\r
                <p></p>\r
-               <h3>Git Command-Line Syntax</h3>                \r
-               <pre wicket:id="syntax"></pre>\r
+               <h3>Git Command-Line Syntax</h3>\r
+               <span style="padding-bottom:5px;">If you do not have a local Git repository, then you should clone this repository, commit some files, and then push your commits back to this repository.</span>\r
+               <p></p>\r
+               <pre style="padding-top:5px;" wicket:id="cloneSyntax"></pre>\r
+               <p></p>\r
+               <span style="padding-bottom:5px;">If you already have a local Git repository with commits, then you may add this repository as a remote and push to it.</span>\r
+               <p></p>\r
+               <pre wicket:id="remoteSyntax"></pre>\r
                <p></p>\r
                <h3>Learn Git</h3>\r
-               If you are lost or don't know what to do with this information, consider reviewing the excellent <a href="http://progit.org/book" target="_blank">Pro Git</a> book for a better understanding on how to use Git.\r
+               If you are unsure how to use this information, consider reviewing the <a href="http://book.git-scm.com">Git Community Book</a> or <a href="http://progit.org/book" target="_blank">Pro Git</a> for a better understanding on how to use Git.\r
                <p></p>\r
                <h4>Open Source Git Clients</h4>\r
                <ul>\r
index b5f4a3592800d5c4b0d9458ef51f03d0156ee143..50695b967f47f36c50f9d412629d45e1e0f89032 100644 (file)
@@ -49,6 +49,7 @@ public class EmptyRepositoryPage extends RootPage {
                \r
                add(new Label("repository", repositoryName));\r
                add(new RepositoryUrlPanel("pushurl", repositoryUrls.get(0)));\r
-               add(new Label("syntax", MessageFormat.format("git remote add gitblit {0}\ngit push gitblit master", repositoryUrls.get(0))));\r
+               add(new Label("cloneSyntax", MessageFormat.format("git clone {0}", repositoryUrls.get(0))));\r
+               add(new Label("remoteSyntax", MessageFormat.format("git remote add gitblit {0}\ngit push gitblit master", repositoryUrls.get(0))));\r
        }\r
 }\r