1
0
mirror of https://github.com/flarum/core.git synced 2025-08-12 03:14:33 +02:00

Add user activity system

This commit is contained in:
Toby Zerner
2015-03-17 17:06:12 +10:30
parent 5055377eb1
commit 3880ce70f0
27 changed files with 508 additions and 72 deletions

View File

@@ -0,0 +1,12 @@
import Ember from 'ember';
import FadeIn from 'flarum/mixins/fade-in';
export default Ember.Component.extend(FadeIn, {
layoutName: 'components/user/activity-item',
tagName: 'li',
componentName: Ember.computed('activity.type', function() {
return 'user/activity-'+this.get('activity.type');
})
});

View File

@@ -0,0 +1,9 @@
import Ember from 'ember';
export default Ember.Component.extend({
layoutName: 'components/user/activity-post',
isFirstPost: Ember.computed('activity.post.number', function() {
return this.get('activity.post.number') === 1;
})
});