From 553b8f6b295053fdb8c9300ec4b9fd0810c23653 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Sat, 21 May 2016 20:27:56 +0930 Subject: [PATCH] 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 --- framework/core/js/forum/dist/app.js | 4 ++-- framework/core/js/forum/src/components/PostEdited.js | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/framework/core/js/forum/dist/app.js b/framework/core/js/forum/dist/app.js index f43dc528d..28c03b8b3 100644 --- a/framework/core/js/forum/dist/app.js +++ b/framework/core/js/forum/dist/app.js @@ -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') ); } }, { diff --git a/framework/core/js/forum/src/components/PostEdited.js b/framework/core/js/forum/src/components/PostEdited.js index 2cd474fe6..7671fdf09 100644 --- a/framework/core/js/forum/src/components/PostEdited.js +++ b/framework/core/js/forum/src/components/PostEdited.js @@ -20,7 +20,9 @@ export default class PostEdited extends Component { )); return ( - {editedInfo} + + {app.translator.trans('core.forum.post.edited_text')} + ); }