manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1599848 - in /manifoldcf/branches/CONNECTORS-946/framework/crawler-ui/src/main/webapp: editjob.jsp style.css
Date Wed, 04 Jun 2014 01:27:37 GMT
Author: kwright
Date: Wed Jun  4 01:27:37 2014
New Revision: 1599848

URL: http://svn.apache.org/r1599848
Log:
Add sequence number display

Modified:
    manifoldcf/branches/CONNECTORS-946/framework/crawler-ui/src/main/webapp/editjob.jsp
    manifoldcf/branches/CONNECTORS-946/framework/crawler-ui/src/main/webapp/style.css

Modified: manifoldcf/branches/CONNECTORS-946/framework/crawler-ui/src/main/webapp/editjob.jsp
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-946/framework/crawler-ui/src/main/webapp/editjob.jsp?rev=1599848&r1=1599847&r2=1599848&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-946/framework/crawler-ui/src/main/webapp/editjob.jsp (original)
+++ manifoldcf/branches/CONNECTORS-946/framework/crawler-ui/src/main/webapp/editjob.jsp Wed
Jun  4 01:27:37 2014
@@ -697,11 +697,55 @@
 	}
 %>
 	    <table class="tabtable">
+	      <tr class="tabsequencerow">
+<%
+	Integer currentSequenceNumber = null;
+	int startColumn = 0;
+	for (int tabNum = 0; tabNum < tabsArray.size(); tabNum++)
+	{
+		boolean doswitch = false;
+		Integer sequenceNumber = sequenceArray.get(tabNum);
+		if (sequenceNumber == null || currentSequenceNumber == null)
+			doswitch = (sequenceNumber != null || currentSequenceNumber != null);
+		else
+			doswitch = !sequenceNumber.equals(currentSequenceNumber);
+		if (doswitch)
+		{
+			int colspan = tabNum - startColumn;
+			if (colspan > 0)
+			{
+				if (currentSequenceNumber == null)
+				{
+%>
+		      <td class="blanksequencetab" colspan="<%=colspan%>"></td>
+<%
+				}
+				else
+				{
+%>
+		      <td class="sequencetab" colspan="<%=colspan%>"><%=(currentSequenceNumber.intValue()+1)%>.</td>
+<%
+				}
+			}
+			startColumn = tabNum;
+			currentSequenceNumber = sequenceNumber;
+		}
+	}
+	if (startColumn != tabsArray.size())
+	{
+		int colspan = tabsArray.size() - startColumn;
+%>
+		      <td class="sequencetab" colspan="<%=colspan%>"><%=(currentSequenceNumber.intValue()+1)%>.</td>
+<%
+	}
+%>
+		      <td class="remaindersequencetab"></td>
+	      </tr>
 	      <tr class="tabrow">
 <%
 	for (int tabNum = 0; tabNum < tabsArray.size(); tabNum++)
 	{
-		String tab = (String)tabsArray.get(tabNum);
+		String tab = tabsArray.get(tabNum);
 		Integer sequenceNumber = sequenceArray.get(tabNum);
 		int sequenceNumberInt = (sequenceNumber == null)?-1:sequenceNumber.intValue();
 		if (tab.equals(tabName) && (tabSequenceInt == -1 || sequenceNumberInt == tabSequenceInt))

Modified: manifoldcf/branches/CONNECTORS-946/framework/crawler-ui/src/main/webapp/style.css
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-946/framework/crawler-ui/src/main/webapp/style.css?rev=1599848&r1=1599847&r2=1599848&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-946/framework/crawler-ui/src/main/webapp/style.css (original)
+++ manifoldcf/branches/CONNECTORS-946/framework/crawler-ui/src/main/webapp/style.css Wed
Jun  4 01:27:37 2014
@@ -38,6 +38,52 @@ body
     border-collapse: collapse;
 }
 
+.tabsequencerow
+{
+    height: 8px;
+    font-size: 8px;
+    line-height: 8px;
+}
+
+.blanksequencetab
+{
+    background: #f8f8f8;
+    border-style: solid;
+    border-width: 1px 0 0 2px;
+    border-color: #ccc #ccc #229ddb #ccc;
+    margin: 0;
+    padding: 2px 10px 3px 10px;
+    vertical-align: top;
+    height: 8px;
+}
+
+.sequencetab
+{
+    background: #f8f8f8;
+    border-style: solid;
+    border-width: 1px 1px 0 2px;
+    border-color: #ccc #ccc #229ddb #ccc;
+    margin: 0;
+    padding: 2px 10px 3px 10px;
+    height: 8px;
+    vertical-align: top;
+	text-align: center;
+}
+
+.remaindersequencetab
+{
+    width: 100%;
+    background: #f8f8f8;
+    border-style: solid;
+    border-width: 1px 1px 0 0;
+    border-color: #ccc #ccc;
+    padding: 2px 10px 3px 10px;
+    height: 8px;
+    vertical-align: top;
+    text-align: right;
+    color: #555;
+}
+
 .tabrow
 {
     height: 20px;



Mime
View raw message