diff --git a/src/forge/Head/header.scss b/src/forge/Head/header.scss
index a2c11b7a..0246658a 100644
--- a/src/forge/Head/header.scss
+++ b/src/forge/Head/header.scss
@@ -33,7 +33,7 @@
li{
height: 40px;
line-height: 40px;
- padding:0px;
+ padding:0px!important;
cursor: default;
&:hover{
background-color: #fff;
diff --git a/src/forge/Main/CoderRootCommit.js b/src/forge/Main/CoderRootCommit.js
index fc64aa01..9b349938 100644
--- a/src/forge/Main/CoderRootCommit.js
+++ b/src/forge/Main/CoderRootCommit.js
@@ -2,6 +2,7 @@ import React , { Component } from 'react';
import { Spin , Pagination } from 'antd';
import { getImageUrl } from 'educoder';
import { truncateCommitId } from '../common/util';
+import { AlignTop } from '../Component/layout';
import SelectBranch from '../Branch/Select';
import Nodata from '../Nodata';
@@ -132,10 +133,10 @@ class CoderRootCommit extends Component{
commitDatas && commitDatas.length > 0 && commitDatas.map((item,k)=>{
return(
-
- {truncateCommitId(`${item.sha}`)}
- {item.message}
-
+
+ {truncateCommitId(`${item.sha}`)}
+ {item.message}
+
{
item.id ?
diff --git a/src/forge/Merge/MergeItem.js b/src/forge/Merge/MergeItem.js
index e87fd037..74aa512b 100644
--- a/src/forge/Merge/MergeItem.js
+++ b/src/forge/Merge/MergeItem.js
@@ -43,7 +43,7 @@ class MergeItem extends Component {
};
render() {
- const { issues, project_name, project_author_name } = this.props;
+ const { issues, project_name, project_author_name , user_admin_or_member} = this.props;
const { projectsId , owner } = this.props.match.params;
const { current_user } = this.props;
const renderList = () => {
@@ -177,7 +177,7 @@ class MergeItem extends Component {
) : (
""
)}
- {current_user && current_user.login ? (
+ {user_admin_or_member ? (
)
}
- mergeabledDesc=(base,head)=>{
+ mergeabledDesc=(base,head,conflict_files)=>{
return(
-
- - git fetch origin
- - git checkout -b {`${base}`} origin/{`${base}`}
- - git merge {`${head}`}
-
+
+
+ - git fetch origin
+ - git checkout -b {`${base}`} origin/{`${base}`}
+ - git merge {`${head}`}
+
+ {
+ conflict_files && conflict_files.length>0 &&
+
+
如下文件有代码冲突:
+
+ {
+ conflict_files.map((i,k)=>{
+ return k>0 ? ","+i : i
+ })
+ }
+
+
+ }
+
)
}
@@ -284,7 +301,8 @@ class MessageCount extends Component {
ismesrge,
SpinFlag,
copyVisible,
- pull_request
+ pull_request,
+ conflict_files
} = this.state;
const { current_user, projectDetail } = this.props;
const menu = (
@@ -495,7 +513,7 @@ class MessageCount extends Component {
}
diff --git a/src/forge/Merge/merge.js b/src/forge/Merge/merge.js
index bcee5d0d..c0c7e5ce 100644
--- a/src/forge/Merge/merge.js
+++ b/src/forge/Merge/merge.js
@@ -155,7 +155,7 @@ class merge extends Component {
renderMenu = (array, name, id) => {
return (
-
-
this.islogin()}>
- + 新建合并请求
-
+ {
+ data && data.user_admin_or_member &&
+
this.checkOperation()}>
+ + 新建合并请求
+
+ }
@@ -402,6 +400,7 @@ class merge extends Component {
project_author_name={data.project_author_name}
{...this.props}
{...this.state}
+ user_admin_or_member={data && data.user_admin_or_member}
>
):""}
diff --git a/src/forge/Order/Detail.js b/src/forge/Order/Detail.js
index 277f5d4a..644a653d 100644
--- a/src/forge/Order/Detail.js
+++ b/src/forge/Order/Detail.js
@@ -249,7 +249,7 @@ class Detail extends Component {
添加于 {data && data.created_at}
{data && data.user_permission ? (
-
+
复制
diff --git a/src/forge/Order/Milepost.js b/src/forge/Order/Milepost.js
index e6e63991..d87bfe0b 100644
--- a/src/forge/Order/Milepost.js
+++ b/src/forge/Order/Milepost.js
@@ -153,7 +153,7 @@ class Milepost extends Component {
const { data, limit, page, openselect, closeselect, spinings } = this.state;
const { projectsId , owner } = this.props.match.params;
const menu = (
-
+
到期日从近到远
到期日从远到近
完成度从低到高
diff --git a/src/forge/Order/MilepostDetail.js b/src/forge/Order/MilepostDetail.js
index 38303e5d..30526750 100644
--- a/src/forge/Order/MilepostDetail.js
+++ b/src/forge/Order/MilepostDetail.js
@@ -162,7 +162,7 @@ class MilepostDetail extends Component {
renderMenu = (array, name, id) => {
return (
-
+
this.getOption(e, id, name)}>{name}
{
array && array.length > 0 && array.map((item, key) => {
diff --git a/src/forge/Order/OrderItem.js b/src/forge/Order/OrderItem.js
index f7589c9c..3c5e5cf8 100644
--- a/src/forge/Order/OrderItem.js
+++ b/src/forge/Order/OrderItem.js
@@ -42,10 +42,9 @@ class OrderItem extends Component {
})
}
render() {
- const { item , checkbox , mile } = this.props;
+ const { item , checkbox , mile , user_admin_or_member } = this.props;
const { projectsId , owner } = this.props.match.params;
- const { current_user } = this.props
-
+ const { current_user } = this.props;
return (
item &&
@@ -91,7 +90,7 @@ class OrderItem extends Component {
{item.journals_count}
{
- current_user && current_user.login ?
+ user_admin_or_member ?
diff --git a/src/forge/Order/order.css b/src/forge/Order/order.css
index 7a357d4f..6a0f029e 100644
--- a/src/forge/Order/order.css
+++ b/src/forge/Order/order.css
@@ -592,7 +592,7 @@ a.issue-type-button.active:hover {
}
/* 发布人、指派人数量过多时要出现滚动条 */
-.ant-dropdown-menu {
+.ant-dropdown-menu.orderCondition {
max-height: 350px;
overflow-y: auto;
}
diff --git a/src/forge/Order/order.js b/src/forge/Order/order.js
index 79a95bd2..48afbe52 100644
--- a/src/forge/Order/order.js
+++ b/src/forge/Order/order.js
@@ -201,7 +201,7 @@ class order extends Component {
renderMenu = (array, name, id, toGet) => {
return (
-
+
this.getOption(e, id, name, toGet)}>
{name}
@@ -347,17 +347,14 @@ class order extends Component {
this.props.showLoginDialog();
}
renderNew =()=>{
- const { projectsId , owner } = this.props.match.params;
- if (this.props.checkIfLogin()) {
+ const { data } = this.state;
+ if(data && data.user_admin_or_member){
+ const { projectsId , owner } = this.props.match.params;
return(
+ 创建易修
)
- }else{
- return(
- + 创建易修
- )
}
}
@@ -828,6 +825,7 @@ class order extends Component {
{...this.props}
{...this.state}
deletedetail={this.deletedetail}
+ user_admin_or_member={data && data.user_admin_or_member}
>
)
})}
diff --git a/src/forge/css/index.scss b/src/forge/css/index.scss
index 7f905ef5..917ebb18 100644
--- a/src/forge/css/index.scss
+++ b/src/forge/css/index.scss
@@ -87,6 +87,14 @@ ul,ol,dl{
flex-wrap: wrap;
align-items: center;
}
+.commitDesc{
+ flex:1;
+ margin-left:20px;
+ font-size:16px;
+ color:#333;
+ line-height:26px;
+ word-break: break-all;
+}
.normalBox{
border-radius: 4px;