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