1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

sort by time & add FolderMark

This commit is contained in:
Rokt33r
2015-10-17 16:46:10 +09:00
parent 2a339a2935
commit 1df4ed0fe9
5 changed files with 60 additions and 7 deletions

View File

@@ -3,6 +3,7 @@ import ProfileImage from 'boost/components/ProfileImage'
import ModeIcon from 'boost/components/ModeIcon'
import moment from 'moment'
import { switchArticle, NEW } from '../actions'
import FolderMark from 'boost/components/FolderMark'
export default class ArticleList extends React.Component {
handleArticleClick (key) {
@@ -26,7 +27,7 @@ export default class ArticleList extends React.Component {
<div key={'article-' + article.key}>
<div onClick={e => this.handleArticleClick(article.key)(e)} className={'articleItem' + (activeArticle.key === article.key ? ' active' : '')}>
<div className='top'>
<i className='fa fa-fw fa-square'/>
<FolderMark id={article.FolderId}/>
by <ProfileImage className='profileImage' size='20' email={article.User.email}/> {article.User.profileName}
<span className='updatedAt'>{article.status != null ? article.status : moment(article.updatedAt).fromNow()}</span>
</div>