* Adjusting style compatibility.
This commit is contained in:
@@ -451,9 +451,9 @@ class mr extends control
|
||||
$this->view->rawMR = isset($rawMR) ? $rawMR : false;
|
||||
$this->view->product = $product;
|
||||
$this->view->repoID = $MR->repoID;
|
||||
$this->view->stories = $this->mr->getLinkList($MR->id, $product->id, 'story');
|
||||
$this->view->bugs = $this->mr->getLinkList($MR->id, $product->id, 'bug');
|
||||
$this->view->tasks = $this->mr->getLinkList($MR->id, $product->id, 'task');
|
||||
$this->view->stories = $this->mr->getLinkList($MR->id, zget($product, 'id', 0), 'story');
|
||||
$this->view->bugs = $this->mr->getLinkList($MR->id, zget($product, 'id', 0), 'bug');
|
||||
$this->view->tasks = $this->mr->getLinkList($MR->id, zget($product, 'id', 0), 'task');
|
||||
$this->view->actions = $this->loadModel('action')->getList('mr', $MRID);
|
||||
$this->view->users = $this->loadModel('user')->getPairs('noletter|noclosed');
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
.mr-linkstory-title {background-color: #e6f0ff; color: #2e7fff; padding: 12px 6px 12px;}
|
||||
#log .action-btn .caret {display: none; color: red}
|
||||
.dropmenu-btn > .text {max-width: 280px;}
|
||||
|
||||
#monacoTabs .menu-item > a {justify-content: start;}
|
||||
|
||||
+5
-1
@@ -1148,6 +1148,8 @@ class mrModel extends model
|
||||
$scm = $host->type;
|
||||
|
||||
$repo = $this->loadModel('repo')->getByID($MR->repoID);
|
||||
if(!$repo) return array();
|
||||
|
||||
$repo->gitService = $host->id;
|
||||
$repo->project = $MR->targetProject;
|
||||
$repo->password = $host->token;
|
||||
@@ -1977,8 +1979,10 @@ class mrModel extends model
|
||||
*/
|
||||
public function getMRProduct($MR)
|
||||
{
|
||||
$product = array();
|
||||
$product = new stdclass();
|
||||
$product->id = 0;
|
||||
|
||||
$productID = 0;
|
||||
if(is_object($MR) && $MR->repoID)
|
||||
{
|
||||
$productID = $this->dao->select('product')->from(TABLE_REPO)->where('id')->eq($MR->repoID)->fetch('product');
|
||||
|
||||
@@ -33,7 +33,7 @@ detailHeader
|
||||
setClass('label danger'),
|
||||
$lang->product->deleted,
|
||||
) : null,
|
||||
)
|
||||
),
|
||||
);
|
||||
|
||||
$entry = count($diffs) ? $diffs[0]->fileName : '';
|
||||
@@ -168,11 +168,11 @@ panel
|
||||
sidebar
|
||||
(
|
||||
set::side('left'),
|
||||
tree
|
||||
treeEditor
|
||||
(
|
||||
set::id('monacoTree'),
|
||||
set::canSplit(false),
|
||||
set::items($tree),
|
||||
set::canSplit(false),
|
||||
set::collapsedIcon('folder'),
|
||||
set::expandedIcon('folder-open'),
|
||||
set::normalIcon('file-text-alt'),
|
||||
|
||||
@@ -51,4 +51,7 @@
|
||||
#monacoTabs .gap-x-5 {-moz-column-gap: 0; column-gap: 0;}
|
||||
#reviewBugContainer {position: fixed; right: 0; top: 0px; width: 25%; height: 100%; background: #fff; border-left: 5px solid #F4F5F7; overflow-y: auto; z-index: 9;}
|
||||
#log .action-btn .btn {padding-left: .25rem; padding-right: .25rem;}
|
||||
.dropmenu-btn>.text {max-width: 280px;}
|
||||
.dropmenu-btn>.text {max-width: 280px;}
|
||||
|
||||
#mainMenu + #mainContent > .repo-sidebar {margin-top: 0;}
|
||||
#monacoTabs .menu-item > a, #monacoEditor .menu-item > a {justify-content: start;}
|
||||
|
||||
@@ -6,6 +6,4 @@
|
||||
.tree li.tree-item.selected{color: #438EFF !important;}
|
||||
#monacoTree{overflow: auto;}
|
||||
|
||||
#mainMenu + #mainContent > .repo-sidebar {margin-top: 0;}
|
||||
|
||||
#monacoTabs .dropdown-menu {--menu-min-width: 1rem;}
|
||||
|
||||
@@ -80,7 +80,8 @@ div(
|
||||
sidebar
|
||||
(
|
||||
set::side('left'),
|
||||
tree
|
||||
setClass('repo-sidebar canvas'),
|
||||
treeEditor
|
||||
(
|
||||
set::id('monacoTree'),
|
||||
set::items($tree),
|
||||
|
||||
@@ -91,7 +91,7 @@ div(
|
||||
helper::isAjaxRequest('modal') ? null : sidebar
|
||||
(
|
||||
set::side('left'),
|
||||
setClass('repo-sidebar'),
|
||||
setClass('repo-sidebar canvas'),
|
||||
dropmenu
|
||||
(
|
||||
setID('repoBranchDropMenu'),
|
||||
|
||||
Reference in New Issue
Block a user