Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions source/Styles/xb3/jst/includes/nav.jst
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@ echo( '<li class="nav-gateway">');
}
echo( '<ul>');
echo( '<li class="nav-at-a-glance"><a role="menuitem" href="at_a_glance.jst" id="ataglanceloc">At a Glance</a></li>');
$file = file_exists("/tmp/factorydiag");
if($file) {
echo( '<li class="test-script"><a role="menuitem" href="testScript.jst">XER10 Test Script</a></li>');
echo( '<li class="status-script"><a role="menuitem" href="statusScript.jst">XER10 Status Report</a></li>');
}
echo( '<li class="nav-connection"><a role="menuitem" title="click to toggle sub menu" href="javascript:;" id="connloc">Connection</a>');
echo( '<ul>');
echo( '<li class="nav-connection-status"><a role="menuitem" href="connection_status.jst" id="statloc">Status</a></li>');
Expand Down
52 changes: 52 additions & 0 deletions source/Styles/xb3/jst/statusScript.jst
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?%

Check failure on line 1 in source/Styles/xb3/jst/statusScript.jst

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'Apache-2.0' license found in local file 'source/Styles/xb3/jst/statusScript.jst' (Match: rdkb/components/opensource/ccsp/webui/rdkb/components/opensource/ccsp/webui/1, 17 lines, url: https://code.rdkcentral.com/r/plugins/gitiles/rdkb/components/opensource/ccsp/webui/+archive/RDKB-RELEASE-TEST-DUNFELL-1.tar.gz, file: source/Styles/xb3/jst/syndication/device_pause_screen/device_pause_screen_comcast.js)
/*
If not stated otherwise in this file or this component's Licenses.txt file the
following copyright and licenses apply:

Copyright 2018 RDK Management

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
?>
<?% include('includes/header.jst'); ?>
<?% include('includes/utility.jst'); ?>
<div id="sub-header">
<?% include('includes/userbar.jst'); ?>
</div><!-- end #sub-header -->
<?% include('includes/nav.jst'); ?>
<script type="text/javascript">
$(document).ready(function() {
<?% if(is_device_router()) { ?>
gateway.page.init("Router > XER10 Status Report", "status-script");
<?% } else { ?>
gateway.page.init("Gateway > XER10 Status Report", "status-script");
<?% } ?>
});
</script>
<?%
$partnerId = getStr("Device.DeviceInfo.X_RDKCENTRAL-COM_Syndication.PartnerId");
$FirmwareName = getStr("Device.DeviceInfo.X_CISCO_COM_FirmwareName");
$ModelName = getStr("Device.DeviceInfo.ModelName");

?>
<div id="content">
<?% if(is_device_router()) { ?>
<h1 id="softhead_router">Router > XER10 Status Report</h1>
<?% } else { ?>
<h1 id="softhead">Gateway > XER10 Status Report</h1>
<?% } ?>

<?% exec("/bin/touch /tmp/Robert2.txt"); ?>

</div><!-- end #content -->
<?% include('includes/footer.jst'); ?>
52 changes: 52 additions & 0 deletions source/Styles/xb3/jst/testScript.jst
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?%

Check failure on line 1 in source/Styles/xb3/jst/testScript.jst

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'Apache-2.0' license found in local file 'source/Styles/xb3/jst/testScript.jst' (Match: rdkb/components/opensource/ccsp/webui/rdkb/components/opensource/ccsp/webui/1, 17 lines, url: https://code.rdkcentral.com/r/plugins/gitiles/rdkb/components/opensource/ccsp/webui/+archive/RDKB-RELEASE-TEST-DUNFELL-1.tar.gz, file: source/Styles/xb3/jst/syndication/device_pause_screen/device_pause_screen_comcast.js)
/*
If not stated otherwise in this file or this component's Licenses.txt file the
following copyright and licenses apply:

Copyright 2018 RDK Management

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
?>
<?% include('includes/header.jst'); ?>
<?% include('includes/utility.jst'); ?>
<div id="sub-header">
<?% include('includes/userbar.jst'); ?>
</div><!-- end #sub-header -->
<?% include('includes/nav.jst'); ?>
<script type="text/javascript">
$(document).ready(function() {
<?% if(is_device_router()) { ?>
gateway.page.init("Router > Test Script", "test-script");
<?% } else { ?>
gateway.page.init("Gateway > Software", "test-script");
<?% } ?>
});
</script>
<?%
$partnerId = getStr("Device.DeviceInfo.X_RDKCENTRAL-COM_Syndication.PartnerId");
$FirmwareName = getStr("Device.DeviceInfo.X_CISCO_COM_FirmwareName");
$ModelName = getStr("Device.DeviceInfo.ModelName");

?>
<div id="content">
<?% if(is_device_router()) { ?>
<h1 id="softhead_router">Router > Test Script</h1>
<?% } else { ?>
<h1 id="softhead">Gateway > Test Script</h1>
<?% } ?>

<?% exec("/bin/touch /tmp/Robert1.txt"); ?>

</div><!-- end #content -->
<?% include('includes/footer.jst'); ?>
Loading