mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-16 15:19:06 +00:00
fix: metadata count translate (#6567)
* fix: metadata count translate * feat: optimzie code --------- Co-authored-by: 杨国璇 <ygx@Hello-word.local>
This commit is contained in:
@@ -18,7 +18,7 @@ const HiddenColumns = ({ readOnly, columns, hiddenColumns, onChange }) => {
|
||||
<HideColumn
|
||||
key={column.key}
|
||||
readOnly={readOnly}
|
||||
isHidden={hiddenColumns.includes(column.key)}
|
||||
isHidden={!hiddenColumns.includes(column.key)}
|
||||
column={column}
|
||||
onChange={onChange}
|
||||
/>
|
||||
|
@@ -59,7 +59,7 @@
|
||||
background: #f5f5f5;
|
||||
}
|
||||
|
||||
.sf-metadata-hide-columns-popover .hide-columns-list .hide-column-item:not(.disabled):hover
|
||||
.sf-metadata-hide-columns-popover .hide-columns-list .hide-column-item:not(.disabled):hover,
|
||||
.sf-metadata-hide-columns-popover .hide-columns-list .hide-column-item:not(.disabled):hover * {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
@@ -100,7 +100,7 @@ const HideColumnPopover = ({ hidePopover, onChange, readOnly, target, placement,
|
||||
className="sf-metadata-hide-columns-popover"
|
||||
boundariesElement={document.body}
|
||||
>
|
||||
<div ref={popoverRef} onClick={onPopoverInsideClick} className="sf-metadata-hide-columns-container">
|
||||
<div ref={popoverRef} onClick={onPopoverInsideClick} className="sf-metadata-hide-columns-container" style={{ maxHeight: window.innerHeight - 100 }}>
|
||||
<div className="sf-metadata-hide-columns-search-container">
|
||||
<SearchInput placeholder={gettext('Search property')} onKeyDown={onKeyDown} onChange={onChangeSearch} autoFocus={true}/>
|
||||
</div>
|
||||
|
@@ -100,7 +100,7 @@ class OrgLinks extends React.Component {
|
||||
<th width="50%">{gettext('Name')}</th>
|
||||
<th width="15%">{gettext('Owner')}</th>
|
||||
<th width="15%">{gettext('Created At')}</th>
|
||||
<th width="10%">{gettext('Count')}</th>
|
||||
<th width="10%">{gettext('Visit count')}</th>
|
||||
<th width="10%"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
@@ -68,7 +68,7 @@ class Content extends Component {
|
||||
<a className="d-inline-block table-sort-op" href="#" onClick={this.sortByTime}>{gettext('Created At')} {sortBy == 'ctime' ? sortIcon : initialSortIcon}</a>
|
||||
</th>
|
||||
<th width="10%">
|
||||
<a className="d-inline-block table-sort-op" href="#" onClick={this.sortByCount}>{gettext('Count')} {sortBy == 'view_cnt' ? sortIcon : initialSortIcon}</a>
|
||||
<a className="d-inline-block table-sort-op" href="#" onClick={this.sortByCount}>{gettext('Visit count')} {sortBy == 'view_cnt' ? sortIcon : initialSortIcon}</a>
|
||||
</th>
|
||||
<th width="11%">{gettext('Expiration')}</th>
|
||||
<th width="10%">{/* Operations*/}</th>
|
||||
|
@@ -48,7 +48,7 @@ class Content extends Component {
|
||||
<th width="18%">{gettext('Token')}</th>
|
||||
<th width="18%">{gettext('Owner')}</th>
|
||||
<th width="15%">{gettext('Created At')}</th>
|
||||
<th width="10%">{gettext('Count')}</th>
|
||||
<th width="10%">{gettext('Visit count')}</th>
|
||||
<th width="11%">{gettext('Expiration')}</th>
|
||||
<th width="10%">{/* Operations*/}</th>
|
||||
</tr>
|
||||
|
@@ -4941,7 +4941,7 @@ msgstr "所有公开链接"
|
||||
#: frontend/src/pages/org-admin/org-links.js:103
|
||||
#: frontend/src/pages/sys-admin/links/share-links.js:71
|
||||
msgid "Count"
|
||||
msgstr "访问次数"
|
||||
msgstr "数量"
|
||||
|
||||
#: frontend/src/pages/org-admin/org-links.js:217
|
||||
msgid "View Link"
|
||||
|
Reference in New Issue
Block a user