|
|
|
@ -85,7 +85,7 @@ class Repository extends Component {
|
|
|
|
|
className=" guideBtn" >Git使用指南</a>
|
|
|
|
|
{
|
|
|
|
|
this.props.current_user && (this.props.current_user.admin ==true || (TPMRightSectionData && TPMRightSectionData.creator && TPMRightSectionData.creator.login == this.props.current_user.login)) ?
|
|
|
|
|
!this.props.secret_repository &&
|
|
|
|
|
!this.props.secret_repository_tab &&
|
|
|
|
|
<ActionBtn style="orangeLine" className="ml20" to={`/shixuns/${match.params.shixunId}/repository/add_file`}>+添加文件</ActionBtn>
|
|
|
|
|
:""
|
|
|
|
|
}
|
|
|
|
@ -158,7 +158,7 @@ class Repository extends Component {
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{this.props.secret_repository && <RepositoryCombinePath {...this.props}>
|
|
|
|
|
{this.props.secret_repository_tab && <RepositoryCombinePath {...this.props}>
|
|
|
|
|
|
|
|
|
|
</RepositoryCombinePath>}
|
|
|
|
|
|
|
|
|
|