Subversion Repositories DevTools

Rev

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