forked from Gitlink/forgeplus-react
time
This commit is contained in:
parent
d30f245d01
commit
faef6a2638
|
@ -291,17 +291,17 @@ class CoderRootDirectory extends Component{
|
|||
</a>
|
||||
),
|
||||
},{
|
||||
dataIndex:"message",
|
||||
dataIndex:"commit",
|
||||
width:"60%",
|
||||
render:(text,item)=>
|
||||
(
|
||||
item.commit && item.commit.message ? <span>{item.commit.message}</span> :""
|
||||
)
|
||||
},{
|
||||
dataIndex:"created_at",
|
||||
dataIndex:"commit",
|
||||
width:"10%",
|
||||
render:(text)=>(
|
||||
text ? <span>{Time(`${text}`)}</span> :""
|
||||
render:(text,item)=>(
|
||||
item.commit && item.commit.time_from_now ? <a title={item.commit.created_at} style={{cursor:"default",color:"#888"}}>{item.commit.time_from_now}</a> :""
|
||||
)
|
||||
}
|
||||
];
|
||||
|
|
|
@ -13,7 +13,7 @@ export default ()=>{
|
|||
& span{
|
||||
margin:0px 15px;
|
||||
color:#BBB;
|
||||
line-height:32px;
|
||||
line-height:35px;
|
||||
}
|
||||
`;
|
||||
|
||||
|
|
Loading…
Reference in New Issue