Add bridge info: maintainer

This commit is contained in:
Mitsukarenai 2014-05-21 19:09:37 +02:00
parent 7bee777362
commit 6956468b64
3 changed files with 11 additions and 4 deletions

View file

@ -120,10 +120,16 @@ section {
color: #555; color: #555;
} }
.maintainer {
font-size:60%;
float:right;
color: #777;
}
.placeholder { .placeholder {
color: #aaa; color: #aaa;
} }
input, label { input, label {
font-size: 80%; font-size: 80%;
} }

View file

@ -114,7 +114,7 @@ $formats = Format::searchInformation();
<?php <?php
$idArg = 'arg-' . $bridgeReference . '-' . $anUseNum . '-' . $argName; $idArg = 'arg-' . $bridgeReference . '-' . $anUseNum . '-' . $argName;
?> ?>
<input id="<?php echo $idArg ?>" type="text" value="" placeholder="<?php echo $argDescription; ?>" name="<?php echo $argName ?>" placeholder="<?php echo $argDescription ?>" /> <input id="<?php echo $idArg ?>" type="text" value="" placeholder="<?php echo $argDescription; ?>" name="<?php echo $argName ?>" />
<?php endforeach; ?> <?php endforeach; ?>
<?php foreach( $formats as $name => $infos ): ?> <?php foreach( $formats as $name => $infos ): ?>
<?php if( isset($infos['name']) ){ echo getHelperButtonFormat($name, $infos['name']); } ?> <?php if( isset($infos['name']) ){ echo getHelperButtonFormat($name, $infos['name']); } ?>
@ -132,6 +132,7 @@ $formats = Format::searchInformation();
<?php endforeach; ?> <?php endforeach; ?>
</form> </form>
<?php endif; ?> <?php endif; ?>
<?php echo isset($bridgeInformations['maintainer']) ? '<span class="maintainer">'.$bridgeInformations['maintainer'].'</span>' : '' ?>
</section> </section>
<?php endforeach; ?> <?php endforeach; ?>
<footer> <footer>

View file

@ -137,7 +137,7 @@ class Bridge{
$listBridge = array(); $listBridge = array();
$searchCommonPattern = array('description', 'name'); $searchCommonPattern = array('maintainer', 'description', 'name');
$dirFiles = scandir($pathDirBridge); $dirFiles = scandir($pathDirBridge);
if( $dirFiles !== false ){ if( $dirFiles !== false ){
@ -184,4 +184,4 @@ class Bridge{
return $listBridge; return $listBridge;
} }
} }