1
0
mirror of https://github.com/flarum/core.git synced 2025-07-30 21:20:24 +02:00

Add styles for post footer/actions

Will be used by extensions
This commit is contained in:
Toby Zerner
2015-02-13 22:03:34 +10:30
parent 82b1107db6
commit 80cc910175
4 changed files with 44 additions and 5 deletions

View File

@@ -9,8 +9,6 @@ import PostHeaderMeta from 'flarum/components/discussion/post-header/meta';
import PostHeaderEdited from 'flarum/components/discussion/post-header/edited';
import PostHeaderToggle from 'flarum/components/discussion/post-header/toggle';
var precompileTemplate = Ember.Handlebars.compile;
/**
Component for a `comment`-typed post. Displays a number of item lists
(controls, header, and footer) surrounding the post's HTML content. Allows
@@ -25,7 +23,7 @@ export default Ember.Component.extend(FadeIn, HasItemLists, UseComposer, {
'post.isEdited:is-edited',
'revealContent:reveal-content'
],
itemLists: ['controls', 'header', 'footer'],
itemLists: ['controls', 'header', 'footer', 'actions'],
// The stream-content component instansiates this component and sets the
// `content` property to the content of the item in the post-stream object.
@@ -88,7 +86,7 @@ export default Ember.Component.extend(FadeIn, HasItemLists, UseComposer, {
var post = this.get('post');
post.setProperties({
isHidden: true,
hideTime: new Date,
hideTime: new Date(),
hideUser: this.get('session.user')
});
post.save();