Updates info.

This commit is contained in:
Lars Jung 2013-09-06 19:07:58 +02:00
parent 20c16d2a76
commit b37279d1a0
3 changed files with 55 additions and 53 deletions

View file

@ -68,31 +68,33 @@ body#h5ai-info {
margin: 0; margin: 0;
padding: 0; padding: 0;
.test-label { .test {
display: inline-block; .label {
width: 350px; display: inline-block;
} width: 350px;
.test-result { }
display: inline-block; .result {
width: 70px; display: inline-block;
text-align: right; width: 70px;
font-weight: bold; text-align: right;
color: #aaa; font-weight: bold;
color: #aaa;
&.test-passed { &.passed {
color: #5a5; color: #5a5;
}
&.failed {
color: #a55;
}
} }
&.test-failed { .info {
color: #a55; margin: 4px 0 12px 12px;
font-size: 0.7em;
color: #aaa;
width: 350px;
line-height: 1.2em;
} }
} }
.test-info {
margin: 4px 0 12px 12px;
font-size: 0.7em;
color: #aaa;
width: 350px;
line-height: 1.2em;
}
} }
#bottombar { #bottombar {

View file

@ -1,14 +1,14 @@
modulejs.define('info', ['$'], function ($) { modulejs.define('info', ['$'], function ($) {
var setCheckResult = function (id, result) { var setCheckResult = function (el, result) {
var $result = $(id).find('.test-result'); var $result = $(el).find('.result');
if (result) { if (result) {
$result.addClass('test-passed').text('yes'); $result.addClass('passed').text('yes');
} else { } else {
$result.addClass('test-failed').text('no'); $result.addClass('failed').text('no');
} }
}, },
@ -22,7 +22,7 @@ modulejs.define('info', ['$'], function ($) {
setCheckResult(this, json.checks[$(this).data('id')]); setCheckResult(this, json.checks[$(this).data('id')]);
}); });
$('.test.php .test-result').text(json.checks['phpversion']); $('.test.php .result').text(json.checks['phpversion']);
} }
}); });
}; };

View file

@ -33,53 +33,53 @@ html.no-js.browser( lang="en" )
h2 Server Details h2 Server Details
ul#tests ul#tests
li.test.php( data-id="php" ) li.test.php( data-id="php" )
span.test-label PHP version span.label PHP version
span.test-result ? span.result ?
div.test-info PHP version >= 5.2.1 div.info PHP version >= 5.2.1
li.test( data-id="cache" ) li.test( data-id="cache" )
span.test-label Cache directory span.label Cache directory
span.test-result ? span.result ?
div.test-info Web server has write access div.info Web server has write access
li.test( data-id="thumbs" ) li.test( data-id="thumbs" )
span.test-label Image thumbs span.label Image thumbs
span.test-result ? span.result ?
div.test-info PHP GD extension with JPEG support available div.info PHP GD extension with JPEG support available
li.test( data-id="exif" ) li.test( data-id="exif" )
span.test-label Use EXIF thumbs span.label Use EXIF thumbs
span.test-result ? span.result ?
div.test-info PHP EXIF extension available div.info PHP EXIF extension available
li.test( data-id="ffmpeg" ) li.test( data-id="ffmpeg" )
span.test-label Movie thumbs span.label Movie thumbs
span.test-result ? span.result ?
div.test-info div.info
| Command line program | Command line program
code ffmpeg code ffmpeg
| available | available
li.test( data-id="convert" ) li.test( data-id="convert" )
span.test-label PDF thumbs span.label PDF thumbs
span.test-result ? span.result ?
div.test-info div.info
| Command line program | Command line program
code convert code convert
| available | available
li.test( data-id="tar" ) li.test( data-id="tar" )
span.test-label Shell tar span.label Shell tar
span.test-result ? span.result ?
div.test-info div.info
| Command line program | Command line program
code tar code tar
| available | available
li.test( data-id="zip" ) li.test( data-id="zip" )
span.test-label Shell zip span.label Shell zip
span.test-result ? span.result ?
div.test-info div.info
| Command line program | Command line program
code zip code zip
| available | available
li.test( data-id="du" ) li.test( data-id="du" )
span.test-label Folder sizes span.label Folder sizes
span.test-result ? span.result ?
div.test-info div.info
| Command line program | Command line program
code du code du
| available | available