mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-10 03:11:07 +00:00
repair dir&file link bug (#2741)
This commit is contained in:
@@ -152,7 +152,12 @@ class Item extends Component {
|
||||
return (
|
||||
<tr onMouseOver={this.handleMouseOver} onMouseOut={this.handleMouseOut}>
|
||||
<td><img src={iconUrl} width="24" /></td>
|
||||
<td><Link to={linkUrl}>{item.obj_name}</Link></td>
|
||||
<td>
|
||||
{item.is_dir ?
|
||||
<Link to={linkUrl}>{item.obj_name}</Link> :
|
||||
<a href={linkUrl} target="_blank">{item.obj_name}</a>
|
||||
}
|
||||
</td>
|
||||
<td><Link to={`${siteRoot}library/${item.repo_id}/${item.repo_name}/`}>{item.repo_name}</Link></td>
|
||||
<td>{item.view_cnt}</td>
|
||||
<td>{this.renderExpriedData()}</td>
|
||||
|
Reference in New Issue
Block a user