forked from Gitlink/forgeplus-react
组织项目列表增加私有标示
This commit is contained in:
parent
ba283d7c13
commit
3d8a910820
|
|
@ -6,8 +6,9 @@ function ListItem({item,key,OIdentifier}) {
|
||||||
return(
|
return(
|
||||||
<div className="team_project" key={key}>
|
<div className="team_project" key={key}>
|
||||||
<p className="t_p_title">
|
<p className="t_p_title">
|
||||||
<span className="flex1">
|
<span className="flex1" style={{display:"flex",alignItems:"center"}}>
|
||||||
<Link to={`/${OIdentifier}/${item.identifier}`} className="name">{item.name}</Link>
|
<Link to={`/${OIdentifier}/${item.identifier}`} className="name">{item.name}</Link>
|
||||||
|
{!item.is_public && <span className="privateTag">私有</span> }
|
||||||
{ item.forked_from_project_id && <i className="iconfont icon-fork font-18 color-orange ml8" /> }
|
{ item.forked_from_project_id && <i className="iconfont icon-fork font-18 color-orange ml8" /> }
|
||||||
{
|
{
|
||||||
item.type && item.type === 2 ?
|
item.type && item.type === 2 ?
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue