JWS-121 & JWS-109 Service Status now gives an indication of the health of service...
[jabaws.git] / website / template_header.jsp
1 <?xml version="1.0" encoding="ISO-8859-1" ?>
2 <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
3 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
4 <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
5 <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
6 <%@ taglib uri="http://displaytag.sf.net" prefix="dt" %>
7
8 <!DOCTYPE html>
9 <html lang="en">
10
11 <!-- Header for BG group pages - different for each page... -->
12 <head id="top">
13     <meta http-equiv="content-type" content="text/html; charset=UTF-8">
14     <meta charset="utf-8">
15     <!--<meta http-equiv="X-UA-Compatible" content="IE=edge">-->
16     <meta name="viewport" content="width=device-width, initial-scale=1.0">
17
18     <meta name="description" content="Java Bioinformatics Analyses Web Services (JABAWS) at the Barton Group -
19                                         Bioinformatics Research Group in the Division of Computational Biology,
20                                         School of Life Sciences, University of Dundee, UK.">
21     <meta name="author" content="Fábio Madeira (v2.2)">
22
23     <title>JABAWS | Java Bioinformatics Analyses Web Services (JABAWS) | ${param.title}</title>
24
25     <!-- Header section of BG website pages - includes navbar and logos  must be used with an h2-xxxx.html file before -->
26
27     <!-- Google Analytics -->
28     <script>
29         (function(i, s, o, g, r, a, m) {
30             i['GoogleAnalyticsObject'] = r;
31             i[r] = i[r] ||
32                 function() {
33                     (i[r].q = i[r].q || []).push(arguments)
34                 }, i[r].l = 1 * new Date();
35             a = s.createElement(o), m = s.getElementsByTagName(o)[0];
36             a.async = 1;
37             a.src = g;
38             m.parentNode.insertBefore(a, m)
39         })(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
40
41         ga('create', 'UA-5356328-1', 'auto');
42         ga('send', 'pageview');
43     </script>
44     <!-- End Google Analytics -->
45
46     <link rel="shortcut icon" href="${pageContext.request.contextPath}/static/img/BG_intense2_small.ico">
47     <%--<!-- Bootstrap core CSS -->--%>
48     <link href="${pageContext.request.contextPath}/static/css/bootstrap.min.css" rel="stylesheet">
49     <link href="${pageContext.request.contextPath}/static/css/font-awesome.min.css" rel="stylesheet">
50     <%--&lt;%&ndash;<!-- Barton Group specific CSS -->&ndash;%&gt;--%>
51     <link href="${pageContext.request.contextPath}/static/css/main.css" rel="stylesheet">
52     <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.9.0/styles/default.min.css">
53     ${param.html_custom_css}
54     ${param.html_custom_js}
55
56 </head>
57 <!--/navbar and header -->
58
59
60 <body>
61 <hr />
62 <!-- BG header part -->
63 <div class="container" id="mainpage">
64     <div class="row">
65
66         <div class="col-md-2 col-xs-2 text-center">
67             <a href="http://www.compbio.dundee.ac.uk/"></br>
68                 <img src="${pageContext.request.contextPath}/static/img/BG_with_text.svg" style="width:70%;height:70%" alt="Barton Group Logo"></a>
69         </div>
70         <div class="col-md-1 col-xs-1 text-left"></div>
71         <div class="col-md-6 col-xs-6 text-center">
72             <a href="${pageContext.request.contextPath}/">
73                 <img src="${pageContext.request.contextPath}/static/img/jabaws2.2.svg" style="width:100%;height:100%" alt="Barton Group Banner"></a>
74         </div>
75         <div class="col-md-1 col-xs-1 text-left"></div>
76         <div class="col-md-2 col-xs-2 text-center">
77             <a href="http://www.dundee.ac.uk"></br>
78                 <img src="${pageContext.request.contextPath}/static/img/University_white_logo.svg" style="width:90%;height:90%" alt="University of Dundee Logo"></a>
79         </div>
80         <%--<div class="col-md-1 col-xs-1 text-left"></div>--%>
81         <!--<div class="col-md-1 col-xs-1 text-left"></div>-->
82         <!--<div class="col-md-10 col-xs-10 text-left">-->
83         <!--<img src="static/jabaws2.2_header.svg" style="width:100%;height:100%" alt="Barton Group Banner">-->
84         <!--</div>-->
85         <!--<div class="col-md-2 col-xs-2 text-left"></div>-->
86     </div>
87 </div>
88 <!--navbar region  -->
89 <div class="navbar navbar-default" role="navigation">
90     <div class="container">
91         <div class="navbar-header">
92             <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
93                 <span class="sr-only">Toggle navigation</span>
94                 <span class="icon-bar"></span>
95                 <span class="icon-bar"></span>
96                 <span class="icon-bar"></span>
97             </button>
98         </div>
99         <div class="collapse navbar-collapse">
100             <ul class="nav navbar-nav">
101                 <li>
102                     <a href="${pageContext.request.contextPath}/"><i class="fa fa-home" aria-hidden="true"></i> Home</a>
103                 </li>
104                 <li>
105                     <a href="${pageContext.request.contextPath}/getting_started.jsp" ><i class="fa fa-fighter-jet" aria-hidden="true"></i> Getting Started</a>
106                 </li>
107
108                 <li>
109                     <a href="${pageContext.request.contextPath}/download.jsp" ><i class="fa fa-download" aria-hidden="true"></i> Download</a>
110                 </li>
111
112                 <li class="dropdown">
113                     <a href="${pageContext.request.contextPath}/man_about.jsp" class="dropdown-toggle" data-toggle="dropdown">
114                         <i class="fa fa-file-text-o" aria-hidden="true"></i> Documentation<b class="caret"></b></a>
115
116                     <ul class="dropdown-menu">
117                         <li>
118                             <a href="${pageContext.request.contextPath}/docs/index.html">Table of Contents</a>
119                         </li>
120                         <li>
121                             <a href="${pageContext.request.contextPath}/docs/getting_started.html">Getting Started</a>
122                         </li>
123                         <li>
124                             <a href="${pageContext.request.contextPath}/docs/included_tools.html">Included Tools</a>
125                         </li>
126                         <li class="divider"></li>
127                        <li>
128                             <a href="${pageContext.request.contextPath}/docs/client.html">Command Line Client (CLI)</a>
129                         </li>
130                         <li>
131                             <a href="${pageContext.request.contextPath}/docs/war.html">Web Application Archive (WAR)</a>
132                         </li>
133                         <li>
134                             <a href="${pageContext.request.contextPath}/docs/va.html">Virtual Appliance (VA)</a>
135                         </li>
136                         <li class="divider"></li>
137                         <li>
138                             <a href="${pageContext.request.contextPath}/docs/advanced.html">Advanced Usage</a>
139                         </li>
140                         <li>
141                             <a href="${pageContext.request.contextPath}/docs/develop.html">For Developers</a>
142                         </li>
143                         <li class="divider"></li>
144                         <li>
145                             <a href="${pageContext.request.contextPath}/docs/changelog.html">Changelog</a>
146                         </li>
147                         <li>
148                             <a href="${pageContext.request.contextPath}/docs/stats.html">Usage Statistics</a>
149                         </li>
150                         <li class="divider"></li>
151                         <li>
152                             <a href="${pageContext.request.contextPath}/docs/full_javadoc/">Complete JavaDoc</a>
153                         </li>
154                         <li>
155                             <a href="${pageContext.request.contextPath}/docs/dm_javadoc/">Data Model JavaDoc</a>
156                         </li>
157                     </ul>
158                 </li>
159                 <li>
160                     <c:set var="status" value='${applicationScope["serviceStatusAllGood"]}' />
161                     <c:if test="${ empty status }">
162                         <a href="${pageContext.request.contextPath}/ServiceStatus" >
163                         <i class="fa fa-cogs" aria-hidden="true"></i> Service Status</a>
164                     </c:if>
165                     <c:if test="${ !empty status }">
166                         <c:if test="${status=='true'}">
167                             <a href="${pageContext.request.contextPath}/ServiceStatus" >
168                                 <i class="fa fa-heartbeat" aria-hidden="true" style="color: green"></i> Service Status</a>
169                         </c:if>
170                         <c:if test="${status=='false'}">
171                             <a href="${pageContext.request.contextPath}/ServiceStatus" >
172                                 <i class="fa fa-heartbeat" aria-hidden="true" style="color: red"></i> Service Status</a>
173                         </c:if>
174                     </c:if>
175                 </li>
176                 <li>
177                     <a href="${pageContext.request.contextPath}/PublicAnnualStat" >
178                         <i class="fa fa-bar-chart" aria-hidden="true"></i> Usage Statistics</a>
179                 </li>
180                 <!--Includes funding and contacts (v2.2)-->
181                 <li>
182                     <a href="${pageContext.request.contextPath}/about.jsp" ><i class="fa fa-info-circle" aria-hidden="true"></i> About</a>
183                 </li>
184             </ul>
185         </div><!--/.nav-collapse -->
186     </div>
187 </div>
188 <!--/navbar and header -->
189
190 <!--body -->
191 <div class="container">