Subversion Repositories DevTools

Rev

Rev 6181 | Rev 6548 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5357 dpurdie 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'|
5
'|      build_release_log.asp
6
'|      Display the build long
7
'|
8
'=====================================================
9
%>
10
<%
11
Option explicit
12
' Good idea to set when using redirect
13
Response.Expires = 0   ' always load the page, dont store
14
%>
15
<!--#include file="common/conf.asp"-->
16
<!--#include file="common/globals.asp"-->
17
<!--#include file="common/formating.asp"-->
18
<!--#include file="common/qstr.asp"-->
19
<!--#include file="common/common_subs.asp"-->
20
<!--#include file="common/_form_window_common.asp"-->
21
<!--#include file="_action_buttons.asp"-->
6175 dpurdie 22
<!--#include file="common/common_daemon.asp"-->
5357 dpurdie 23
<!--#include file="class/classActionButtonControl.asp"-->
24
<%
25
'------------ ACCESS CONTROL ------------------
26
%>
6181 dpurdie 27
<!--#include file="_access_control_login_optional.asp"-->
5357 dpurdie 28
<!--#include file="_access_control_general.asp"-->
29
<%
30
'------------ Variable Definition -------------
31
Dim parRtagId
32
'------------ Constants Declaration -----------
33
'------------ Variable Init -------------------
34
parRtagId = Request("rtag_id")
35
objPMod.PersistInQryString("rtag_id")
36
'----------------------------------------------
37
%>
38
<html>
39
   <head>
40
        <title>Release Manager</title>
41
        <link rel="shortcut icon" href="<%=FavIcon%>"/>
42
        <meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
43
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
44
        <link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
45
        <link rel="stylesheet" href="images/navigation.css" type="text/css">
46
        <script language="JavaScript" src="images/common.js"></script>
47
        <%bJqueryDataTables = TRUE%>
48
        <!--#include file="_jquery_includes.asp"-->
49
        <script type="text/javascript" charset="utf-8">
50
        var table;
51
        var interval = null;
52
        var indefTimer = null;
53
	$(document).ready(function() {
54
		/* Init DataTables */
55
        table = $("#table1").dataTable({
56
            "processing": true,
57
            "retrieve":true,
58
            "serverSide": true,
59
            "ajaxSource": "build_release_log_json.asp",
60
<%If parRtagId <> "" Then %>
61
            "fnServerParams": function ( aoData ) {
62
                aoData.push( { "name": "rtag_id", "value": "<%=parRtagId%>" } );
63
            },
64
<%End If%>
65
            "bLengthChange":false,
66
            "sDom": "frtiS",
67
            "sScrollY": $( document ).height() 
68
<%If parRtagId <> "" Then %>
69
            - 35
70
<%End If%>
71
            - 200,
72
            "bDeferRender": true,
73
            "sScrollX": "100%",
74
            "bScrollCollapse": true,
75
            "iScrollLoadGap": 5,
76
            "oScroller": {
77
			    "loadingIndicator": true,
78
                "displayBuffer": 3,
79
		    },
80
            "order": [[ 4, "desc" ]],
81
            "info": true,
82
            "columnDefs" : [ 
83
<%If parRtagId <> "" Then %>
84
                {visible: false, targets : [0,1]},
85
<%End If%>
86
                {className : "dt-nowrap", targets: "_all" },
6538 dpurdie 87
                {orderable : false, targets : [8]},
5357 dpurdie 88
            ],
89
            // Refresh display IFF showing the head
90
            "fnInfoCallback": function( oSettings, iStart, iEnd, iMax, iTotal, sPre ) {
91
                if (iStart <= 1) {
92
                    clearTimeout(interval);
93
                    interval = setTimeout( function () { table.api().ajax.reload(); }, 30000 );
94
                    sPre += " [AutoRefesh]"
95
                } else {
96
                    clearTimeout(interval);
97
                    interval = null;
98
                }
99
                return sPre;
100
            }
101
        });
102
 
103
    //  Dynamically maintain an indication of an indefinite pause
104
    //  Update at startup and every 30 seconds
105
    function updateIndefPause()
106
    {
107
        $.get('_json_daemon.asp', {opr : 'indefPause'},function(data){
108
            if(data.indefPause > 0){
109
                $('#indefPause').show();
110
            }else{
111
                $('#indefPause').hide();
112
            }
113
        },'json');
114
    }
115
 
116
    updateIndefPause();
117
    indefTimer = setInterval( updateIndefPause,30000 );
118
	} );
119
</script>
120
 
121
      <!-- DROPDOWN MENUS -->
122
      <!--#include file="_menu_def.asp"-->
123
      <script language="JavaScript1.2" src="images/popup_menu.js"></script>
124
   </head>
5860 dpurdie 125
   <body>
5357 dpurdie 126
      <!-- HEADER -->
127
      <!--#include file="_header.asp"-->
128
      <!-- BODY ---->
5860 dpurdie 129
        <table width="100%" border="0" cellspacing="0" cellpadding="0" style="table-layout: fixed;">
130
            <tr>
6175 dpurdie 131
                <td width="146px" class="panel_bg" valign="top"><%Call BuildMenuPane%></td>
5860 dpurdie 132
                <td width="100%" valign="top" align="center"  bgcolor="#EEEFEF">
133
                    <table width="50%" border="0" cellspacing="0" cellpadding="0">
134
                        <tr>
135
                            <td width="1%"></td>
136
                            <td width="100%">
137
                                <%If parRtagId = "" Then %>
138
                                <span nowrap class="form_ttl">SYSTEM BUILD LOG</span>
139
                                <%Else%>
140
                                <span nowrap class="form_ttl">RELEASE BUILD LOG</span>
141
                                <%End If%>
142
                                <!-- Section Top Border ---->
143
                                <div class="rounded_box" style="background: white;">
144
                                    <!-- Indef Pause Warning ---->
145
                                    <div id="indefPause" style="display: none;" class="err_alert" style="font-size: small;">
146
                                        <b>WARNING: Indefinite Pause, Build Daemons are all stopped - please contact an administrator</b>
147
                                    </div>
148
                                    <!-- Section Body Header ---->
149
                                    <!-- Main Pane -->
150
                                    <table id="table1" width=100% class="stripe">
151
                                        <thead class="body_col">
152
                                            <tr>
153
                                                 <th>Project</th>
154
                                                 <th>Release</th>
155
                                                 <th>Package</th>
156
                                                 <th>Version</th>
157
                                                 <th>Time</th>
158
                                                 <th>Reason</th>
6538 dpurdie 159
                                                 <th>Duration</th>
5860 dpurdie 160
                                                 <th>Result</th>
161
                                                 <th>Tests</th>
162
                                            </tr>
163
                                        </thead>
164
                                        <tbody>
165
                                        </tbody>
166
                                    </table>
167
                                </div>
168
                            </td>
169
                        </tr>
170
                    </table>
171
                </td>
172
            </tr>
173
        </table>
174
        <!-- FOOTER -->
175
        <!--#include file="_footer.asp"-->
176
    </body>
5357 dpurdie 177
</html>