mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 15:09:14 +00:00
translate bug repair (#2769)
This commit is contained in:
@@ -28,19 +28,19 @@ class Content extends Component {
|
|||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { loading, errorMsg, items, sortBy, sortOrder } = this.props;
|
const { loading, errorMsg, items, sortBy, sortOrder } = this.props;
|
||||||
|
|
||||||
|
const emptyTip = (
|
||||||
|
<div className="empty-tip">
|
||||||
|
<h2>{gettext('No libraries have been shared with you')}</h2>
|
||||||
|
<p>{gettext('No libraries have been shared directly with you. You can find more shared libraries at "Shared with groups".')}</p>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
|
||||||
if (loading) {
|
if (loading) {
|
||||||
return <Loading />;
|
return <Loading />;
|
||||||
} else if (errorMsg) {
|
} else if (errorMsg) {
|
||||||
return <p className="error text-center">{errorMsg}</p>;
|
return <p className="error text-center">{errorMsg}</p>;
|
||||||
} else {
|
} else {
|
||||||
const emptyTip = (
|
|
||||||
<div className="empty-tip">
|
|
||||||
<h2>{gettext('No libraries have been shared with you')}</h2>
|
|
||||||
<p>{gettext('No libraries have been shared directly with you. You can find more shared libraries at "Shared with groups".')}</p>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
|
|
||||||
// sort
|
// sort
|
||||||
const sortByName = sortBy == 'name';
|
const sortByName = sortBy == 'name';
|
||||||
const sortByTime = sortBy == 'time';
|
const sortByTime = sortBy == 'time';
|
||||||
|
Reference in New Issue
Block a user