lib/carte/client/views/content.cjsx in carte-server-0.0.3 vs lib/carte/client/views/content.cjsx in carte-server-0.0.4

- old
+ new

@@ -1,10 +1,11 @@ # @cjsx React.DOM React = require('react') List = require('./list') CardCollection = require('../models/cards') CardModel = require('../models/card') +config = require('../../shared/config.json') module.exports = React.createClass displayName: 'Content' componentWillMount: -> @@ -31,11 +32,11 @@ for k, v of cards.query if k != 'title' title.push(k + ': ' + v) title = title.join(', ') title = 'search: ' + cards.query.title + ' (' + title + ')' if cards.query.title - title += ' - carte' + title += ' - ' + config.title document.title = title <List key='list' cards={cards} showNav=true /> when "show" console.log 'show' cards = new CardCollection() @@ -57,10 +58,10 @@ console.log 'adding right', cardModel cards.add cardModel cards.fetching = false error: (card, response)=> console.log response - document.title = card.get('title') + ' - carte' + document.title = card.get('title') + ' - ' + config.title <List key='show' cards={cards} showNav=false /> else console.log 'else' <div>Loading ...</div>