Merge branch 'forge' of https://bdgit.educoder.net/Hjqreturn/educoder into forge
commit
e523011736
@ -1,9 +1,13 @@
|
|||||||
json.identifier @repo.identifier
|
json.identifier @repo.identifier
|
||||||
|
json.project_id @project.id
|
||||||
|
json.project_identifier @project.identifier
|
||||||
json.praises_count @repo.project.praises_count
|
json.praises_count @repo.project.praises_count
|
||||||
json.forked_count @repo.project.forked_count
|
json.forked_count @repo.project.forked_count
|
||||||
json.watchers_count @repo.project.watchers_count
|
json.watchers_count @repo.project.watchers_count
|
||||||
json.branches_count @branches_count
|
json.branches_count @branches_count
|
||||||
json.commits_count @commits_count
|
json.commits_count @commits_count
|
||||||
json.permission render_edit_project_permission(current_user, @repo.project)
|
json.permission render_edit_project_permission(current_user, @project)
|
||||||
json.mirror_url @repo.mirror_url
|
json.mirror_url @repo.mirror_url
|
||||||
|
json.watched current_user&.watched?(@project)
|
||||||
|
json.praised current_user&.liked?(@project)
|
||||||
json.partial! 'author', locals: { user: @repo.user }
|
json.partial! 'author', locals: { user: @repo.user }
|
||||||
|
@ -0,0 +1,14 @@
|
|||||||
|
import React , { Component } from "react";
|
||||||
|
import { Link } from 'react-router-dom';
|
||||||
|
import './order.css'
|
||||||
|
class Nav extends Component{
|
||||||
|
render(){
|
||||||
|
return(
|
||||||
|
<p className="topWrapper_nav">
|
||||||
|
<Link to={``} >标签</Link>
|
||||||
|
<Link to={``}>里程</Link>
|
||||||
|
</p>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
export default Nav;
|
@ -0,0 +1,16 @@
|
|||||||
|
import React , { Component } from "react";
|
||||||
|
|
||||||
|
import Nav from './Nav';
|
||||||
|
|
||||||
|
class New extends Component{
|
||||||
|
render(){
|
||||||
|
return(
|
||||||
|
<div className="main">
|
||||||
|
<div className="topWrapper">
|
||||||
|
<Nav />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
export default New;
|
Loading…
Reference in new issue