config flag "shields_prefix" to add a "build:success" shield to everything
This commit is contained in:
parent
f39a05ba59
commit
ad76f6fb7a
@ -209,7 +209,12 @@ class CProject {
|
|||||||
|
|
||||||
// Filter longdesc
|
// Filter longdesc
|
||||||
$this->longdesc = preg_replace_callback('~Written in ([^\\r\\n]+)~', function($matches) {
|
$this->longdesc = preg_replace_callback('~Written in ([^\\r\\n]+)~', function($matches) {
|
||||||
return '<html>'.mkshield('written in', $matches[1], 'blue').'</html>';
|
return (
|
||||||
|
'<html>'.
|
||||||
|
(SHIELDS_PREFIX ? mkshield('build', 'success', 'brightgreen').' ' : '').
|
||||||
|
mkshield('written in', $matches[1], 'blue').
|
||||||
|
'</html>'
|
||||||
|
);
|
||||||
}, $this->longdesc);
|
}, $this->longdesc);
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
@ -540,6 +545,7 @@ function main($args) {
|
|||||||
define('INDEX_THUMB_H', intval($config['codesite']['index_thumb_h']));
|
define('INDEX_THUMB_H', intval($config['codesite']['index_thumb_h']));
|
||||||
define('SHOW_BLURBS', !(isset($config['codesite']['blurbs']) && $config['codesite']['blurbs'] === 'off') );
|
define('SHOW_BLURBS', !(isset($config['codesite']['blurbs']) && $config['codesite']['blurbs'] === 'off') );
|
||||||
define('ARTICLE_HEADER', (isset($config['codesite']['article_header']) ? $config['codesite']['article_header'] : 'ABOUT') );
|
define('ARTICLE_HEADER', (isset($config['codesite']['article_header']) ? $config['codesite']['article_header'] : 'ABOUT') );
|
||||||
|
define('SHIELDS_PREFIX', isset($config['codesite']['shields_prefix']));
|
||||||
|
|
||||||
// Perform build tasks
|
// Perform build tasks
|
||||||
|
|
||||||
|
@ -5,6 +5,8 @@ page_thumb_h=60
|
|||||||
index_thumb_w=90
|
index_thumb_w=90
|
||||||
index_thumb_h=32
|
index_thumb_h=32
|
||||||
|
|
||||||
|
shields_prefix=true
|
||||||
|
|
||||||
; n.b. Recommend a multiple of the JPEG iDCT block size for index_thumb_h
|
; n.b. Recommend a multiple of the JPEG iDCT block size for index_thumb_h
|
||||||
|
|
||||||
[redirect]
|
[redirect]
|
||||||
|
Reference in New Issue
Block a user