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:
Toby Zerner 2016-05-21 20:27:56 +09:30
parent edbc1164d1
commit 553b8f6b29
2 changed files with 5 additions and 3 deletions

View File

@ -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')
);
}
}, {

View File

@ -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>
);
}