Project

General

Profile

1
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
3
<%@ taglib prefix="s" uri="/struts-tags"%>
4
<html>
5
<head>
6
<link href="jsps/style.css" rel="stylesheet" type="text/css" media="screen" />
7
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
8
<!--<meta http-equiv="refresh" content="13" >-->
9
<title><s:text name="browseJobs.title"/></title>
10
<link href="jsps/favicon.ico" rel="shortcut icon" type="image/x-icon" />
11
</head>
12
<body class="left">
13
<div id="wrapper">
14
	<jsp:include page="menu.jsp"/>
15
	<div id="page">
16
		<div id="page-bgtop">
17
			<div id="middle">
18
                <div class="middle-b">
19
                    <div class="background">
20
                    	<div id="left">
21
                        	<div id="left_container">
22
	                             <h2 class="helpHdr">Info</h2>
23
                                 <s:text name="help.browsevalidations"/>
24
                            </div>
25
                        </div>
26
                        <div id="main">
27
                            <div id="main_container" class="clearfix">
28
                                <div id="mainmiddle" class="floatbox">
29
                                    <h1 class="title"><s:text name="browseJobs.title"/></h1>
30
                                    
31
                                    <s:if test="%{enableCuration}">
32
	                                    <s:form action="curateDB">
33
	                                    	<s:textfield key="browseJobs.deleteOlds" name="inDate" value="YYYY-MM-DD"/>
34
	                                    	<s:select name="mode" 
35
	                                    		key="browseJobs.whatToDelete"
36
 	                          					list="#{'all':'All jobs', 'compTest_only':'Compatibility Tests only', 'uncompleted_only':'Uncompleted jobs'}"
37
                                            	required="true"
38
	  					                    />
39
	                                    	<s:submit cssClass="button-default"/>
40
	                                    </s:form>
41
	                               </s:if>
42
                                    
43
                                    <div class="info">Refresh (F5) to see the progress of the latest activities.</div>
44
                                    
45
                                    <div class="entry">
46
                                        <table class="zebra" width="100%">
47
                                            <thead>
48
                                                <tr>
49
                                                    <th scope="col" style="width:12%"><s:text name="browseJobs.validationType"/></th>
50
                                                    <th scope="col" style="width:13%"><s:text name="browseJobs.jobType"/></th>
51
                                                    <th scope="col" style="width:8%"><s:text name="browseJobs.status"/></th>
52
                                                    <th scope="col" style="width:5%"><s:text name="browseJobs.score"/></th>
53
                                                    <th scope="col" style="width:15%"><s:text name="browseJobs.user"/></th>
54
                                                    <th scope="col" style="width:12%"><s:text name="browseJobs.started"/></th>
55
<%--                                                     <th scope="col"><s:text name="browseJobs.duration"/></th> --%>
56
                                                    <th scope="col" style="width:15%"><s:text name="browseJobs.repo"/></th>
57
                                                    <th scope="col" style="width:15%"><s:text name="browseJobs.guidelines"/></th>
58
                                                    <th scope="col" style="width:5%"><s:text name="browseJobs.details"/></th>
59
                                                </tr>
60
                                            </thead>
61
                                            <tbody>
62
                                                <s:iterator value="jobs" var="job">
63
  						<tr class="${property % 2 == 0 ? 'even' : 'odd'}">
64
                                                        <td ><s:property value="validationType"/></td>
65
                                                        <td ><s:property value="jobType"/></td>
66
                                                        <td class="wrapword"><s:property value="status"/></td>
67
                                                        <td class="wrapword"><s:property value="score"/></td>    
68
                                                        <td class="wrapword"><s:property value="user"/></td>
69
                                                        <td><s:property value="started"/></td>
70
<%--                                                         <td class="wrapword"><s:property value="duration"/></td> --%>
71
                                                        <td class="wrapword"><s:property value="repo"/></td>
72
                                                        <td><s:property value="guidelines"/></td>
73
                                                        <td>
74
                                                           	<s:if test="%{!#job.error.equals(\"no errors\")}">
75
                                                            	<a href='<s:url action="prepareSummary"><s:param name="jobId" value="%{#job.id}"/><s:param name="groupBy" value="'all'"/></s:url>'><s:text name="browseJobs.link2errors"/></a>
76
                                                            </s:if>	
77
                                                            <s:elseif test="%{#job.status.equals(\"finished\")}">
78
                                                            	<a href='<s:url action="prepareSummary"><s:param name="jobId" value="%{#job.id}"/><s:param name="groupBy" value="'all'"/></s:url>'><s:text name="browseJobs.summary"/></a>
79
                                                            </s:elseif>
80
                                                            <s:elseif test="%{#job.status.equals(\"finished-failed\")}">
81
                                                            	 <s:property value="error_information"/>
82
                                                            </s:elseif> 
83
                                                            <s:else>                                                                                                                        
84
                                                                <s:text name="browseJobs.resultNotYet"/>
85
                                                            </s:else>
86
                                                            <%--<a href='<s:url action="prepareJobDetails"><s:param name="jobId" value="%{#job.id}"/></s:url>'><s:text name="browseJobs.go"/></a>--%>
87
                                                        </td>
88
                                                    </tr>
89
                                                </s:iterator>
90
                                            </tbody>
91
                                        </table>
92
                                    </div>
93
								</div>
94
                            </div>
95
                        </div>
96
                    </div>
97
                </div>
98
            </div>
99
		</div>
100
		<!-- NMI This needs to be the same in all pages and the text is some properties file -->
101
        <div id="footer"> 
102
           <jsp:include page="footer.jsp"/>
103
        </div>
104
	</div>
105
</div>
106
</body>
107
</html>
(3-3/47)