<?php require 'config.php'; require 'git.php'; $repositories = getRepositories(); include "view.php";
echo "<hr id=\"{$id}\"/>\n"; } ?> <ul> <li><a href="#REPOS">Repositories</a></li> <li><a href="#FB">Feature Branches</a></li> <li><a href="#TB">Translation Branches</a></li> <li><a href="#AB">Acceptance Branches</a></li> <li><a href="#INST">Acceptance Instances (Globale)</a></li> </ul> <?php draw_sep("REPOS"); echo "## getRepositories<br />\n"; $projectsNames = getRepositories(); my_print_r_toggle("REPOS_toggle", $projectsNames); draw_sep("FB"); echo "## getFeatureBranches(projects)<br />\n"; $projects = array_keys($projectsNames); $projects_FB = getFeatureBranches($projects); my_print_r_toggle("FB_toggle", $projects_FB); // Translation Branches draw_sep("TB"); echo "## getTranslationBranches(projects)<br />\n"; $projects_TB = getTranslationBranches($projects); foreach ($projects_TB as $project_key => $project_TB) { echo "{$project_key} <br />\n"; } my_print_r_toggle("TB_toggle", $projects_TB); // Acceptance Branches
</div> </div> <!-- /navbar --> <!-- Main ================================================== --> <div id="wrap"> <div id="main"> <div class="container-fluid"> <div class="row-fluid"> <div class="span12"> <p>This page summarizes all Git feature branches (<code>feature/.*</code>) and try to give an overview of branches health.</p> <h3>Feature Branches deployed on acceptance <span class="subtitle">(status compared to each project <code>master</code> branch.)</span></h3> <?php //List all projects $projectsNames = getRepositories(); $projects = array_keys(getRepositories()); $features = getFeatureBranches($projects); $translations = getTranslationBranches($projects); ?> <table class="table table-bordered table-hover"> <thead> <tr> <th class="col-center">Branch feature/.*</th> <?php foreach ($projects as $project) { ?> <th class="col-center"><?php echo $projectsNames[$project]; ?> </th> <?php
</option> </select> <span class="help-block">Current status of the feature branch</span> </div> </div> </div> <div class="span4"> <div class="control-group"> <label class="control-label" for="branch"><strong>Git branch</strong></label> <div class="controls" id="branch"> <select name="branch"> <option value="UNSET">=== Undefined ===</option> <?php //List all projects $features = getFeatureBranches(array_keys(getRepositories())); foreach ($features as $feature => $FBProjects) { if (!empty($descriptor_array->SCM_BRANCH) && $descriptor_array->SCM_BRANCH === $feature || !in_array($feature, getFeatureBranches($features))) { ?> <option <?php if (!empty($descriptor_array->SCM_BRANCH) && $descriptor_array->SCM_BRANCH === $feature) { echo "selected"; } ?> ><?php echo $feature; ?> </option> <?php } }