Skip to content
Snippets Groups Projects
Commit f055b9f8 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

Merge branch '5708-override-cache-of-branches' into 'master'

add reload button in build page

See merge request !33
parents 9506dff0 fd3d3a5e
Branches
No related tags found
1 merge request!33add reload button in build page
Pipeline #869 passed
......@@ -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() . '
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment