Browse Source

Add bridge info: maintainer

Mitsukarenai 10 years ago
parent
commit
6956468b64
3 changed files with 11 additions and 4 deletions
  1. 7 1
      css/style.css
  2. 2 1
      index.php
  3. 2 2
      lib/Bridge.php

+ 7 - 1
css/style.css

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

+ 2 - 1
index.php

@@ -114,7 +114,7 @@ $formats = Format::searchInformation();
                             <?php
                                 $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 foreach( $formats as $name => $infos ): ?>
                                 <?php if( isset($infos['name']) ){ echo getHelperButtonFormat($name, $infos['name']); } ?>
@@ -132,6 +132,7 @@ $formats = Format::searchInformation();
                     <?php endforeach; ?>
                 </form>
                 <?php endif; ?>
+		<?php echo isset($bridgeInformations['maintainer']) ? '<span class="maintainer">'.$bridgeInformations['maintainer'].'</span>' : '' ?>
             </section>
             <?php endforeach; ?>
     <footer>

+ 2 - 2
lib/Bridge.php

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