Subversion Repositories DevTools

Rev

Rev 6880 | Rev 6883 | 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
'----------------------------------------------
6879 dpurdie 37
Sub BuildLogOptions%>
38
    <fieldset class=body_rowg>
39
        <legend class="body_scol">Display Options</legend>
40
        <div><input id=onlyNew class='triggerRefresh' type=checkbox>Only New</div>
41
        <div><input id=onlyComplete class='triggerRefresh' type=checkbox>Only Complete</div>
42
    </fieldset>
6880 dpurdie 43
<%End Sub
44
'
45
'----------------------------------------------
46
'
47
Sub InsertJavaScript%>
5357 dpurdie 48
        <script type="text/javascript" charset="utf-8">
49
        var table;
50
        var interval = null;
51
        var indefTimer = null;
52
	$(document).ready(function() {
53
		/* Init DataTables */
54
        table = $("#table1").dataTable({
6579 dpurdie 55
            serverSide: true,
56
            deferRender : true,
57
            ajax : {
58
                url : "build_release_log_json.asp",
6879 dpurdie 59
                type : "POST",
6579 dpurdie 60
                data : function (o){
5357 dpurdie 61
<%If parRtagId <> "" Then %>
6579 dpurdie 62
                    o.rtag_id = "<%=parRtagId%>";
63
<%End If%>
6879 dpurdie 64
                    o.onlyNew = $('#onlyNew').is(":checked");
65
                    o.onlyComplete = $('#onlyComplete').is(":checked");
66
 
6579 dpurdie 67
                }
5357 dpurdie 68
            },
6579 dpurdie 69
            dom: "frtiS",
70
            scrollY: $( document ).height() 
5357 dpurdie 71
<%If parRtagId <> "" Then %>
72
            - 35
73
<%End If%>
74
            - 200,
6579 dpurdie 75
            scrollCollapse: true,
76
            scroller: {
77
			    loadingIndicator: true,
78
                displayBuffer: 3,
5357 dpurdie 79
		    },
6579 dpurdie 80
            order: [[ 4, "desc" ]],
81
            info: true,
82
            columnDefs : [ 
5357 dpurdie 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
6579 dpurdie 90
            fnInfoCallback: function( oSettings, iStart, iEnd, iMax, iTotal, sPre ) {
5357 dpurdie 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
 
6879 dpurdie 116
    // Force refresh when check box chnages
117
     $('.triggerRefresh').change(function() {
118
         table.api().ajax.reload();
119
    });
120
 
5357 dpurdie 121
    updateIndefPause();
122
    indefTimer = setInterval( updateIndefPause,30000 );
6879 dpurdie 123
 
124
 
5357 dpurdie 125
	} );
126
</script>
6880 dpurdie 127
<%End Sub%>
128
<html>
129
    <head>
130
        <title>Release Manager</title>
131
        <link rel="shortcut icon" href="<%=FavIcon%>"/>
132
        <meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
133
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
134
        <link rel="stylesheet" href="images/release_manager_style.css?ver=<%=VixVerNum%>" type="text/css">
135
        <link rel="stylesheet" href="images/navigation.css?ver=<%=VixVerNum%>" type="text/css">
136
        <script language="JavaScript" src="images/common.js?ver=<%=VixVerNum%>"></script>
137
        <%bJqueryDataTables = TRUE%>
138
        <!--#include file="_jquery_includes.asp"-->
139
        <!-- DROPDOWN MENUS -->
140
        <!--#include file="_menu_def.asp"-->
141
        <script language="JavaScript1.2" src="images/popup_menu.js?ver=<%=VixVerNum%>"></script>
142
        <%Call InsertJavaScript%>
143
    </head>
144
    <body>
5357 dpurdie 145
      <!-- HEADER -->
146
      <!--#include file="_header.asp"-->
147
      <!-- BODY ---->
5860 dpurdie 148
        <table width="100%" border="0" cellspacing="0" cellpadding="0" style="table-layout: fixed;">
149
            <tr>
6879 dpurdie 150
                <td width="146px" class="bg_panel" valign="top">
151
                    <%Call BuildMenuPane%>
152
                    <%Call BuildLogOptions%>
153
                </td>
6548 dpurdie 154
                <td width="100%" rowspan="2" valign="top" align="center"  bgcolor="#EEEFEF">
6882 dpurdie 155
                    <div class=panel style="width:60%">
6874 dpurdie 156
                        <div class=rounded_box_caption>
157
                         <%=IIf (parRtagId = "","SYSTEM BUILD LOG", "RELEASE BUILD LOG")%>
158
                        </div>
159
                        <div class="rounded_box rounded_box_pad" >
6879 dpurdie 160
                            <!-- Indef Pause Warning ---->
161
                            <div id="indefPause" style="display: none;" class="err_alert" style="font-size: small;">
162
                                <b>WARNING: Indefinite Pause, Build Daemons are all stopped - please contact an administrator</b>
163
                            </div>
164
                            <!-- Section Body Header ---->
165
                            <!-- Main Pane -->
166
                            <table id="table1" width=100% class="stripe">
167
                                <thead class="body_col">
168
                                    <th>Project</th>
169
                                    <th>Release</th>
170
                                    <th>Package</th>
171
                                    <th>Version</th>
172
                                    <th>Time</th>
173
                                    <th>Reason</th>
174
                                    <th>Duration</th>
175
                                    <th>Result</th>
176
                                    <th>Tests</th>
177
                                </thead>
178
                                <tbody>
179
                                </tbody>
180
                            </table>
6874 dpurdie 181
                        </div>
182
                    </div>
5860 dpurdie 183
                </td>
184
            </tr>
6548 dpurdie 185
            <tr>
6877 dpurdie 186
               <td class="bg_panel_btm" height="350">
6548 dpurdie 187
                   <img src="images/img_gears.png" vspace="20" hspace="30"></td>
188
            </tr>
5860 dpurdie 189
        </table>
190
        <!-- FOOTER -->
191
        <!--#include file="_footer.asp"-->
192
    </body>
5357 dpurdie 193
</html>