1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-13 05:39:59 +00:00

Add publish icon (#3544)

* Add an icon to publish libraries

* use paddingLeft replace tr

* Increase th

* optimization code
This commit is contained in:
zxj96
2019-05-27 18:35:34 +08:00
committed by Daniel Pan
parent 4640cd9e99
commit 2e853b001d
2 changed files with 6 additions and 1 deletions

View File

@@ -10,6 +10,8 @@ import ModalPortal from '../modal-portal';
import WikiDeleteDialog from '../dialog/wiki-delete-dialog';
import Rename from '../rename';
import { Utils } from '../../utils/utils';
const propTypes = {
wiki: PropTypes.object.isRequired,
renameWiki: PropTypes.func.isRequired,
@@ -141,10 +143,12 @@ class WikiListItem extends Component {
render() {
let wiki = this.props.wiki;
let userProfileURL = `${siteRoot}profile/${encodeURIComponent(wiki.owner)}/`;
let fileIconUrl = Utils.getDefaultLibIconUrl(false);
return (
<Fragment>
<tr className={this.state.highlight ? 'tr-highlight' : ''} onMouseEnter={this.onMouseEnter} onMouseLeave={this.onMouseLeave}>
<td><img src={fileIconUrl} width="24" alt="" /></td>
<td className="name">
{this.state.isRenameing ?
<Rename wiki={wiki} name={wiki.name} onRenameConfirm={this.onRenameConfirm} onRenameCancel={this.onRenameCancel}/> :

View File

@@ -38,7 +38,8 @@ class WikiListView extends Component {
<table>
<thead>
<tr>
<th width="40%">{gettext('Name')}</th>
<th width="4%"></th>
<th width="36%">{gettext('Name')}</th>
<th width="25%">{gettext('Owner')}</th>
<th width="25%">{gettext('Last Update')}</th>
<th width="10%">{/* operation */}</th>