From d769b50e39a7802dad55544f56759b976f162f70 Mon Sep 17 00:00:00 2001 From: Matt Gilman Date: Wed, 8 Apr 2015 08:39:05 -0400 Subject: [PATCH 1/4] NIFI-493: - Fixing the number of documented components. - Fixing unordered list creation. --- .../nifi/web/docs/DocumentationController.java | 5 ++++- .../main/webapp/WEB-INF/jsp/documentation.jsp | 18 +++++++++--------- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-docs/src/main/java/org/apache/nifi/web/docs/DocumentationController.java b/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-docs/src/main/java/org/apache/nifi/web/docs/DocumentationController.java index a5428cdba0..7d8ec6ca23 100644 --- a/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-docs/src/main/java/org/apache/nifi/web/docs/DocumentationController.java +++ b/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-docs/src/main/java/org/apache/nifi/web/docs/DocumentationController.java @@ -39,6 +39,9 @@ import org.apache.commons.lang3.StringUtils; @WebServlet(name = "DocumenationController", urlPatterns = {"/*"}) public class DocumentationController extends HttpServlet { + private static final int GENERAL_LINK_COUNT = 4; + private static final int DEVELOPER_LINK_COUNT = 2; + // context for accessing the extension mapping private ServletContext servletContext; @@ -82,7 +85,7 @@ public class DocumentationController extends HttpServlet { request.setAttribute("processors", processors); request.setAttribute("controllerServices", controllerServices); request.setAttribute("reportingTasks", reportingTasks); - request.setAttribute("totalComponents", processors.size() + controllerServices.size() + reportingTasks.size()); + request.setAttribute("totalComponents", GENERAL_LINK_COUNT + processors.size() + controllerServices.size() + reportingTasks.size() + DEVELOPER_LINK_COUNT); // forward appropriately request.getRequestDispatcher("/WEB-INF/jsp/documentation.jsp").forward(request, response); diff --git a/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-docs/src/main/webapp/WEB-INF/jsp/documentation.jsp b/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-docs/src/main/webapp/WEB-INF/jsp/documentation.jsp index d2397de73d..aea08d0600 100644 --- a/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-docs/src/main/webapp/WEB-INF/jsp/documentation.jsp +++ b/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-docs/src/main/webapp/WEB-INF/jsp/documentation.jsp @@ -55,11 +55,11 @@