* Adjust table cols for gitfox.
This commit is contained in:
@@ -215,7 +215,7 @@ toolbar
|
||||
set::className('last-sync-time'),
|
||||
$lang->repo->notice->lastSyncTime . (isset($lastRevision->time) ? date('m-d H:i', strtotime($lastRevision->time)) : date('m-d H:i'))
|
||||
),
|
||||
$repo->SCM != 'Gitlab' ? item(set($refreshItem)) : null,
|
||||
!in_array($repo->SCM, $config->repo->notSyncSCM) ? item(set($refreshItem)) : null,
|
||||
dropdown
|
||||
(
|
||||
set::staticMenu(true),
|
||||
@@ -265,7 +265,7 @@ jsVar('sortLink', helper::createLink('repo', 'browse', "repoID={$repoID}&recTota
|
||||
/* Disbale check all checkbox of table header */
|
||||
$config->repo->commentDtable->fieldList['id']['checkbox'] = jsRaw('(rowID) => rowID !== \'HEADER\'');
|
||||
|
||||
if($repo->SCM == 'Gitlab') unset($config->repo->commentDtable->fieldList['commit']);
|
||||
if(in_array($repo->SCM, $config->repo->notSyncSCM)) unset($config->repo->commentDtable->fieldList['commit']);
|
||||
$commentsTableData = initTableData($revisions, $config->repo->commentDtable->fieldList, $this->repo);
|
||||
|
||||
$readAllLink = $this->repo->createLink('log', "repoID=$repoID&objectID=$objectID&entry=" . $encodePath . "&revision=HEAD&type=$logType");
|
||||
@@ -293,5 +293,3 @@ sidebar
|
||||
set::showToolbarOnChecked(false)
|
||||
)
|
||||
);
|
||||
|
||||
render();
|
||||
|
||||
@@ -57,6 +57,7 @@ $config->repo->logDtable->fieldList['revision']['checkbox'] = jsRaw('(rowID) =>
|
||||
|
||||
$config->repo->logDtable->fieldList['revision']['link'] = array('module' => 'repo', 'method' => 'revision', 'params' => "repoID={$repoID}&objectID={$objectID}&revision={revision}");
|
||||
|
||||
if(in_array($repo->SCM, $config->repo->notSyncSCM)) unset($config->repo->logDtable->fieldList['commit']);
|
||||
$logs = initTableData($logs, $config->repo->logDtable->fieldList);
|
||||
|
||||
$footToolbar['items'][] = array('text' => $lang->repo->diff, 'className' => "btn primary size-sm btn-diff", 'btnType' => 'primary', 'onClick' => jsRaw('window.diffClick'));
|
||||
|
||||
Reference in New Issue
Block a user