mirror of
https://github.com/flarum/core.git
synced 2025-08-03 23:17:43 +02:00
Webpack (#18)
See https://github.com/flarum/core/pull/1367 * Replace gulp with webpack and npm scripts for JS compilation * Set up Travis CI to commit compiled JS * Restructure `js` directory; only one instance of npm, forum/admin are "submodules" * Restructure `less` directory
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import Notification from 'flarum/components/Notification';
|
||||
import username from 'flarum/helpers/username';
|
||||
import humanTime from 'flarum/helpers/humanTime';
|
||||
|
||||
export default class UserUnsuspendedNotification extends Notification {
|
||||
icon() {
|
||||
return 'ban';
|
||||
}
|
||||
|
||||
href() {
|
||||
return app.route.user(this.props.notification.subject());
|
||||
}
|
||||
|
||||
content() {
|
||||
const notification = this.props.notification;
|
||||
const actor = notification.sender();
|
||||
|
||||
return app.translator.transChoice('flarum-suspend.forum.notifications.user_unsuspended_text', {
|
||||
actor,
|
||||
});
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user