* @package repo * @link https://www.zentao.net */ namespace zin; \zin\featureBar(); if(empty($branch)) { $link = helper::createLink('repo', 'ajaxSyncCommit', "repoID=$repoID"); } else { $link = helper::createLink('repo', 'ajaxSyncBranchCommit', "repoID=$repoID&branch=" . helper::safe64Encode(base64_encode($branch))); } jsVar('link', $link); jsVar('browseLink', $browseLink); jsVar('syncComplete', $lang->repo->notice->syncComplete); div ( setClass('sync-main-content'), div ( set::className('sync-content'), div ( setClass('alert light-pale flex items-center'), icon(setClass('icon icon-info-sign icon-2x alert-icon'), 'check-sign'), div ( h3($lang->repo->notice->syncing), div(setClass('sync-line')), !in_array($repo->SCM, $this->config->repo->notSyncSCM) ? p($lang->repo->notice->syncedCount, span($version, set::id('commits'))) : null ) ) ) ); render();