Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (14 sloc) 461 Bytes
@DashboardDraftList = React.createClass
mixins: [Reflux.connect(draftStore)],
getInitialState: ->
drafts: []
componentDidMount: -> updateDraftList()
render: ->
drafts = @state.drafts.map (item) ->
<li key={item.path}><a onClick={viewPath.bind(this, item.path)}>{item.title}</a></li>
<div className="maincontent">
<h1>Drafts</h1>
<ul className="nav nav-pills nav-stacked">
{drafts}
</ul>
</div>