public static List<String> getNestedRepositories(File repositoriesFolder, File folder, boolean exportAll, boolean readNested) {\r
String basefile = repositoriesFolder.getAbsolutePath();\r
List<String> list = new ArrayList<String>();\r
+ if (folder == null || !folder.exists()) {\r
+ return list;\r
+ }\r
for (File file : folder.listFiles()) {\r
if (file.isDirectory() && !file.getName().equalsIgnoreCase(Constants.DOT_GIT)) {\r
// if this is a git repository add it to the list\r
<!-- page footer -->\r
<div class="page_footer">\r
<div style="float:right">\r
- <a href="http://gitblit.com"><span wicket:id="gbVersion"></span></a> \r
+ <span wicket:id="gbVersion"></span> \r
</div>\r
<div wicket:id="userPanel">[user panel]</div>\r
</div>\r
case 1:\r
// PrettyPrint blob text\r
c = new Label("blobText", JGitUtils.getRawContentAsString(r, commit, blobPath));\r
- WicketUtils.setCssClass(c, "prettyprint");\r
+ WicketUtils.setCssClass(c, "prettyprint linenums");\r
break;\r
case 2:\r
// TODO image blobs\r
</wicket:head>\r
\r
<body>\r
-<wicket:extend>\r
- <div wicket:id="adminPanel">[admin links]</div>\r
+<wicket:extend> \r
+ <div style="text-align:center;padding-top:5px;" wicket:id="feedback">[Feedback Panel]</div>\r
\r
- <div style="text-align:center;padding-top:20px;" wicket:id="feedback">[Feedback Panel]</div>\r
+ <div class="markdown" style="padding-top:5px;" wicket:id="repositoriesMessage">[repositories message]</div>\r
\r
- <div class="markdown" wicket:id="repositoriesMessage">[repositories message]</div>\r
+ <div style="padding-top:5px;" wicket:id="adminPanel">[admin links]</div>\r
\r
<table class="repositories">\r
<tr>\r
\r
<wicket:fragment wicket:id="adminLinks">\r
<!-- page nav links --> \r
- <div class="page_nav">\r
+ <div style="text-align: right;" class="admin_nav">\r
<a wicket:id="newRepository"><wicket:message key="gb.newRepository"></wicket:message></a> | <a wicket:id="newUser"><wicket:message key="gb.newUser"></wicket:message></a> | <a wicket:id="editUsers"><wicket:message key="gb.editUsers"></wicket:message></a>\r
</div> \r
</wicket:fragment>\r
}\r
}\r
Component repositoriesMessage = new Label("repositoriesMessage", message).setEscapeModelStrings(false);\r
- if (!showAdmin) {\r
- WicketUtils.setCssStyle(repositoriesMessage, "padding-top:10px");\r
- }\r
add(repositoriesMessage);\r
\r
final Map<AccessRestrictionType, String> accessRestrictionTranslations = getAccessRestrictions();\r
background-color: #ffffff;\r
color: #000000;\r
margin-right: auto;\r
- margin-left: auto;\r
- margin-top: none;\r
+ margin-left: auto; \r
padding: 0px;\r
background: url(background.png) repeat-x scroll 0 0 #FFFFFF;\r
}\r
}\r
\r
div.page_header a:hover {\r
- color: E66C2C;\r
+ color: #E66C2C;\r
text-decoration: underline;\r
}\r
\r
padding: 2px 5px 7px 5px; \r
}\r
\r
+div.admin_nav {\r
+ padding: 5px 5px 5px 2px; \r
+}\r
+\r
+div.admin_nav a {\r
+ text-decoration: none;\r
+}\r
+\r
+div.admin_nav a:hover { \r
+ text-decoration: underline;\r
+}\r
+\r
div.search {\r
color:yellow;\r
text-align:right;\r
font-weight: bold; \r
padding:0;\r
margin:0;\r
-}
\ No newline at end of file
+}\r
+\r
+/* google-code-prettify line numbers */\r
+li.L0,\r
+li.L1,\r
+li.L2,\r
+li.L3,\r
+li.L4,\r
+li.L5,\r
+li.L6,\r
+li.L7,\r
+li.L8,\r
+li.L9 { color: #888; border-left: 1px solid #ccc; padding-left:5px; list-style-type: decimal !important; }\r
+\r
+/* Alternate shading for lines */\r
+li.L1,\r
+li.L3,\r
+li.L5,\r
+li.L7,\r
+li.L9 { background: #fafafa !important; }
\ No newline at end of file