Adds index hint to server info page.

This commit is contained in:
Lars Jung 2013-07-12 02:59:24 +02:00
parent 4d56f9aebf
commit 576ca69b44
4 changed files with 20 additions and 0 deletions

View file

@ -16,6 +16,22 @@ body#h5ai-info {
font-size: 0.6em;
color: #aaa;
}
.idx-file {
margin-top: 1em;
font-size: 0.6em;
display: block;
color: #aaa;
.value {
margin-left: 0.5em;
padding: 2px 4px;
.border-radius(4px);
font-family: @font-family-mono;
letter-spacing: 0.1em;
background-color: @col-widget-back;
border: @border-widget;
}
}
h1 {
font-size: 3.6em;
margin: 0;

View file

@ -17,6 +17,7 @@ modulejs.define('info', ['$'], function ($) {
$.getJSON('server/php/index.php', {action: 'get', checks: true}, function (json) {
if (json) {
$('.idx-file .value').text(json.checks['idx']);
$('.test').each(function () {
setCheckResult(this, json.checks[$(this).data('id')]);

View file

@ -22,6 +22,8 @@ html.no-js( lang="en" )
h1 {{pkg.name}}
span.build-version version {{pkg.version}}
span.build-stamp {{stamp}}
span.idx-file Index File:
span.value
h2 server supports
ul#tests

View file

@ -289,6 +289,7 @@ class App {
$du = @preg_match("/du$/", `which du`) > 0;
return array(
"idx" => $this->app_abs_href . "server/php/index.php",
"php" => $php,
"cache" => $cache,
"thumbs" => $gd,