* [task#125054, done, 1h] Add create user on gitfox repo..

This commit is contained in:
liyang
2024-08-09 13:46:42 +08:00
committed by 曹延义
parent 146444c4be
commit c4a59ffd9e
2 changed files with 22 additions and 4 deletions
+14 -3
View File
@@ -273,17 +273,28 @@ $config->repo->dtable->tag->fieldList['name']['type'] = 'title';
$config->repo->dtable->tag->fieldList['name']['name'] = 'name';
$config->repo->dtable->tag->fieldList['name']['order'] = 10;
$config->repo->dtable->tag->fieldList['message']['title'] = $lang->repo->comment;
$config->repo->dtable->tag->fieldList['message']['type'] = 'text';
$config->repo->dtable->tag->fieldList['message']['order'] = 30;
$config->repo->dtable->tag->fieldList['commitID']['title'] = $lang->repo->sourceCommit;
$config->repo->dtable->tag->fieldList['commitID']['link'] = helper::createLink('repo', 'revision', 'repoID={repoID}&objectID=0&revision={commitID}');
$config->repo->dtable->tag->fieldList['commitID']['data-app'] = $app->tab;
$config->repo->dtable->tag->fieldList['commitID']['type'] = 'text';
$config->repo->dtable->tag->fieldList['commitID']['sortType'] = true;
$config->repo->dtable->tag->fieldList['commitID']['order'] = 40;
$config->repo->dtable->tag->fieldList['committer']['title'] = $lang->repo->lastCommitter;
$config->repo->dtable->tag->fieldList['committer']['type'] = 'text';
$config->repo->dtable->tag->fieldList['committer']['sortType'] = true;
$config->repo->dtable->tag->fieldList['committer']['order'] = 20;
$config->repo->dtable->tag->fieldList['committer']['order'] = 50;
$config->repo->dtable->tag->fieldList['date']['title'] = $lang->repo->lastUpdateTime;
$config->repo->dtable->tag->fieldList['date']['title'] = $lang->repo->time;
$config->repo->dtable->tag->fieldList['date']['name'] = 'date';
$config->repo->dtable->tag->fieldList['date']['type'] = 'datetime';
$config->repo->dtable->tag->fieldList['date']['width'] = 300;
$config->repo->dtable->tag->fieldList['date']['formatDate'] = 'YYYY-MM-dd hh:mm';
$config->repo->dtable->tag->fieldList['date']['order'] = 40;
$config->repo->dtable->tag->fieldList['date']['order'] = 60;
$config->repo->dtable->branch = new stdclass();
$config->repo->dtable->branch->fieldList['name']['title'] = $lang->repo->branch;
+8 -1
View File
@@ -1819,10 +1819,17 @@ class repo extends control
{
$tag->repoID = $repoID;
$tag->tagName = urlencode(helper::safe64Encode($tag->name));
$tag->commitID = isset($tag->commit->id) ? $tag->commit->id : '';
if(isset($tag->commit->sha)) $tag->commitID = $tag->commit->sha;
$tag->commitID = substr($tag->commitID, 0, 10);
$tag->committer = isset($tag->commit->author_name) ? $tag->commit->author_name : '';
if(isset($tag->tagger->identity->name)) $tag->committer = $tag->tagger->identity->name;
if(isset($tag->commit->author->identity->name)) $tag->committer = $tag->commit->author->identity->name;
$tag->committer = zget($committers, $tag->committer);
$tag->createdBy = isset($tag->tagger->identity->name) ? zget($committers, $tag->tagger->identity->name) : '';
$tag->date = isset($tag->commit->committed_date) ? date('Y-m-d H:i:s', strtotime($tag->commit->committed_date)) : '';
if(isset($tag->tagger->when)) $tag->date = date('Y-m-d H:i:s', strtotime($tag->tagger->when));