mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-03 07:55:36 +00:00
improve ui (#2907)
This commit is contained in:
@@ -87,19 +87,19 @@ class RepoInfoBar extends React.Component {
|
||||
<div className={(usedRepoTags.length > 0 && readmeMarkdown) ? 'file-info-list mt-1' : 'file-info-list'}>
|
||||
{(readmeMarkdown !== null && parseInt(readmeMarkdown.size) > 1) &&
|
||||
<span className="file-info" onClick={this.toggleReadme}>
|
||||
<i className="file-flag fa fa-flag"></i>
|
||||
<span className="info-icon sf2-icon-readme"></span>
|
||||
<span className="used-tag-name">{readmeMarkdown.name}</span>
|
||||
</span>
|
||||
}
|
||||
{(readmeMarkdown !== null && parseInt(readmeMarkdown.size) < 2) &&
|
||||
<span className="file-info">
|
||||
<i className="file-flag fa fa-flag"></i>
|
||||
<span className="info-icon sf2-icon-readme"></span>
|
||||
<a className="used-tag-name" href={href} target='_blank'>{readmeMarkdown.name}</a>
|
||||
</span>
|
||||
}
|
||||
{this.props.draftCounts > 0 &&
|
||||
<span className="file-info">
|
||||
<i className="file-flag fa fa-pen"></i>
|
||||
<span className="info-icon sf2-icon-drafts"></span>
|
||||
<span className="used-tag-name">{gettext('draft')}</span>
|
||||
<span className="used-tag-files" onClick={this.toggleDrafts}>
|
||||
{this.props.draftCounts > 1 ? this.props.draftCounts + ' files' : this.props.draftCounts + ' file'}
|
||||
@@ -108,7 +108,7 @@ class RepoInfoBar extends React.Component {
|
||||
}
|
||||
{this.props.reviewCounts > 0 &&
|
||||
<span className="file-info">
|
||||
<i className="file-flag fa fa-clipboard"></i>
|
||||
<span className="info-icon sf2-icon-review"></span>
|
||||
<span className="used-tag-name">{gettext('review')}</span>
|
||||
<span className="used-tag-files" onClick={this.toggleReviews}>
|
||||
{this.props.reviewCounts > 1 ? this.props.reviewCounts + ' files' : this.props.reviewCounts + ' file'}
|
||||
|
Reference in New Issue
Block a user