Skip to content
Snippets Groups Projects
Commit fd3d3a5e authored by hahn's avatar hahn
Browse files

add reload button in build page

parent 72ed712f
No related branches found
No related tags found
1 merge request!33add reload button in build page
...@@ -36,6 +36,7 @@ if (!array_key_exists("confirm", $aParams)) { ...@@ -36,6 +36,7 @@ if (!array_key_exists("confirm", $aParams)) {
// ------------------------------------------------------------ // ------------------------------------------------------------
$sNext = $oPrj->getNextPhase(); $sNext = $oPrj->getNextPhase();
$aPhaseData2 = $oPrj->getPhaseInfos($sNext); $aPhaseData2 = $oPrj->getPhaseInfos($sNext);
$bForceNoCache = isset($aParams['reloadBranches']) ? $aParams['reloadBranches'] : false;
$sOut.='<p>' . sprintf(t("page-build-info"), $sNext, $sNext) . '</p>'; $sOut.='<p>' . sprintf(t("page-build-info"), $sNext, $sNext) . '</p>';
...@@ -66,7 +67,15 @@ if (!array_key_exists("confirm", $aParams)) { ...@@ -66,7 +67,15 @@ if (!array_key_exists("confirm", $aParams)) {
<tbody> <tbody>
<tr> <tr>
<td class=""> <td class="">
' . $oPrj->renderSelectRemoteBranches() . ' ' . $oPrj->renderSelectRemoteBranches(false, $bForceNoCache) . '
<form action="?" method="post" enctype="multipart/form-data">
<input type="hidden" name="reloadBranches" value="1">
<input type="hidden" name="branchname" value="' . $sBranchname . '">
<fieldset>
<button type="submit" class="btn btn-default">' . $oHtml->getIcon('refresh').t("page-build-reload-branches") . '</button>
</fieldset>
</form>
</td> </td>
<td class=""> <td class="">
' . $oPrj->renderRepoInfo() . ' ' . $oPrj->renderRepoInfo() . '
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment