repos.jspf revision 838924562130977ca1a3d3839d146fcda39ea1af
08a0c20ec18b20b9b4223a086bc3916f4a4bfab5Jorgen AustvikCDDL HEADER START
08a0c20ec18b20b9b4223a086bc3916f4a4bfab5Jorgen AustvikThe contents of this file are subject to the terms of the
08a0c20ec18b20b9b4223a086bc3916f4a4bfab5Jorgen AustvikCommon Development and Distribution License (the "License").
bb3eaa576162703921d669302217a3214c506602Jorgen AustvikYou may not use this file except in compliance with the License.
08a0c20ec18b20b9b4223a086bc3916f4a4bfab5Jorgen AustvikSee LICENSE.txt included in this distribution for the specific
08a0c20ec18b20b9b4223a086bc3916f4a4bfab5Jorgen Austviklanguage governing permissions and limitations under the License.
08a0c20ec18b20b9b4223a086bc3916f4a4bfab5Jorgen AustvikWhen distributing Covered Code, include this CDDL HEADER in each
08a0c20ec18b20b9b4223a086bc3916f4a4bfab5Jorgen Austvikfile and include the License file at LICENSE.txt.
08a0c20ec18b20b9b4223a086bc3916f4a4bfab5Jorgen AustvikIf applicable, add the following below this CDDL HEADER, with the
08a0c20ec18b20b9b4223a086bc3916f4a4bfab5Jorgen Austvikfields enclosed by brackets "[]" replaced with your own identifying
08a0c20ec18b20b9b4223a086bc3916f4a4bfab5Jorgen Austvikinformation: Portions Copyright [yyyy] [name of copyright owner]
08a0c20ec18b20b9b4223a086bc3916f4a4bfab5Jorgen AustvikCDDL HEADER END
cf7ead0f677898593369e3964f6cbbe2e4566cbbJorgen AustvikCopyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
08a0c20ec18b20b9b4223a086bc3916f4a4bfab5Jorgen Austvik<%@page import="org.opensolaris.opengrok.configuration.messages.Message"%>
08a0c20ec18b20b9b4223a086bc3916f4a4bfab5Jorgen Austvik<%@page import="java.util.SortedSet"%>
08a0c20ec18b20b9b4223a086bc3916f4a4bfab5Jorgen Austvik<%@page import="java.util.SortedSet"%>
08a0c20ec18b20b9b4223a086bc3916f4a4bfab5Jorgen Austvik<%@page import="java.util.Set"%>
08a0c20ec18b20b9b4223a086bc3916f4a4bfab5Jorgen Austvik<%@page import="java.util.ArrayList"%>
08a0c20ec18b20b9b4223a086bc3916f4a4bfab5Jorgen Austvik<%@page import="java.util.Date"%>
08a0c20ec18b20b9b4223a086bc3916f4a4bfab5Jorgen Austvik<%@page import="org.opensolaris.opengrok.web.Prefix"%>
08a0c20ec18b20b9b4223a086bc3916f4a4bfab5Jorgen Austvik<%@page import="org.opensolaris.opengrok.web.ProjectHelper"%>
08a0c20ec18b20b9b4223a086bc3916f4a4bfab5Jorgen Austvik<%@page import="java.util.LinkedList"%>
08a0c20ec18b20b9b4223a086bc3916f4a4bfab5Jorgen Austvik<%@page import="java.util.Collections"%>
08a0c20ec18b20b9b4223a086bc3916f4a4bfab5Jorgen Austvik<%@page import="java.util.Comparator"%>
08a0c20ec18b20b9b4223a086bc3916f4a4bfab5Jorgen Austvik<%@page import="java.util.Collection"%>
08a0c20ec18b20b9b4223a086bc3916f4a4bfab5Jorgen Austvik<%@page import="java.io.File"%>
08a0c20ec18b20b9b4223a086bc3916f4a4bfab5Jorgen Austvik<%@page import="org.opensolaris.opengrok.configuration.RuntimeEnvironment"%>
08a0c20ec18b20b9b4223a086bc3916f4a4bfab5Jorgen Austvik<%@page import="org.opensolaris.opengrok.history.RepositoryInfo"%>
08a0c20ec18b20b9b4223a086bc3916f4a4bfab5Jorgen Austvik<%@page import="org.opensolaris.opengrok.history.Repository"%>
08a0c20ec18b20b9b4223a086bc3916f4a4bfab5Jorgen Austvik<%@page import="org.opensolaris.opengrok.web.Util"%>
08a0c20ec18b20b9b4223a086bc3916f4a4bfab5Jorgen Austvik<%@page import="org.opensolaris.opengrok.configuration.Project"%>
<%@page import="org.opensolaris.opengrok.configuration.Group"%>
<%@page import="java.util.List"%>
<%@page import="org.opensolaris.opengrok.web.PageConfig"%>
PageConfig cfg = PageConfig.get(request);
ProjectHelper pHelper = cfg.getProjectHelper();
if (pHelper.getAllProjects().size() > 0) {
Set<Group> groups = pHelper.getGroups();
Set<Project> repositories = pHelper.getUngroupedRepositories();
if(groups.size() > 0) {
x.setFlag(0);
stack.addLast(x);
while ( ! stack.isEmpty() ) {
Group group = stack.element();
if(group.getFlag() > 0) {
stack.element().setFlag(1);
for ( Group x : pHelper.getSubgroups(group)) {
x.setFlag(0);
stack.addFirst(x);
<span class="fold <%= pHelper.hasFavourite(group) ? "fold-up" : "fold-down"%>"></span>
<div class="panel-body-accordion <% if(pHelper.hasFavourite(group)) { %> favourite<% } %>"
<% if(pHelper.hasFavourite(group)) { %>data-accordion-visible="true"<% } %>>
if(pHelper.getRepositories(group).size() > 0 ) {
for ( Project project : pHelper.getRepositories(group)) {
List<RepositoryInfo> repos = pHelper.getRepositoryInfo(project);
String projDesc = project.getDescription();
Collections.sort(repos, comparatorRepo);
if(cnt > 0 && ri.getParent() == null)
projDesc = ri.getDirectoryName()
title="Xref for project <%= Util.htmlize(projDesc) %>">
<%= Util.htmlize(projDesc) %>
<% if(!messages.isEmpty()) { %>
<span class="important-note important-note-rounded" data-messages='<%= Util.messagesToJson(messages).toJSONString() %>'>!</span>
String parent = ri.getParent();
String type = ri.getType();
String branch = ri.getBranch();
%><td><%= Util.htmlize(type) %></td><%
if (repositories.size() > 0) { %>
<% if(groups.size() > 0) { %>
<% if(groups.size() > 0) {%>
<span class="fold <%= pHelper.hasUngroupedFavourite() ? "fold-up" : "fold-down"%>"></span>
<div class="panel-body<% if(groups.size() > 0) {%>-accordion<% } %> <% if(pHelper.hasUngroupedFavourite()) { %> favourite<% } %>"
<% if(pHelper.hasUngroupedFavourite()) { %>data-accordion-visible="true"<% } %>>
List<RepositoryInfo> repos = pHelper.getRepositoryInfo(proj);
String projDesc = proj.getDescription();
Collections.sort(repos, comparatorRepo);
if(cnt > 0 && ri.getParent() == null)
projDesc = ri.getDirectoryName()
title="Xref for project <%= Util.htmlize(projDesc) %>">
<%= Util.htmlize(projDesc) %>
<% if(!messages.isEmpty()) { %>
<span class="important-note important-note-rounded" data-messages='<%= Util.messagesToJson(messages).toJSONString() %>'>!</span>
String parent = ri.getParent();
String type = ri.getType();
String branch = ri.getBranch();
%><td><%= Util.htmlize(type) %></td><%