Added a more link to the spaceapi statistics
This commit is contained in:
parent
92e37b7a8c
commit
0726fa79f3
1 changed files with 4 additions and 2 deletions
|
@ -68,11 +68,13 @@ class syntax_plugin_whoisinyourhackspace extends DokuWiki_Syntax_Plugin {
|
|||
$api = json_decode($file);
|
||||
|
||||
if ($api->state->open) {
|
||||
$renderer->doc .= '<p class="ample available">Der Krautspace ist besetzt :).</p>';
|
||||
$renderer->doc .= sprintf('<p class="ample available">%s ist besetzt :).</p>',$api->space);
|
||||
} else {
|
||||
$renderer->doc .= '<p class="ample not-available">Der Krautspace ist nicht besetzt :(.</p>';
|
||||
$renderer->doc .= sprintf('<p class="ample not-available">%s ist nicht besetzt :(.</p>',$api->space);
|
||||
}
|
||||
|
||||
$renderer->doc .= sprintf('<p><a href="http://spacestatus.bastinat0r.de/#%s">MOAH!</a></p>',strtolower($api->space));
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue