|
|
|
@ -98,23 +98,24 @@ class RepositoryDirectories extends Component {
|
|
|
|
|
</a>
|
|
|
|
|
<span className={this.props.tpmComment===true?"color888 ml3 mr3":"ml3 mr3"}></span>
|
|
|
|
|
{ pathArray.map((item, index) => {
|
|
|
|
|
if(index<pathArray.length-1){
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<React.Fragment>
|
|
|
|
|
{ this.props.nameTypeMap[item] === 'tree' || item.indexOf('.') === -1
|
|
|
|
|
{ index===pathArray.length-1 && item.indexOf('.') === -1?<span className={"color888"}>
|
|
|
|
|
/ {item} </span>:this.props.nameTypeMap[item] === 'tree' || item.indexOf('.') === -1
|
|
|
|
|
? <a
|
|
|
|
|
onClick={() => fetchRepo(index + 1)}
|
|
|
|
|
className={this.props.tpmComment===true?"color888":"color-blue"}
|
|
|
|
|
>
|
|
|
|
|
/ {item}</a>
|
|
|
|
|
:
|
|
|
|
|
<a className={this.props.tpmComment===true?"color888":""}>
|
|
|
|
|
/ {item}</a>
|
|
|
|
|
<span className={this.props.tpmComment===true?"color888":""}>
|
|
|
|
|
/ {item}</span>
|
|
|
|
|
}
|
|
|
|
|
{index !== pathArray.length - 1 && <span className={this.props.tpmComment===true?"color888 ml3 mr3":"ml3 mr3"}></span>}
|
|
|
|
|
</React.Fragment>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
{/*{ this.props.current_user && (this.props.current_user.admin ==true || (TPMRightSectionData && TPMRightSectionData.creator && TPMRightSectionData.creator.login == this.props.current_user.login)) ?*/}
|
|
|
|
|