lib/carte/client/views/content.cjsx in carte-server-1.0.8 vs lib/carte/client/views/content.cjsx in carte-server-1.0.9
- old
+ new
@@ -1,13 +1,15 @@
# @cjsx React.DOM
$ = require('jquery')
React = require('react')
List = require('./list')
+Tags = require('./tags')
Slideshow = require('./slideshow')
CardCollection = require('../models/cards')
CardHistoryCollection = require('../models/card_histories')
CardModel = require('../models/card')
+TagCollection = require('../models/tags')
String = require('string')
config = require('../config')
module.exports = React.createClass
displayName: 'Content'
@@ -71,9 +73,16 @@
cards.title = @props.router.title
cards.fetching = true
cards.fetch success: ()-> cards.fetching = false
document.title = config.title + '、ヒストリー'
<List key='list' router={@props.router} cards={cards} />
+ when "tags"
+ console.log '[views/content] tags', @props
+ tags = new TagCollection()
+ tags.fetching = true
+ tags.fetch success: ()-> tags.fetching = false
+ document.title = config.title + '、タグ一覧'
+ <Tags tags={tags} />
else
null
}
</div>