Modified: 
manifoldcf/branches/CONNECTORS-1196/framework/crawler-ui/src/main/webapp/index.jsp
URL: 
http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1196/framework/crawler-ui/src/main/webapp/index.jsp?rev=1684303&r1=1684302&r2=1684303&view=diff
==============================================================================
--- 
manifoldcf/branches/CONNECTORS-1196/framework/crawler-ui/src/main/webapp/index.jsp
 (original)
+++ 
manifoldcf/branches/CONNECTORS-1196/framework/crawler-ui/src/main/webapp/index.jsp
 Tue Jun  9 01:30:36 2015
@@ -1,51 +1,108 @@
 <%@ include file="adminHeaders.jsp" %>
-
 <%
 
-/* $Id$ */
+  /* $Id$ */
 
 /**
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements. See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License. You may obtain a copy of the License at
-* 
-* http://www.apache.org/licenses/LICENSE-2.0
-* 
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 %>
-
-<?xml version="1.0" encoding="utf-8"?>
 <!DOCTYPE html>
-<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
-
-<html xmlns="http://www.w3.org/1999/xhtml";>
+<html lang="en">
 <head>
-       <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-       <link rel="StyleSheet" href="style.css" type="text/css" media="screen"/>
-       <title>
-               
<%=Messages.getBodyString(pageContext.getRequest().getLocale(),"index.ApacheManifoldCF")%>
-       </title>
-
+  <meta charset="utf-8">
+  <meta http-equiv="X-UA-Compatible" content="IE=edge">
+  <meta name="viewport" content="width=device-width, initial-scale=1, 
maximum-scale=1, user-scalable=no">
+  <!-- Bootstrap -->
+  <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" 
type="text/css"/>
+  <link href="bootstrap-select/css/bootstrap-select.min.css" rel="stylesheet" 
type="text/css"/>
+  <link href="css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
+  <link rel="stylesheet" href="css/style.css" type="text/css" media="screen"/>
+  <link rel="stylesheet" href="css/print.css" type="text/css" media="print"/>
+  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media 
queries -->
+  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
+  <!--[if lt IE 9]>
+  <script src=javascript/html5shiv.min.js"></script>
+  <script src="javascript/respond.min.js"></script>
+  <![endif]-->
 </head>
-
-<body class="standardbody">
-    <table class="page">
-      <tr><td colspan="2" class="banner"><jsp:include page="banner.jsp" 
flush="true"/></td></tr>
-      <tr><td class="navigation"><jsp:include page="navigation.jsp" 
flush="true"/></td>
-       <td class="window">
-       <p 
class="windowtitle"><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"index.WelcomeToApacheManifoldFC")%></p>
-       </td>
-      </tr>
-    </table>
-
+<body class="fixed skin-black sidebar-mini">
+<div class="wrapper">
+  <header class="main-header">
+    <nav class="navbar navbar-static-top" role="navigation">
+      <a class="logo">
+        <img src="ManifoldCF-logo.png"/>
+      </a>
+      <!-- Sidebar toggle button-->
+      <a href="/" class="sidebar-toggle" data-toggle="offcanvas" role="button">
+        <span class="sr-only">Toggle navigation</span>
+      </a>
+
+      <h1 
class="hidden-xs"><%=Messages.getBodyString(pageContext.getRequest().getLocale(),
 "banner.DocumentIngestion")%>
+      </h1>
+      <!-- Navbar Right Menu -->
+      <div class="navbar-custom-menu">
+        <div class="spinner">
+          <div class="bounce1"></div>
+          <div class="bounce2"></div>
+          <div class="bounce3"></div>
+        </div>
+      </div>
+    </nav>
+  </header>
+  <aside class="main-sidebar">
+    <jsp:include page="sidebar.jsp" flush="true"/>
+  </aside>
+  <div class="content-wrapper">
+    <section class="content-header">
+      <h1 class="visible-print-block">Apache ManifoldCF&trade;</h1>
+
+      <h1 id="heading">Welcome to Apache ManifoldCF&trade;</h1>
+    </section>
+    <section id="content" class="content">
+    </section>
+  </div>
+  <footer class="main-footer">
+    <div class="pull-right hidden-xs">
+      <b>Version</b> 2.2
+    </div>
+    <strong>Copyright &copy; 2009-2015&nbsp;&nbsp;&nbsp;&nbsp;<a 
target="_blank" href="http://manifoldcf.apache.org/";>Apache 
ManifoldCF&trade;</a>.</strong>
+  </footer>
+</div>
+<!-- jQuery 1.11.3 -->
+<script src="javascript/jquery-1.11.3.min.js"></script>
+<!-- Bootstrap JS -->
+<script src="bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
+<!-- Bootstrap Select -->
+<script src="bootstrap-select/js/bootstrap-select.min.js" 
type="text/javascript"></script>
+<script src="javascript/jquery.slimscroll.min.js" 
type="text/javascript"></script>
+<script src="javascript/jquery.history.js" type="text/javascript"></script>
+<!-- ManifoldCF -->
+<script src="javascript/app.js" type="text/javascript"></script>
+<%
+  String reqPage = request.getParameter("p");
+  if (reqPage != null && reqPage.length() > 0) {
+%>
+<script type="application/javascript">
+  $(document).ready(function () {
+    $.ManifoldCF.loadContent('<%=URLEncoder.encode(reqPage)%>');
+  });
+</script>
+<%
+  }
+%>
 </body>
-
 </html>

Modified: 
manifoldcf/branches/CONNECTORS-1196/framework/crawler-ui/src/main/webapp/javascript/app.js
URL: 
http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1196/framework/crawler-ui/src/main/webapp/javascript/app.js?rev=1684303&r1=1684302&r2=1684303&view=diff
==============================================================================
--- 
manifoldcf/branches/CONNECTORS-1196/framework/crawler-ui/src/main/webapp/javascript/app.js
 (original)
+++ 
manifoldcf/branches/CONNECTORS-1196/framework/crawler-ui/src/main/webapp/javascript/app.js
 Tue Jun  9 01:30:36 2015
@@ -385,6 +385,7 @@ $.ManifoldCF.setTitle = function(title,h
     $(".content-header #heading").text(header);
 
     activeMenu = typeof activeMenu !== 'undefined' ? activeMenu : 'outputs';
+    $(".sidebar-menu").find("li.active").removeClass("active");
     $("." + activeMenu).addClass("active");
 
     $($.ManifoldCF.options.BSTooltipSelector).tooltip();

Modified: 
manifoldcf/branches/CONNECTORS-1196/framework/crawler-ui/src/main/webapp/less/core.less
URL: 
http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1196/framework/crawler-ui/src/main/webapp/less/core.less?rev=1684303&r1=1684302&r2=1684303&view=diff
==============================================================================
--- 
manifoldcf/branches/CONNECTORS-1196/framework/crawler-ui/src/main/webapp/less/core.less
 (original)
+++ 
manifoldcf/branches/CONNECTORS-1196/framework/crawler-ui/src/main/webapp/less/core.less
 Tue Jun  9 01:30:36 2015
@@ -1,5 +1,5 @@
 /*
- * Core: Genral Layout Style
+ * Core: General Layout Style
  * -------------------------
  */
 html,
@@ -131,4 +131,8 @@ a:focus {
   outline: none;
   text-decoration: none;
   color: @link-hover-color;
+}
+
+label{
+  font-weight: 600;
 }
\ No newline at end of file

Modified: 
manifoldcf/branches/CONNECTORS-1196/framework/crawler-ui/src/main/webapp/less/displaytable.less
URL: 
http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1196/framework/crawler-ui/src/main/webapp/less/displaytable.less?rev=1684303&r1=1684302&r2=1684303&view=diff
==============================================================================
--- 
manifoldcf/branches/CONNECTORS-1196/framework/crawler-ui/src/main/webapp/less/displaytable.less
 (original)
+++ 
manifoldcf/branches/CONNECTORS-1196/framework/crawler-ui/src/main/webapp/less/displaytable.less
 Tue Jun  9 01:30:36 2015
@@ -9,11 +9,14 @@
       padding:7px;
     }
     .separator,
+    .lightseparator,
     .formseparator{
       display: none;
     }
     .description{
-      font-weight: bold;
+      font-weight: 600;
+      text-decoration: underline;
+      font-style: italic;
     }
   }
 }

Modified: 
manifoldcf/branches/CONNECTORS-1196/framework/crawler-ui/src/main/webapp/less/navs.less
URL: 
http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1196/framework/crawler-ui/src/main/webapp/less/navs.less?rev=1684303&r1=1684302&r2=1684303&view=diff
==============================================================================
--- 
manifoldcf/branches/CONNECTORS-1196/framework/crawler-ui/src/main/webapp/less/navs.less
 (original)
+++ 
manifoldcf/branches/CONNECTORS-1196/framework/crawler-ui/src/main/webapp/less/navs.less
 Tue Jun  9 01:30:36 2015
@@ -51,6 +51,23 @@
     }
   }
 
+  > li[seq="0"]{
+    border-bottom: solid 2px @orange;
+  }
+
+  > li[seq="1"]{
+    border-bottom: solid 2px @fuchsia;
+  }
+
+  > li[seq="2"]{
+    border-bottom: solid 2px @green;
+  }
+
+  > li[seq="3"]{
+    border-bottom: solid 2px @blue;
+  }
+
+
   //Pulled to the right
   &.pull-right {
     float: none!important;

Modified: 
manifoldcf/branches/CONNECTORS-1196/framework/crawler-ui/src/main/webapp/less/table.less
URL: 
http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1196/framework/crawler-ui/src/main/webapp/less/table.less?rev=1684303&r1=1684302&r2=1684303&view=diff
==============================================================================
--- 
manifoldcf/branches/CONNECTORS-1196/framework/crawler-ui/src/main/webapp/less/table.less
 (original)
+++ 
manifoldcf/branches/CONNECTORS-1196/framework/crawler-ui/src/main/webapp/less/table.less
 Tue Jun  9 01:30:36 2015
@@ -13,6 +13,11 @@
       > td {
         border-top: 1px solid @box-border-color;
       }
+      > th{
+        font-weight: 600;
+        text-decoration: underline;
+        font-style: italic;
+      }
     }
   }
   //thead cells
@@ -32,6 +37,7 @@
 
   .callout{
     margin:0px;
+    padding:5px 15px;
   }
 }
 

Modified: 
manifoldcf/branches/CONNECTORS-1196/framework/crawler-ui/src/main/webapp/listauthorities.jsp
URL: 
http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1196/framework/crawler-ui/src/main/webapp/listauthorities.jsp?rev=1684303&r1=1684302&r2=1684303&view=diff
==============================================================================
--- 
manifoldcf/branches/CONNECTORS-1196/framework/crawler-ui/src/main/webapp/listauthorities.jsp
 (original)
+++ 
manifoldcf/branches/CONNECTORS-1196/framework/crawler-ui/src/main/webapp/listauthorities.jsp
 Tue Jun  9 01:30:36 2015
@@ -2,141 +2,146 @@
 
 <%
 
-/* $Id$ */
+  /* $Id$ */
 
 /**
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements. See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License. You may obtain a copy of the License at
-* 
-* http://www.apache.org/licenses/LICENSE-2.0
-* 
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-%>
-
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE html>
-<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
-
-<html xmlns="http://www.w3.org/1999/xhtml";>
-<head>
-       <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-       <link rel="StyleSheet" href="style.css" type="text/css" media="screen"/>
-
-       <title>
-               
<%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listauthorities.ApacheManifoldCFListAuthorities")%>
-       </title>
-
-       <script type="text/javascript">
-       <!--
-
-       function Delete(connectionName)
-       {
-               if 
(confirm("<%=Messages.getBodyJavascriptString(pageContext.getRequest().getLocale(),"listauthorities.DeleteAuthority")%>
 '"+connectionName+"'?"))
-               {
-                       document.listconnections.op.value="Delete";
-                       document.listconnections.connname.value=connectionName;
-                       document.listconnections.submit();
-               }
-       }
-
-       //-->
-       </script>
-
-</head>
-
-<body class="standardbody">
-
-    <table class="page">
-      <tr><td colspan="2" class="banner"><jsp:include page="banner.jsp" 
flush="true"/></td></tr>
-      <tr><td class="navigation"><jsp:include page="navigation.jsp" 
flush="true"/></td>
-       <td class="window">
-       <p 
class="windowtitle"><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listauthorities.ListOfAuthorityConnections")%></p>
-       <form class="standardform" name="listconnections" action="execute.jsp" 
method="POST">
-               <input type="hidden" name="op" value="Continue"/>
-               <input type="hidden" name="type" value="authority"/>
-               <input type="hidden" name="connname" value=""/>
-
-<%
-    try
-    {
-       // Get the authority connection manager handle
-       IAuthorityConnectionManager manager = 
AuthorityConnectionManagerFactory.make(threadContext);
-       IAuthorityConnectorManager connectorManager = 
AuthorityConnectorManagerFactory.make(threadContext);
-       IAuthorityConnection[] connections = manager.getAllConnections();
-%>
-               <table class="datatable">
-                       <tr>
-                               <td class="separator" colspan="5"><hr/></td>
-                       </tr>
-                       <tr class="headerrow">
-                               <td class="columnheader"></td><td 
class="columnheader"><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listauthorities.Name")%></td><td
 
class="columnheader"><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listauthorities.Description")%></td><td
 
class="columnheader"><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listauthorities.AuthorityType")%></td>
-                               <td 
class="columnheader"><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listauthorities.Max")%></td>
-                       </tr>
-<%
-       int i = 0;
-       while (i < connections.length)
-       {
-               IAuthorityConnection connection = connections[i++];
-
-               String name = connection.getName();
-               String description = connection.getDescription();
-               if (description == null)
-                       description = "";
-               String className = connection.getClassName();
-               int maxCount = connection.getMaxConnections();
-               String connectorName = 
connectorManager.getDescription(className);
-               if (connectorName == null)
-                       connectorName = className + "(uninstalled)";
-
-%>
-               <tr <%="class=\""+((i%2==0)?"evendatarow":"odddatarow")+"\""%>>
-                       <td class="columncell">
-                               <nobr>
-                                       <a 
href='<%="viewauthority.jsp?connname="+org.apache.manifoldcf.core.util.URLEncoder.encode(name)%>'
 alt='<%="View 
"+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listauthorities.View")%></a>
-                                       <a 
href='<%="editauthority.jsp?connname="+org.apache.manifoldcf.core.util.URLEncoder.encode(name)%>'
 
alt='<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"listauthorities.Edit")+"
 
"+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listauthorities.Edit")%></a>
-                                       <a href="javascript:void()" 
onclick='<%="javascript:Delete(\""+org.apache.manifoldcf.ui.util.Encoder.attributeJavascriptEscape(name)+"\")"%>'
 
alt='<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"listauthorities.Delete")+"
 
"+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listauthorities.Delete")%></a>
-                               </nobr>
-                       </td>
-                       <td 
class="columncell"><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(name)%></td>
-                       <td 
class="columncell"><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(description)%></td>
-                       <td 
class="columncell"><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(connectorName)%></td>
-                       <td 
class="columncell"><%=Integer.toString(maxCount)%></td>
-               </tr>
-<%
-       }
-%>
-                       <tr>
-                               <td class="separator" colspan="5"><hr/></td>
-                       </tr>
-                       <tr><td class="message" colspan="5"><a 
href="editauthority.jsp" 
alt="<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"listauthorities.AddNewConnection")%>"><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listauthorities.AddaNewConnection")%></a></td></tr>
-               </table>
-
-<%
-    }
-    catch (ManifoldCFException e)
-    {
-       e.printStackTrace();
-       variableContext.setParameter("text",e.getMessage());
-       variableContext.setParameter("target","index.jsp");
-%>
-       <jsp:forward page="error.jsp"/>
-<%
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+%>
+
+<script type="text/javascript">
+  <!--
+  
$.ManifoldCF.setTitle('<%=Messages.getBodyString(pageContext.getRequest().getLocale(),
 "listauthorities.ApacheManifoldCFListAuthorities")%>',
+      '<%=Messages.getBodyString(pageContext.getRequest().getLocale(), 
"listauthorities.ListOfAuthorityConnections")%>',
+      'authorities'
+  );
+
+  function Delete(connectionName) {
+    if 
(confirm("<%=Messages.getBodyJavascriptString(pageContext.getRequest().getLocale(),"listauthorities.DeleteAuthority")%>
 '" + connectionName + "'?")) {
+      document.listconnections.op.value = "Delete";
+      document.listconnections.connname.value = connectionName;
+      document.listconnections.submit();
     }
-%>
-           </form>
-       </td>
-      </tr>
-    </table>
+  }
+
+  //-->
+</script>
 
-</body>
 
-</html>
+<div class="row">
+  <div class="col-md-12">
+    <div class="box box-primary">
+      <form class="standardform" name="listconnections" action="execute.jsp" 
method="POST">
+        <input type="hidden" name="op" value="Continue"/>
+        <input type="hidden" name="type" value="authority"/>
+        <input type="hidden" name="connname" value=""/>
+
+        <div class="box-body">
+          <%
+            try {
+              // Get the authority connection manager handle
+              IAuthorityConnectionManager manager = 
AuthorityConnectionManagerFactory.make(threadContext);
+              IAuthorityConnectorManager connectorManager = 
AuthorityConnectorManagerFactory.make(threadContext);
+              IAuthorityConnection[] connections = manager.getAllConnections();
+          %>
+          <table class="table table-bordered">
+            <tr>
+              <th>Action</th>
+              
<th><%=Messages.getBodyString(pageContext.getRequest().getLocale(), 
"listauthorities.Name")%>
+              </th>
+              
<th><%=Messages.getBodyString(pageContext.getRequest().getLocale(), 
"listauthorities.Description")%>
+              </th>
+              
<th><%=Messages.getBodyString(pageContext.getRequest().getLocale(), 
"listauthorities.AuthorityType")%>
+              </th>
+              
<th><%=Messages.getBodyString(pageContext.getRequest().getLocale(), 
"listauthorities.Max")%>
+              </th>
+            </tr>
+            <%
+              int i = 0;
+              while (i < connections.length) {
+                IAuthorityConnection connection = connections[i++];
+
+                String name = connection.getName();
+                String description = connection.getDescription();
+                if (description == null)
+                  description = "";
+                String className = connection.getClassName();
+                int maxCount = connection.getMaxConnections();
+                String connectorName = 
connectorManager.getDescription(className);
+                if (connectorName == null)
+                  connectorName = className + "(uninstalled)";
+
+            %>
+            <tr>
+              <td>
+                <div class="btn-group">
+                  <a 
href='<%="viewauthority.jsp?connname="+org.apache.manifoldcf.core.util.URLEncoder.encode(name)%>'
+                     title='<%="View 
"+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'
+                     class="link btn btn-success btn-xs" role="button" 
data-toggle="tooltip">
+                    <span class="fa fa-eye" aria-hidden="true"></span>
+                  </a>
+                  <a 
href='<%="editauthority.jsp?connname="+org.apache.manifoldcf.core.util.URLEncoder.encode(name)%>'
+                     
title='<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"listauthorities.Edit")+"
 "+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'
+                     class="link btn btn-primary btn-xs" role="button" 
data-toggle="tooltip">
+                    <span class="fa fa-pencil-square-o" 
aria-hidden="true"></span>
+                  </a>
+                  <a href="javascript:void()"
+                     
onclick='<%="javascript:Delete(\""+org.apache.manifoldcf.ui.util.Encoder.attributeJavascriptEscape(name)+"\")"%>'
+                     
title='<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"listauthorities.Delete")+"
 "+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'
+                     class="btn btn-danger btn-xs" role="button" 
data-toggle="tooltip">
+                    <span class="fa fa-trash" aria-hidden="true"></span>
+                  </a>
+                </div>
+              </td>
+              <td><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(name)%>
+              </td>
+              
<td><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(description)%>
+              </td>
+              
<td><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(connectorName)%>
+              </td>
+              <td><%=Integer.toString(maxCount)%>
+              </td>
+            </tr>
+            <%
+              }
+            %>
+          </table>
+        </div>
+        <div class="box-footer clearfix">
+          <div class="btn-group">
+            <a href="editauthority.jsp"
+               
alt="<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"listauthorities.AddNewConnection")%>"
+               class="link btn btn-primary" role="button">
+              <span class="fa fa-plus-circle" aria-hidden="true"></span>
+              <%=Messages.getBodyString(pageContext.getRequest().getLocale(), 
"listauthorities.AddaNewConnection")%>
+            </a>
+          </div>
+
+          <%
+          } catch (ManifoldCFException e) {
+            e.printStackTrace();
+            variableContext.setParameter("text", e.getMessage());
+            variableContext.setParameter("target", "index.jsp");
+          %>
+          <jsp:forward page="error.jsp"/>
+          <%
+            }
+          %>
+        </div>
+      </form>
+    </div>
+  </div>
+</div>
\ No newline at end of file

Modified: 
manifoldcf/branches/CONNECTORS-1196/framework/crawler-ui/src/main/webapp/listconnections.jsp
URL: 
http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1196/framework/crawler-ui/src/main/webapp/listconnections.jsp?rev=1684303&r1=1684302&r2=1684303&view=diff
==============================================================================
--- 
manifoldcf/branches/CONNECTORS-1196/framework/crawler-ui/src/main/webapp/listconnections.jsp
 (original)
+++ 
manifoldcf/branches/CONNECTORS-1196/framework/crawler-ui/src/main/webapp/listconnections.jsp
 Tue Jun  9 01:30:36 2015
@@ -2,150 +2,150 @@
 
 <%
 
-/* $Id$ */
+  /* $Id$ */
 
 /**
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements. See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License. You may obtain a copy of the License at
-* 
-* http://www.apache.org/licenses/LICENSE-2.0
-* 
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-%>
-
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE html>
-<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
-
-<html xmlns="http://www.w3.org/1999/xhtml";>
-<head>
-       <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-       <link rel="StyleSheet" href="style.css" type="text/css" media="screen"/>
-       <title>
-               
<%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listconnections.ApacheManifoldCFListConnections")%>
-       </title>
-
-       <script type="text/javascript">
-       <!--
-
-       function Delete(connectionName)
-       {
-               if 
(confirm("<%=Messages.getBodyJavascriptString(pageContext.getRequest().getLocale(),"listconnections.DeleteConnection")%>
 '"+connectionName+"'?"))
-               {
-                       document.listconnections.op.value="Delete";
-                       document.listconnections.connname.value=connectionName;
-                       document.listconnections.submit();
-               }
-       }
-
-       //-->
-       </script>
-
-</head>
-
-<body class="standardbody">
-
-    <table class="page">
-      <tr><td colspan="2" class="banner"><jsp:include page="banner.jsp" 
flush="true"/></td></tr>
-      <tr><td class="navigation"><jsp:include page="navigation.jsp" 
flush="true"/></td>
-       <td class="window">
-       <p 
class="windowtitle"><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listconnections.ListOfRepositoryConnections")%></p>
-       <form class="standardform" name="listconnections" action="execute.jsp" 
method="POST">
-               <input type="hidden" name="op" value="Continue"/>
-               <input type="hidden" name="type" value="connection"/>
-               <input type="hidden" name="connname" value=""/>
-
-<%
-    try
-    {
-       // Get the job manager handle
-       IRepositoryConnectionManager manager = 
RepositoryConnectionManagerFactory.make(threadContext);
-       IConnectorManager connectorManager = 
ConnectorManagerFactory.make(threadContext);
-       IRepositoryConnection[] connections = manager.getAllConnections();
-%>
-               <table class="datatable">
-                       <tr>
-                               <td class="separator" colspan="6"><hr/></td>
-                       </tr>
-                       <tr class="headerrow">
-                               <td class="columnheader"></td>
-                               <td 
class="columnheader"><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listconnections.Name")%></td>
-                               <td 
class="columnheader"><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listconnections.Description")%></td>
-                               <td 
class="columnheader"><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listconnections.ConnectionType")%></td>
-                               <td 
class="columnheader"><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listconnections.AuthorityGroup")%></td>
-                               <td 
class="columnheader"><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listconnections.Max")%></td>
-                       </tr>
-<%
-       int i = 0;
-       while (i < connections.length)
-       {
-               IRepositoryConnection connection = connections[i++];
-
-               String name = connection.getName();
-               String description = connection.getDescription();
-               if (description == null)
-                       description = "";
-               String className = connection.getClassName();
-               String connectorName = 
connectorManager.getDescription(className);
-               if (connectorName == null)
-                       connectorName = className + 
Messages.getString(pageContext.getRequest().getLocale(),"listconnections.uninstalled");
-               String authorityName = connection.getACLAuthority();
-               int maxCount = connection.getMaxConnections();
-
-%>
-               <tr <%="class=\""+((i%2==0)?"evendatarow":"odddatarow")+"\""%>>
-                       <td class="columncell">
-                               <nobr>
-                                       <a 
href='<%="viewconnection.jsp?connname="+org.apache.manifoldcf.core.util.URLEncoder.encode(name)%>'
 
alt='<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"listconnections.View")+"
 
"+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listconnections.View")%></a>
-                                       <a 
href='<%="editconnection.jsp?connname="+org.apache.manifoldcf.core.util.URLEncoder.encode(name)%>'
 
alt='<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"listconnections.Edit")+"
 
"+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listconnections.Edit")%></a>
-                                       <a href="javascript:void()" 
onclick='<%="javascript:Delete(\""+org.apache.manifoldcf.ui.util.Encoder.attributeJavascriptEscape(name)+"\")"%>'
 
alt='<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"listconnections.Delete")+"
 
"+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listconnections.Delete")%></a>
-                               </nobr>
-                       </td>
-                       <td 
class="columncell"><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(name)%></td>
-                       <td 
class="columncell"><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(description)%></td>
-                       <td 
class="columncell"><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(connectorName)%></td>
-                       <td 
class="columncell"><%=((authorityName==null)?Messages.getBodyString(pageContext.getRequest().getLocale(),"listconnections.GlobalAuthority"):org.apache.manifoldcf.ui.util.Encoder.bodyEscape(authorityName))%></td>
-                       <td 
class="columncell"><%=Integer.toString(maxCount)%></td>
-               </tr>
-<%
-       }
-%>
-                       <tr>
-                               <td class="separator" colspan="6"><hr/></td>
-                       </tr>
-                       <tr><td class="message" colspan="6"><a 
href="editconnection.jsp" 
alt="<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"listconnections.AddAConnection")%>"><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listconnections.AddNewConnection")%></a></td></tr>
-               </table>
-
-<%
-    }
-    catch (ManifoldCFException e)
-    {
-       e.printStackTrace();
-       variableContext.setParameter("text",e.getMessage());
-       variableContext.setParameter("target","index.jsp");
-%>
-       <jsp:forward page="error.jsp"/>
-<%
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+%>
+<script type="text/javascript">
+  <!--
+
+  
$.ManifoldCF.setTitle('<%=Messages.getBodyString(pageContext.getRequest().getLocale(),
 "listconnections.ApacheManifoldCFListConnections")%>',
+      '<%=Messages.getBodyString(pageContext.getRequest().getLocale(), 
"listconnections.ListOfRepositoryConnections")%>',
+      'repositories'
+  );
+
+  function Delete(connectionName) {
+    if 
(confirm("<%=Messages.getBodyJavascriptString(pageContext.getRequest().getLocale(),"listconnections.DeleteConnection")%>
 '" + connectionName + "'?")) {
+      document.listconnections.op.value = "Delete";
+      document.listconnections.connname.value = connectionName;
+      $.ManifoldCF.submit(document.listconnections);
     }
-%>
-           </form>
-       </td>
-      </tr>
-    </table>
-
-</body>
+  }
 
-</html>
+  //-->
+</script>
 
-<%
-
-%>
+<div class="row">
+  <div class="col-md-12">
+    <div class="box box-primary">
+      <form class="standardform" name="listconnections" action="execute.jsp" 
method="POST">
+        <input type="hidden" name="op" value="Continue"/>
+        <input type="hidden" name="type" value="connection"/>
+        <input type="hidden" name="connname" value=""/>
+
+        <div class="box-body">
+          <%
+            try {
+              // Get the job manager handle
+              IRepositoryConnectionManager manager = 
RepositoryConnectionManagerFactory.make(threadContext);
+              IConnectorManager connectorManager = 
ConnectorManagerFactory.make(threadContext);
+              IRepositoryConnection[] connections = 
manager.getAllConnections();
+          %>
+          <table class="table table-bordered">
+            <tr>
+              <th>Action</th>
+              
<th><%=Messages.getBodyString(pageContext.getRequest().getLocale(), 
"listconnections.Name")%>
+              </th>
+              
<th><%=Messages.getBodyString(pageContext.getRequest().getLocale(), 
"listconnections.Description")%>
+              </th>
+              
<th><%=Messages.getBodyString(pageContext.getRequest().getLocale(), 
"listconnections.ConnectionType")%>
+              </th>
+              
<th><%=Messages.getBodyString(pageContext.getRequest().getLocale(), 
"listconnections.AuthorityGroup")%>
+              </th>
+              
<th><%=Messages.getBodyString(pageContext.getRequest().getLocale(), 
"listconnections.Max")%>
+              </th>
+            </tr>
+            <%
+              int i = 0;
+              while (i < connections.length) {
+                IRepositoryConnection connection = connections[i++];
+
+                String name = connection.getName();
+                String description = connection.getDescription();
+                if (description == null)
+                  description = "";
+                String className = connection.getClassName();
+                String connectorName = 
connectorManager.getDescription(className);
+                if (connectorName == null)
+                  connectorName = className + 
Messages.getString(pageContext.getRequest().getLocale(), 
"listconnections.uninstalled");
+                String authorityName = connection.getACLAuthority();
+                int maxCount = connection.getMaxConnections();
+
+            %>
+            <tr>
+              <td>
+                <div class="btn-group">
+                  <a 
href='<%="viewconnection.jsp?connname="+org.apache.manifoldcf.core.util.URLEncoder.encode(name)%>'
+                     
title='<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"listconnections.View")+"
 "+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'
+                     class="link btn btn-success btn-xs" role="button" 
data-toggle="tooltip">
+                    <span class="fa fa-eye" aria-hidden="true"></span>
+                  </a>
+                  <a 
href='<%="editconnection.jsp?connname="+org.apache.manifoldcf.core.util.URLEncoder.encode(name)%>'
+                     
title='<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"listconnections.Edit")+"
 "+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'
+                     class="link btn btn-primary btn-xs" role="button" 
data-toggle="tooltip">
+                    <span class="fa fa-pencil-square-o" 
aria-hidden="true"></span>
+                  </a>
+                  <a href="javascript:void()"
+                     
onclick='<%="javascript:Delete(\""+org.apache.manifoldcf.ui.util.Encoder.attributeJavascriptEscape(name)+"\")"%>'
+                     
title='<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"listconnections.Delete")+"
 "+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'
+                     class="btn btn-danger btn-xs" role="button" 
data-toggle="tooltip">
+                    <span class="fa fa-trash" aria-hidden="true"></span>
+                  </a>
+                </div>
+              </td>
+              <td><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(name)%>
+              </td>
+              
<td><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(description)%>
+              </td>
+              
<td><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(connectorName)%>
+              </td>
+              <td><%=((authorityName == null) ? 
Messages.getBodyString(pageContext.getRequest().getLocale(), 
"listconnections.GlobalAuthority") : 
org.apache.manifoldcf.ui.util.Encoder.bodyEscape(authorityName))%>
+              </td>
+              <td><%=Integer.toString(maxCount)%>
+              </td>
+            </tr>
+            <%
+              }
+            %>
+          </table>
+        </div>
+        <div class="box-footer clearfix">
+          <div class="btn-group">
+            <a href="editconnection.jsp"
+               
alt="<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"listconnections.AddAConnection")%>"
+               class="link btn btn-primary" role="button">
+              <span class="fa fa-plus-circle" aria-hidden="true"></span>
+              <%=Messages.getBodyString(pageContext.getRequest().getLocale(), 
"listconnections.AddNewConnection")%>
+            </a>
+          </div>
+
+          <%
+          } catch (ManifoldCFException e) {
+            e.printStackTrace();
+            variableContext.setParameter("text", e.getMessage());
+            variableContext.setParameter("target", "index.jsp");
+          %>
+          <jsp:forward page="error.jsp"/>
+          <%
+            }
+          %>
+        </div>
+      </form>
+    </div>
+  </div>
+</div>
\ No newline at end of file

Modified: 
manifoldcf/branches/CONNECTORS-1196/framework/crawler-ui/src/main/webapp/listgroups.jsp
URL: 
http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1196/framework/crawler-ui/src/main/webapp/listgroups.jsp?rev=1684303&r1=1684302&r2=1684303&view=diff
==============================================================================
--- 
manifoldcf/branches/CONNECTORS-1196/framework/crawler-ui/src/main/webapp/listgroups.jsp
 (original)
+++ 
manifoldcf/branches/CONNECTORS-1196/framework/crawler-ui/src/main/webapp/listgroups.jsp
 Tue Jun  9 01:30:36 2015
@@ -2,134 +2,129 @@
 
 <%
 
-/* $Id$ */
+  /* $Id$ */
 
 /**
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements. See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License. You may obtain a copy of the License at
-* 
-* http://www.apache.org/licenses/LICENSE-2.0
-* 
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-%>
-
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE html>
-<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
-
-<html xmlns="http://www.w3.org/1999/xhtml";>
-<head>
-       <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-       <link rel="StyleSheet" href="style.css" type="text/css" media="screen"/>
-
-       <title>
-               
<%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listgroups.ApacheManifoldCFListAuthorityGroups")%>
-       </title>
-
-       <script type="text/javascript">
-       <!--
-
-       function Delete(groupName)
-       {
-               if 
(confirm("<%=Messages.getBodyJavascriptString(pageContext.getRequest().getLocale(),"listgroups.DeleteAuthorityGroup")%>
 '"+groupName+"'?"))
-               {
-                       document.listgroups.op.value="Delete";
-                       document.listgroups.groupname.value=groupName;
-                       document.listgroups.submit();
-               }
-       }
-
-       //-->
-       </script>
-
-</head>
-
-<body class="standardbody">
-
-    <table class="page">
-      <tr><td colspan="2" class="banner"><jsp:include page="banner.jsp" 
flush="true"/></td></tr>
-      <tr><td class="navigation"><jsp:include page="navigation.jsp" 
flush="true"/></td>
-       <td class="window">
-       <p 
class="windowtitle"><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listgroups.ListOfAuthorityGroups")%></p>
-       <form class="standardform" name="listgroups" action="execute.jsp" 
method="POST">
-               <input type="hidden" name="op" value="Continue"/>
-               <input type="hidden" name="type" value="group"/>
-               <input type="hidden" name="groupname" value=""/>
-
-<%
-    try
-    {
-       // Get the authority group manager handle
-       IAuthorityGroupManager manager = 
AuthorityGroupManagerFactory.make(threadContext);
-       IAuthorityGroup[] groups = manager.getAllGroups();
-%>
-               <table class="datatable">
-                       <tr>
-                               <td class="separator" colspan="5"><hr/></td>
-                       </tr>
-                       <tr class="headerrow">
-                               <td class="columnheader"></td>
-                               <td 
class="columnheader"><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listgroups.Name")%></td>
-                               <td 
class="columnheader"><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listgroups.Description")%></td>
-                       </tr>
-<%
-       int i = 0;
-       while (i < groups.length)
-       {
-               IAuthorityGroup group = groups[i++];
-
-               String name = group.getName();
-               String description = group.getDescription();
-               if (description == null)
-                       description = "";
-
-%>
-               <tr <%="class=\""+((i%2==0)?"evendatarow":"odddatarow")+"\""%>>
-                       <td class="columncell">
-                               <nobr>
-                                       <a 
href='<%="viewgroup.jsp?groupname="+org.apache.manifoldcf.core.util.URLEncoder.encode(name)%>'
 
alt='<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"listgroups.View")+"
 
"+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listgroups.View")%></a>
-                                       <a 
href='<%="editgroup.jsp?groupname="+org.apache.manifoldcf.core.util.URLEncoder.encode(name)%>'
 
alt='<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"listgroups.Edit")+"
 
"+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listgroups.Edit")%></a>
-                                       <a href="javascript:void()" 
onclick='<%="javascript:Delete(\""+org.apache.manifoldcf.ui.util.Encoder.attributeJavascriptEscape(name)+"\")"%>'
 
alt='<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"listgroups.Delete")+"
 
"+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listgroups.Delete")%></a>
-                               </nobr>
-                       </td>
-                       <td 
class="columncell"><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(name)%></td>
-                       <td 
class="columncell"><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(description)%></td>
-               </tr>
-<%
-       }
-%>
-                       <tr>
-                               <td class="separator" colspan="5"><hr/></td>
-                       </tr>
-                       <tr><td class="message" colspan="5"><a 
href="editgroup.jsp" 
alt="<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"listgroups.AddNewGroup")%>"><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listgroups.AddaNewGroup")%></a></td></tr>
-               </table>
-
-<%
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+%>
+<script type="text/javascript">
+  <!--
+
+  
$.ManifoldCF.setTitle('<%=Messages.getBodyString(pageContext.getRequest().getLocale(),
 "listgroups.ApacheManifoldCFListAuthorityGroups")%>',
+      '<%=Messages.getBodyString(pageContext.getRequest().getLocale(), 
"listgroups.ListOfAuthorityGroups")%>',
+      'authorities'
+  );
+
+  function Delete(groupName) {
+    if 
(confirm("<%=Messages.getBodyJavascriptString(pageContext.getRequest().getLocale(),"listgroups.DeleteAuthorityGroup")%>
 '" + groupName + "'?")) {
+      document.listgroups.op.value = "Delete";
+      document.listgroups.groupname.value = groupName;
+      $.ManifoldCF.submit(document.listgroups);
     }
-    catch (ManifoldCFException e)
-    {
-       e.printStackTrace();
-       variableContext.setParameter("text",e.getMessage());
-       variableContext.setParameter("target","index.jsp");
-%>
-       <jsp:forward page="error.jsp"/>
-<%
-    }
-%>
-           </form>
-       </td>
-      </tr>
-    </table>
-
-</body>
-
-</html>
+  }
+  //-->
+</script>
+
+<div class="row">
+  <div class="col-md-12">
+    <div class="box box-primary">
+      <form class="standardform" name="listgroups" action="execute.jsp" 
method="POST">
+        <input type="hidden" name="op" value="Continue"/>
+        <input type="hidden" name="type" value="group"/>
+        <input type="hidden" name="groupname" value=""/>
+
+        <div class="box-body">
+          <%
+            try {
+              // Get the authority group manager handle
+              IAuthorityGroupManager manager = 
AuthorityGroupManagerFactory.make(threadContext);
+              IAuthorityGroup[] groups = manager.getAllGroups();
+          %>
+          <table class="table table-bordered">
+            <tr>
+              <th>Action</th>
+              
<th><%=Messages.getBodyString(pageContext.getRequest().getLocale(), 
"listgroups.Name")%>
+              </th>
+              
<th><%=Messages.getBodyString(pageContext.getRequest().getLocale(), 
"listgroups.Description")%>
+              </th>
+            </tr>
+            <%
+              int i = 0;
+              while (i < groups.length) {
+                IAuthorityGroup group = groups[i++];
+
+                String name = group.getName();
+                String description = group.getDescription();
+                if (description == null)
+                  description = "";
+
+            %>
+            <tr>
+              <td>
+                <div class="btn-group">
+                  <a 
href='<%="viewgroup.jsp?groupname="+org.apache.manifoldcf.core.util.URLEncoder.encode(name)%>'
+                     
title='<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"listgroups.View")+"
 "+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'
+                     class="link btn btn-success btn-xs" role="button" 
data-toggle="tooltip">
+                    <span class="fa fa-eye" aria-hidden="true"></span>
+                  </a>
+                  <a 
href='<%="editgroup.jsp?groupname="+org.apache.manifoldcf.core.util.URLEncoder.encode(name)%>'
+                     
title='<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"listgroups.Edit")+"
 "+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'
+                     class="link btn btn-primary btn-xs" role="button" 
data-toggle="tooltip">
+                    <span class="fa fa-pencil-square-o" 
aria-hidden="true"></span>
+                  </a>
+                  <a href="javascript:void()"
+                     
onclick='<%="javascript:Delete(\""+org.apache.manifoldcf.ui.util.Encoder.attributeJavascriptEscape(name)+"\")"%>'
+                     
title='<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"listgroups.Delete")+"
 "+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'
+                     class="btn btn-danger btn-xs" role="button" 
data-toggle="tooltip">
+                    <span class="fa fa-trash" aria-hidden="true"></span>
+                  </a>
+                </div>
+              </td>
+              <td><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(name)%>
+              </td>
+              
<td><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(description)%>
+              </td>
+            </tr>
+            <%
+              }
+            %>
+          </table>
+        </div>
+        <div class="box-footer clearfix">
+          <div class="btn-group">
+            <a href="editgroup.jsp"
+               
alt="<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"listgroups.AddNewGroup")%>"
+               class="link btn btn-primary" role="button">
+              <span class="fa fa-plus-circle" aria-hidden="true"></span>
+              <%=Messages.getBodyString(pageContext.getRequest().getLocale(), 
"listgroups.AddaNewGroup")%>
+            </a>
+          </div>
+          <%
+          } catch (ManifoldCFException e) {
+            e.printStackTrace();
+            variableContext.setParameter("text", e.getMessage());
+            variableContext.setParameter("target", "index.jsp");
+          %>
+          <jsp:forward page="error.jsp"/>
+          <%
+            }
+          %>
+        </div>
+      </form>
+    </div>
+  </div>
+</div>

Modified: 
manifoldcf/branches/CONNECTORS-1196/framework/crawler-ui/src/main/webapp/listjobs.jsp
URL: 
http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1196/framework/crawler-ui/src/main/webapp/listjobs.jsp?rev=1684303&r1=1684302&r2=1684303&view=diff
==============================================================================
--- 
manifoldcf/branches/CONNECTORS-1196/framework/crawler-ui/src/main/webapp/listjobs.jsp
 (original)
+++ 
manifoldcf/branches/CONNECTORS-1196/framework/crawler-ui/src/main/webapp/listjobs.jsp
 Tue Jun  9 01:30:36 2015
@@ -2,157 +2,157 @@
 
 <%
 
-/* $Id$ */
+  /* $Id$ */
 
 /**
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements. See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License. You may obtain a copy of the License at
-* 
-* http://www.apache.org/licenses/LICENSE-2.0
-* 
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-%>
-
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE html>
-<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
-
-<html xmlns="http://www.w3.org/1999/xhtml";>
-<head>
-       <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-       <link rel="StyleSheet" href="style.css" type="text/css" media="screen"/>
-       <title>
-               
<%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listjobs.ApacheManifoldCFListJobDescriptions")%>
-       </title>
-
-       <script type="text/javascript">
-       <!--
-
-       function Delete(jobID)
-       {
-               if (confirm("Warning: Deleting this job will remove 
all\nassociated documents from the index.\nDo you want to proceed?"))
-               {
-                       document.listjobs.op.value="Delete";
-                       document.listjobs.jobid.value=jobID;
-                       document.listjobs.submit();
-               }
-       }
-
-       //-->
-       </script>
-
-
-</head>
-
-<body class="standardbody">
-
-    <table class="page">
-      <tr><td colspan="2" class="banner"><jsp:include page="banner.jsp" 
flush="true"/></td></tr>
-      <tr><td class="navigation"><jsp:include page="navigation.jsp" 
flush="true"/></td>
-       <td class="window">
-       <p 
class="windowtitle"><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listjobs.JobList")%></p>
-       <form class="standardform" name="listjobs" action="execute.jsp" 
method="POST">
-               <input type="hidden" name="op" value="Continue"/>
-               <input type="hidden" name="type" value="job"/>
-               <input type="hidden" name="jobid" value=""/>
-
-<%
-    try
-    {
-       // Get the job manager handle
-       IJobManager manager = JobManagerFactory.make(threadContext);
-       IJobDescription[] jobs = manager.getAllJobs();
-%>
-               <table class="datatable">
-                       <tr>
-                               <td class="separator" colspan="5"><hr/></td>
-                       </tr>
-                       <tr class="headerrow">
-                               <td class="columnheader"></td>
-                               <td 
class="columnheader"><nobr><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listjobs.Name")%></nobr></td>
-                               <td 
class="columnheader"><nobr><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listjobs.OutputConnection")%></nobr></td>
-                               <td 
class="columnheader"><nobr><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listjobs.RepositoryConnection")%></nobr></td>
-                               <td 
class="columnheader"><nobr><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listjobs.ScheduleType")%></nobr></td>
-                       </tr>
-<%
-       for (int i = 0; i < jobs.length; i++)
-       {
-               IJobDescription jd = jobs[i];
-
-               StringBuilder sb = new StringBuilder();
-               for (int j = 0; j < jd.countPipelineStages(); j++)
-               {
-                       if (jd.getPipelineStageIsOutputConnection(j))
-                       {
-                               if (sb.length() > 0)
-                                       sb.append(",");
-                               sb.append(jd.getPipelineStageConnectionName(j));
-                       }
-               }
-               String outputConnectionNames = sb.toString();
-               
-               String jobType = "";
-               switch (jd.getType())
-               {
-               case IJobDescription.TYPE_CONTINUOUS:
-                       jobType = "Continuous crawl";
-                       break;
-               case IJobDescription.TYPE_SPECIFIED:
-                       jobType = "Specified time";
-                       break;
-               default:
-               }
-
-%>
-               <tr <%="class=\""+((i%2==0)?"evendatarow":"odddatarow")+"\""%>>
-                   <td class="columncell">
-                       <nobr>
-                               <a href='<%="viewjob.jsp?jobid="+jd.getID()%>' 
alt='<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"listjobs.Viewjob")+"
 
"+jd.getID()%>'><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listjobs.View")%></a>
-                               <a href='<%="editjob.jsp?jobid="+jd.getID()%>' 
alt='<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"listjobs.Editjob")+"
 
"+jd.getID()%>'><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listjobs.Edit")%></a>
-                               <a 
href='<%="javascript:Delete(\""+jd.getID()+"\")"%>' 
alt='<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"listjobs.DeleteJob")+"
 
"+jd.getID()%>'><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listjobs.Delete")%></a>
-                               <a 
href='<%="editjob.jsp?origjobid="+jd.getID()%>' 
alt='<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"listjobs.CopyJob")+"
 
"+jd.getID()%>'><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listjobs.Copy")%></a>
-                       </nobr>
-                   </td>
-                   <td 
class="columncell"><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(jd.getDescription())%></td>
-                   <td 
class="columncell"><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(outputConnectionNames)%></td>
-                   <td 
class="columncell"><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(jd.getConnectionName())%></td>
-                   <td class="columncell"><%=jobType%></td>
-               </tr>
-<%
-       }
-%>
-                       <tr>
-                               <td class="separator" colspan="5"><hr/></td>
-                       </tr>
-               <tr><td class="message" colspan="5"><a href="editjob.jsp" 
alt="<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"listjobs.Addajob")%>"><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listjobs.AddaNewJob")%></a></td></tr>
-               </table>
-
-<%
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+%>
+<script type="text/javascript">
+  <!--
+
+  
$.ManifoldCF.setTitle('<%=Messages.getBodyString(pageContext.getRequest().getLocale(),
 "listjobs.ApacheManifoldCFListJobDescriptions")%>',
+      '<%=Messages.getBodyString(pageContext.getRequest().getLocale(), 
"listjobs.JobList")%>',
+      'jobs'
+  );
+
+  function Delete(jobID) {
+    if (confirm("Warning: Deleting this job will remove all\nassociated 
documents from the index.\nDo you want to proceed?")) {
+      document.listjobs.op.value = "Delete";
+      document.listjobs.jobid.value = jobID;
+      document.listjobs.submit();
     }
-    catch (ManifoldCFException e)
-    {
-       e.printStackTrace();
-       variableContext.setParameter("text",e.getMessage());
-       variableContext.setParameter("target","index.jsp");
-%>
-       <jsp:forward page="error.jsp"/>
-<%
-    }
-%>
-           </form>
-       </td>
-      </tr>
-    </table>
+  }
 
-</body>
+  //-->
+</script>
 
-</html>
+<div class="row">
+  <div class="col-md-12">
+    <div class="box box-primary">
+      <form class="standardform" name="listjobs" action="execute.jsp" 
method="POST">
+        <input type="hidden" name="op" value="Continue"/>
+        <input type="hidden" name="type" value="job"/>
+        <input type="hidden" name="jobid" value=""/>
+
+        <div class="box-body">
+          <%
+            try {
+              // Get the job manager handle
+              IJobManager manager = JobManagerFactory.make(threadContext);
+              IJobDescription[] jobs = manager.getAllJobs();
+          %>
+          <table class="table table-bordered">
+            <tr>
+              <th>Action</th>
+              
<th><%=Messages.getBodyString(pageContext.getRequest().getLocale(), 
"listjobs.Name")%>
+              </th>
+              
<th><%=Messages.getBodyString(pageContext.getRequest().getLocale(), 
"listjobs.OutputConnection")%>
+              </th>
+              
<th><%=Messages.getBodyString(pageContext.getRequest().getLocale(), 
"listjobs.RepositoryConnection")%>
+              </th>
+              
<th><%=Messages.getBodyString(pageContext.getRequest().getLocale(), 
"listjobs.ScheduleType")%>
+              </th>
+            </tr>
+            <%
+              for (int i = 0; i < jobs.length; i++) {
+                IJobDescription jd = jobs[i];
+
+                StringBuilder sb = new StringBuilder();
+                for (int j = 0; j < jd.countPipelineStages(); j++) {
+                  if (jd.getPipelineStageIsOutputConnection(j)) {
+                    if (sb.length() > 0)
+                      sb.append(",");
+                    sb.append(jd.getPipelineStageConnectionName(j));
+                  }
+                }
+                String outputConnectionNames = sb.toString();
+
+                String jobType = "";
+                switch (jd.getType()) {
+                  case IJobDescription.TYPE_CONTINUOUS:
+                    jobType = "Continuous crawl";
+                    break;
+                  case IJobDescription.TYPE_SPECIFIED:
+                    jobType = "Specified time";
+                    break;
+                  default:
+                }
+
+            %>
+            <tr>
+              <td>
+                <div class="btn-group">
+                  <a href='<%="viewjob.jsp?jobid="+jd.getID()%>'
+                     
title='<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"listjobs.Viewjob")+"
 "+jd.getID()%>'
+                     class="link btn btn-success btn-xs" role="button" 
data-toggle="tooltip">
+                    <span class="fa fa-eye" aria-hidden="true"></span>
+                  </a>
+                  <a href='<%="editjob.jsp?jobid="+jd.getID()%>'
+                     
title='<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"listjobs.Editjob")+"
 "+jd.getID()%>'
+                     class="link btn btn-primary btn-xs" role="button" 
data-toggle="tooltip">
+                    <span class="fa fa-pencil-square-o" 
aria-hidden="true"></span>
+                  </a>
+                  <a href='<%="javascript:Delete(\""+jd.getID()+"\")"%>'
+                     
title='<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"listjobs.DeleteJob")+"
 "+jd.getID()%>'
+                     class="btn btn-danger btn-xs" role="button" 
data-toggle="tooltip">
+                    <span class="fa fa-trash" aria-hidden="true"></span>
+                  </a>
+                  <a href='<%="editjob.jsp?origjobid="+jd.getID()%>'
+                     
title='<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"listjobs.CopyJob")+"
 "+jd.getID()%>'
+                     class="link btn btn-primary btn-xs" role="button" 
data-toggle="tooltip">
+                    <span class="fa fa-clipboard" aria-hidden="true"></span>
+                  </a>
+                </div>
+              </td>
+              
<td><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(jd.getDescription())%>
+              </td>
+              
<td><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(outputConnectionNames)%>
+              </td>
+              
<td><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(jd.getConnectionName())%>
+              </td>
+              <td><%=jobType%>
+              </td>
+            </tr>
+            <%
+              }
+            %>
+          </table>
+        </div>
+        <div class="box-footer clearfix">
+          <div class="btn-group">
+            <a href="editjob.jsp" 
alt="<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"listjobs.Addajob")%>"
+               class="link btn btn-primary" role="button">
+              <span class="fa fa-plus-circle" aria-hidden="true"></span>
+              <%=Messages.getBodyString(pageContext.getRequest().getLocale(), 
"listjobs.AddaNewJob")%>
+            </a>
+          </div>
+
+          <%
+          } catch (ManifoldCFException e) {
+            e.printStackTrace();
+            variableContext.setParameter("text", e.getMessage());
+            variableContext.setParameter("target", "index.jsp");
+          %>
+          <jsp:forward page="error.jsp"/>
+          <%
+            }
+          %>
+        </div>
+      </form>
+    </div>
+  </div>
+</div>
\ No newline at end of file

Modified: 
manifoldcf/branches/CONNECTORS-1196/framework/crawler-ui/src/main/webapp/listmappers.jsp
URL: 
http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1196/framework/crawler-ui/src/main/webapp/listmappers.jsp?rev=1684303&r1=1684302&r2=1684303&view=diff
==============================================================================
--- 
manifoldcf/branches/CONNECTORS-1196/framework/crawler-ui/src/main/webapp/listmappers.jsp
 (original)
+++ 
manifoldcf/branches/CONNECTORS-1196/framework/crawler-ui/src/main/webapp/listmappers.jsp
 Tue Jun  9 01:30:36 2015
@@ -2,144 +2,142 @@
 
 <%
 
-/* $Id$ */
+  /* $Id$ */
 
 /**
-* Licensed to the Apache Software Foundation (ASF) under one or more
-* contributor license agreements. See the NOTICE file distributed with
-* this work for additional information regarding copyright ownership.
-* The ASF licenses this file to You under the Apache License, Version 2.0
-* (the "License"); you may not use this file except in compliance with
-* the License. You may obtain a copy of the License at
-* 
-* http://www.apache.org/licenses/LICENSE-2.0
-* 
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-%>
-
-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE html>
-<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
-
-<html xmlns="http://www.w3.org/1999/xhtml";>
-<head>
-       <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-       <link rel="StyleSheet" href="style.css" type="text/css" media="screen"/>
-
-       <title>
-               
<%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listmappers.ApacheManifoldCFListMappers")%>
-       </title>
-
-       <script type="text/javascript">
-       <!--
-
-       function Delete(connectionName)
-       {
-               if 
(confirm("<%=Messages.getBodyJavascriptString(pageContext.getRequest().getLocale(),"listmappers.DeleteMapper")%>
 '"+connectionName+"'?"))
-               {
-                       document.listconnections.op.value="Delete";
-                       document.listconnections.connname.value=connectionName;
-                       document.listconnections.submit();
-               }
-       }
-
-       //-->
-       </script>
-
-</head>
-
-<body class="standardbody">
-
-    <table class="page">
-      <tr><td colspan="2" class="banner"><jsp:include page="banner.jsp" 
flush="true"/></td></tr>
-      <tr><td class="navigation"><jsp:include page="navigation.jsp" 
flush="true"/></td>
-       <td class="window">
-       <p 
class="windowtitle"><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listmappers.ListOfMappingConnections")%></p>
-       <form class="standardform" name="listconnections" action="execute.jsp" 
method="POST">
-               <input type="hidden" name="op" value="Continue"/>
-               <input type="hidden" name="type" value="mapper"/>
-               <input type="hidden" name="connname" value=""/>
-
-<%
-    try
-    {
-       // Get the mapping connection manager handle
-       IMappingConnectionManager manager = 
MappingConnectionManagerFactory.make(threadContext);
-       IMappingConnectorManager connectorManager = 
MappingConnectorManagerFactory.make(threadContext);
-       IMappingConnection[] connections = manager.getAllConnections();
-%>
-               <table class="datatable">
-                       <tr>
-                               <td class="separator" colspan="5"><hr/></td>
-                       </tr>
-                       <tr class="headerrow">
-                               <td class="columnheader"></td>
-                               <td 
class="columnheader"><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listmappers.Name")%></td>
-                               <td 
class="columnheader"><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listmappers.Description")%></td>
-                               <td 
class="columnheader"><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listmappers.MapperType")%></td>
-                               <td 
class="columnheader"><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listmappers.Max")%></td>
-                       </tr>
-<%
-       int i = 0;
-       while (i < connections.length)
-       {
-               IMappingConnection connection = connections[i++];
-
-               String name = connection.getName();
-               String description = connection.getDescription();
-               if (description == null)
-                       description = "";
-               String className = connection.getClassName();
-               int maxCount = connection.getMaxConnections();
-               String connectorName = 
connectorManager.getDescription(className);
-               if (connectorName == null)
-                       connectorName = className + 
Messages.getString(pageContext.getRequest().getLocale(),"listmappers.uninstalled");
-
-%>
-               <tr <%="class=\""+((i%2==0)?"evendatarow":"odddatarow")+"\""%>>
-                       <td class="columncell">
-                               <nobr>
-                                       <a 
href='<%="viewmapper.jsp?connname="+URLEncoder.encode(name)%>' alt='<%="View 
"+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listmappers.View")%></a>
-                                       <a 
href='<%="editmapper.jsp?connname="+URLEncoder.encode(name)%>' 
alt='<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"listmappers.Edit")+"
 
"+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listmappers.Edit")%></a>
-                                       <a href="javascript:void()" 
onclick='<%="javascript:Delete(\""+org.apache.manifoldcf.ui.util.Encoder.attributeJavascriptEscape(name)+"\")"%>'
 
alt='<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"listmappers.Delete")+"
 
"+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listmappers.Delete")%></a>
-                               </nobr>
-                       </td>
-                       <td 
class="columncell"><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(name)%></td>
-                       <td 
class="columncell"><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(description)%></td>
-                       <td 
class="columncell"><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(connectorName)%></td>
-                       <td 
class="columncell"><%=Integer.toString(maxCount)%></td>
-               </tr>
-<%
-       }
-%>
-                       <tr>
-                               <td class="separator" colspan="5"><hr/></td>
-                       </tr>
-                       <tr><td class="message" colspan="5"><a 
href="editmapper.jsp" 
alt="<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"listmappers.AddNewConnection")%>"><%=Messages.getBodyString(pageContext.getRequest().getLocale(),"listmappers.AddaNewConnection")%></a></td></tr>
-               </table>
-
-<%
-    }
-    catch (ManifoldCFException e)
-    {
-       e.printStackTrace();
-       variableContext.setParameter("text",e.getMessage());
-       variableContext.setParameter("target","index.jsp");
-%>
-       <jsp:forward page="error.jsp"/>
-<%
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+%>
+<script type="text/javascript">
+  <!--
+  
$.ManifoldCF.setTitle('<%=Messages.getBodyString(pageContext.getRequest().getLocale(),
 "listmappers.ApacheManifoldCFListMappers")%>',
+      '<%=Messages.getBodyString(pageContext.getRequest().getLocale(), 
"listmappers.ListOfMappingConnections")%>',
+      'authorities'
+  );
+
+  function Delete(connectionName) {
+    if 
(confirm("<%=Messages.getBodyJavascriptString(pageContext.getRequest().getLocale(),"listmappers.DeleteMapper")%>
 '" + connectionName + "'?")) {
+      document.listconnections.op.value = "Delete";
+      document.listconnections.connname.value = connectionName;
+      document.listconnections.submit();
     }
-%>
-           </form>
-       </td>
-      </tr>
-    </table>
-
-</body>
+  }
+  //-->
+</script>
+
+<div class="row">
+  <div class="col-md-12">
+    <div class="box box-primary">
+      <form class="standardform" name="listconnections" action="execute.jsp" 
method="POST">
+        <input type="hidden" name="op" value="Continue"/>
+        <input type="hidden" name="type" value="mapper"/>
+        <input type="hidden" name="connname" value=""/>
+
+        <div class="box-body">
+          <%
+            try {
+              // Get the mapping connection manager handle
+              IMappingConnectionManager manager = 
MappingConnectionManagerFactory.make(threadContext);
+              IMappingConnectorManager connectorManager = 
MappingConnectorManagerFactory.make(threadContext);
+              IMappingConnection[] connections = manager.getAllConnections();
+          %>
+          <table class="table table-bordered">
+            <tr>
+              <th>Action</th>
+              
<th><%=Messages.getBodyString(pageContext.getRequest().getLocale(), 
"listmappers.Name")%>
+              </th>
+              
<th><%=Messages.getBodyString(pageContext.getRequest().getLocale(), 
"listmappers.Description")%>
+              </th>
+              
<th><%=Messages.getBodyString(pageContext.getRequest().getLocale(), 
"listmappers.MapperType")%>
+              </th>
+              
<th><%=Messages.getBodyString(pageContext.getRequest().getLocale(), 
"listmappers.Max")%>
+              </th>
+            </tr>
+            <%
+              int i = 0;
+              while (i < connections.length) {
+                IMappingConnection connection = connections[i++];
+
+                String name = connection.getName();
+                String description = connection.getDescription();
+                if (description == null)
+                  description = "";
+                String className = connection.getClassName();
+                int maxCount = connection.getMaxConnections();
+                String connectorName = 
connectorManager.getDescription(className);
+                if (connectorName == null)
+                  connectorName = className + 
Messages.getString(pageContext.getRequest().getLocale(), 
"listmappers.uninstalled");
+
+            %>
+            <tr>
+              <td>
+                <div class="btn-group">
+                  <a 
href='<%="viewmapper.jsp?connname="+URLEncoder.encode(name)%>'
+                     title='<%="View 
"+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'
+                     class="link btn btn-success btn-xs" role="button" 
data-toggle="tooltip">
+                    <span class="fa fa-eye" aria-hidden="true"></span>
+                  </a>
+                  <a 
href='<%="editmapper.jsp?connname="+URLEncoder.encode(name)%>'
+                     
title='<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"listmappers.Edit")+"
 "+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'
+                     class="link btn btn-primary btn-xs" role="button" 
data-toggle="tooltip">
+                    <span class="fa fa-pencil-square-o" 
aria-hidden="true"></span>
+                  </a>
+                  <a href="javascript:void()" 
onclick='<%="javascript:Delete(\""+org.apache.manifoldcf.ui.util.Encoder.attributeJavascriptEscape(name)+"\")"%>'
+                     
title='<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"listmappers.Delete")+"
 "+org.apache.manifoldcf.ui.util.Encoder.attributeEscape(name)%>'
+                     class="btn btn-danger btn-xs" role="button" 
data-toggle="tooltip">
+                    <span class="fa fa-trash" aria-hidden="true"></span>
+                  </a>
+                </div>
+              </td>
+              <td><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(name)%>
+              </td>
+              
<td><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(description)%>
+              </td>
+              
<td><%=org.apache.manifoldcf.ui.util.Encoder.bodyEscape(connectorName)%>
+              </td>
+              <td><%=Integer.toString(maxCount)%>
+              </td>
+            </tr>
+            <%
+              }
+            %>
+          </table>
+        </div>
+        <div class="box-footer clearfix">
+          <div class="btn-group">
+            <a href="editmapper.jsp" 
alt="<%=Messages.getAttributeString(pageContext.getRequest().getLocale(),"listmappers.AddNewConnection")%>"
+               class="link btn btn-primary" role="button">
+              <span class="fa fa-plus-circle" aria-hidden="true"></span>
+              <%=Messages.getBodyString(pageContext.getRequest().getLocale(), 
"listmappers.AddaNewConnection")%>
+            </a>
+          </div>
+
+          <%
+          } catch (ManifoldCFException e) {
+            e.printStackTrace();
+            variableContext.setParameter("text", e.getMessage());
+            variableContext.setParameter("target", "index.jsp");
+          %>
+          <jsp:forward page="error.jsp"/>
+          <%
+            }
+          %>
+        </div>
+      </form>
+    </div>
+  </div>
+</div>
 
-</html>


Reply via email to