blob: 914c107bc7112a2b0a072854f80ec6eda99bd5ad [file] [log] [blame]
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you 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
~ Unless required by applicable law or agreed to in writing,
~ software distributed under the License is distributed on an
~ KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations
~ under the License.
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib uri="" prefix="redback" %>
<s:i18n name="localization.Continuum">
<title><s:text name=""/></title>
<script type="text/javascript">
<s:url id="outputAsyncUrl" action="aboutJSON" />
jQuery(document).ready(function($) {
var outputUrl = '<s:property value="#outputAsyncUrl" escapeHtml="false" />';
var refreshPending = false;
var $ta = $('#logOutput');
function scrollToBottom($textArea) {
var newHeight = $textArea.attr('scrollHeight');
$textArea.attr('scrollTop', newHeight);
scrollToBottom($ta); // Scroll text area to bottom on intial page load
function isScrolledToBottom($textArea) {
return $textArea.attr('scrollHeight') - $textArea.attr('clientHeight') == $textArea.attr('scrollTop')
function showLoading(loading) {
if (loading) {
} else {
setInterval(function() {
if (!refreshPending) {
refreshPending = true;
var autoScroll = isScrolledToBottom($ta);
url: outputUrl,
contentType: 'application/json;charset=utf-8',
success: function(data) {
parsed = JSON.parse(data);
var output = parsed.logOutput;
if (autoScroll) {
complete: function() {
refreshPending = false;
}, 1000);
<div id="axial" class="h3">
<h3><s:text name="about.section.title"/></h3>
<div class="axial">
<table border="1" cellspacing="2" cellpadding="3" width="100%">
<tr class="b">
<th><label class="label"><s:text name='about.version.label'/>:</label></th>
<td><s:text name="about.version.number"/></td>
<tr class="b">
<th><label class="label"><s:text name='about.buildnumber.label'/>:</label></th>
<td><s:text name="about.buildnumber"/></td>
<redback:ifAuthorized permission="continuum-manage-configuration">
<table border="1" cellspacing="2" cellpadding="3" width="100%">
<h3><s:text name="about.platform.title"/></h3>
<tr class="b">
<th><label class="label"><s:text name=''/>:</label></th>
<td><s:property value="systemProperties['java.version']"/></td>
<tr class="b">
<th><label class="label"><s:text name=''/>:</label></th>
<td><s:property value="systemProperties['java.vendor']"/></td>
<tr class="b">
<th><label class="label"><s:text name=''/>:</label></th>
<td><s:property value="systemProperties['']"/></td>
<tr class="b">
<th><label class="label"><s:text name='about.os.arch'/>:</label></th>
<td><s:property value="systemProperties['os.arch']"/></td>
<h3><s:text name="about.applog.title"/></h3>
<div id="logOutput" class="cmd-output cmd-window pre-wrap"><s:property value="logOutput" /></div>