* [task#125051,done,0.1h,0h] Adjust code format.
This commit is contained in:
@@ -2000,7 +2000,7 @@ class repo extends control
|
||||
$retCommits = array();
|
||||
if(!empty($commits))
|
||||
{
|
||||
foreach ($commits as $item) array_push($retCommits, array('commitID'=>$item->revision, 'shortID'=>substr($item->revision, 0, 10), 'message'=>$item->message));
|
||||
foreach ($commits as $item) array_push($retCommits, array('commitID' => $item->revision, 'shortID' => substr($item->revision, 0, 10), 'message' => $item->message));
|
||||
}
|
||||
echo json_encode($retCommits);
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ foreach($logs as $log)
|
||||
if(!empty($log->relations[$value]))
|
||||
{
|
||||
$log->designName .= html::commonButton($lang->repo->{$value} , '', 'btn size-sm mx-2');
|
||||
foreach($log->relations[$value] as $item) $log->designName .= html::a($item->url, '#'.$item->id, '_blank');
|
||||
foreach($log->relations[$value] as $item) $log->designName .= html::a($item->url, '#' . $item->id, '_blank');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user