* Adjust code.

This commit is contained in:
zhouxin
2022-06-22 07:30:56 +00:00
parent a762d70878
commit 0e1dff66a8
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -47,7 +47,7 @@ class repo extends control
{
$tab = $this->app->tab;
$this->repos = $this->repo->getRepoPairs($tab, $objectID);
$this->reposGroup = $this->repo->getRepoGroup($tab, $objectID);
$this->repoGroup = $this->repo->getRepoGroup($tab, $objectID);
if($tab == 'project')
{
@@ -480,7 +480,7 @@ class repo extends control
$this->view->title = $this->lang->repo->common;
$this->view->repo = $repo;
$this->view->reposGroup = $this->reposGroup;
$this->view->repoGroup = $this->repoGroup;
$this->view->repos = $this->repos;
$this->view->revisions = $revisions;
$this->view->revision = $revision;
+1 -1
View File
@@ -26,7 +26,7 @@
<div class="table-col col-left">
<div class="list-group" id="repoList">
<ul class='tree tree-angles' data-ride='tree'>
<?php foreach($reposGroup as $groupName => $group):?>
<?php foreach($repoGroup as $groupName => $group):?>
<?php if(empty($group)) continue;?>
<li data-idx='<?php echo $groupName;?>' data-id='<?php echo $groupName;?>' class='has-list open in' style='cursor: pointer;'><i class='list-toggle icon'></i>
<div class='hide-in-search'><a class='text-muted'><?php echo $groupName;?></a><span class='label label-outline' style='margin-left:5px;'><?php echo $lang->repo->type;?></span></div>