mirror of
https://github.com/flarum/framework.git
synced 2024-12-02 23:23:52 +08:00
Move details from post edited indicator back into a tooltip
Showing the username and time of edit is TMI (too much information). This commit changes the visible text to "Edited", and shows the full edit information in a tooltip. ref #446
This commit is contained in:
parent
edbc1164d1
commit
553b8f6b29
4
framework/core/js/forum/dist/app.js
vendored
4
framework/core/js/forum/dist/app.js
vendored
|
@ -24379,8 +24379,8 @@ System.register('flarum/components/PostEdited', ['flarum/Component', 'flarum/uti
|
|||
|
||||
return m(
|
||||
'span',
|
||||
{ className: 'PostEdited' },
|
||||
editedInfo
|
||||
{ className: 'PostEdited', title: editedInfo },
|
||||
app.translator.trans('core.forum.post.edited_text')
|
||||
);
|
||||
}
|
||||
}, {
|
||||
|
|
|
@ -20,7 +20,9 @@ export default class PostEdited extends Component {
|
|||
));
|
||||
|
||||
return (
|
||||
<span className="PostEdited">{editedInfo}</span>
|
||||
<span className="PostEdited" title={editedInfo}>
|
||||
{app.translator.trans('core.forum.post.edited_text')}
|
||||
</span>
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user