Subversion Repositories DevTools

Rev

Rev 6874 | Rev 6877 | 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">
6579 dpurdie 44
        <link rel="stylesheet" href="images/release_manager_style.css?ver=<%=VixVerNum%>" type="text/css">
45
        <link rel="stylesheet" href="images/navigation.css?ver=<%=VixVerNum%>" type="text/css">
46
        <script language="JavaScript" src="images/common.js?ver=<%=VixVerNum%>"></script>
5357 dpurdie 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({
6579 dpurdie 56
            serverSide: true,
57
            deferRender : true,
58
            ajax : {
59
                url : "build_release_log_json.asp",
60
                type : "GET",
61
                data : function (o){
5357 dpurdie 62
<%If parRtagId <> "" Then %>
6579 dpurdie 63
                    o.rtag_id = "<%=parRtagId%>";
64
<%End If%>
65
                }
5357 dpurdie 66
            },
6579 dpurdie 67
            dom: "frtiS",
68
            scrollY: $( document ).height() 
5357 dpurdie 69
<%If parRtagId <> "" Then %>
70
            - 35
71
<%End If%>
72
            - 200,
6579 dpurdie 73
            scrollCollapse: true,
74
            scroller: {
75
			    loadingIndicator: true,
76
                displayBuffer: 3,
5357 dpurdie 77
		    },
6579 dpurdie 78
            order: [[ 4, "desc" ]],
79
            info: true,
80
            columnDefs : [ 
5357 dpurdie 81
<%If parRtagId <> "" Then %>
82
                {visible: false, targets : [0,1]},
83
<%End If%>
84
                {className : "dt-nowrap", targets: "_all" },
6538 dpurdie 85
                {orderable : false, targets : [8]},
5357 dpurdie 86
            ],
87
            // Refresh display IFF showing the head
6579 dpurdie 88
            fnInfoCallback: function( oSettings, iStart, iEnd, iMax, iTotal, sPre ) {
5357 dpurdie 89
                if (iStart <= 1) {
90
                    clearTimeout(interval);
91
                    interval = setTimeout( function () { table.api().ajax.reload(); }, 30000 );
92
                    sPre += " [AutoRefesh]"
93
                } else {
94
                    clearTimeout(interval);
95
                    interval = null;
96
                }
97
                return sPre;
98
            }
99
        });
100
 
101
    //  Dynamically maintain an indication of an indefinite pause
102
    //  Update at startup and every 30 seconds
103
    function updateIndefPause()
104
    {
105
        $.get('_json_daemon.asp', {opr : 'indefPause'},function(data){
106
            if(data.indefPause > 0){
107
                $('#indefPause').show();
108
            }else{
109
                $('#indefPause').hide();
110
            }
111
        },'json');
112
    }
113
 
114
    updateIndefPause();
115
    indefTimer = setInterval( updateIndefPause,30000 );
116
	} );
117
</script>
118
 
119
      <!-- DROPDOWN MENUS -->
120
      <!--#include file="_menu_def.asp"-->
6579 dpurdie 121
      <script language="JavaScript1.2" src="images/popup_menu.js?ver=<%=VixVerNum%>"></script>
5357 dpurdie 122
   </head>
5860 dpurdie 123
   <body>
5357 dpurdie 124
      <!-- HEADER -->
125
      <!--#include file="_header.asp"-->
126
      <!-- BODY ---->
5860 dpurdie 127
        <table width="100%" border="0" cellspacing="0" cellpadding="0" style="table-layout: fixed;">
128
            <tr>
6876 dpurdie 129
                <td width="146px" class="bg_panel" valign="top"><%Call BuildMenuPane%></td>
6548 dpurdie 130
                <td width="100%" rowspan="2" valign="top" align="center"  bgcolor="#EEEFEF">
6874 dpurdie 131
                    <div class=panel style="width:50%">
132
                        <div class=rounded_box_caption>
133
                         <%=IIf (parRtagId = "","SYSTEM BUILD LOG", "RELEASE BUILD LOG")%>
134
                        </div>
135
                        <div class="rounded_box rounded_box_pad" >
136
                                <!-- Indef Pause Warning ---->
137
                                <div id="indefPause" style="display: none;" class="err_alert" style="font-size: small;">
138
                                    <b>WARNING: Indefinite Pause, Build Daemons are all stopped - please contact an administrator</b>
5860 dpurdie 139
                                </div>
6874 dpurdie 140
                                <!-- Section Body Header ---->
141
                                <!-- Main Pane -->
142
                                <table id="table1" width=100% class="stripe">
143
                                    <thead class="body_col">
144
                                        <th>Project</th>
145
                                        <th>Release</th>
146
                                        <th>Package</th>
147
                                        <th>Version</th>
148
                                        <th>Time</th>
149
                                        <th>Reason</th>
150
                                        <th>Duration</th>
151
                                        <th>Result</th>
152
                                        <th>Tests</th>
153
                                    </thead>
154
                                    <tbody>
155
                                    </tbody>
156
                                </table>
157
                        </div>
158
                    </div>
5860 dpurdie 159
                </td>
160
            </tr>
6548 dpurdie 161
            <tr>
6876 dpurdie 162
               <td class="bg_panel" valign="bottom" align="center" height="350">
6548 dpurdie 163
                   <img src="images/img_gears.png" vspace="20" hspace="30"></td>
164
            </tr>
5860 dpurdie 165
        </table>
166
        <!-- FOOTER -->
167
        <!--#include file="_footer.asp"-->
168
    </body>
5357 dpurdie 169
</html>