Skip to content
Snippets Groups Projects

add reload button in build page

Merged Hahn Axel (hahn) requested to merge 5708-override-cache-of-branches into master
1 file
+ 10
1
Compare changes
  • Side-by-side
  • Inline
@@ -36,6 +36,7 @@ if (!array_key_exists("confirm", $aParams)) {
// ------------------------------------------------------------
$sNext = $oPrj->getNextPhase();
$aPhaseData2 = $oPrj->getPhaseInfos($sNext);
$bForceNoCache = isset($aParams['reloadBranches']) ? $aParams['reloadBranches'] : false;
$sOut.='<p>' . sprintf(t("page-build-info"), $sNext, $sNext) . '</p>';
@@ -66,7 +67,15 @@ if (!array_key_exists("confirm", $aParams)) {
<tbody>
<tr>
<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 class="">
' . $oPrj->renderRepoInfo() . '
Loading