diff options
-rw-r--r-- | src/web/js/components/RightPanel.react.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/web/js/components/RightPanel.react.js b/src/web/js/components/RightPanel.react.js index ba842ce5..8726ab7e 100644 --- a/src/web/js/components/RightPanel.react.js +++ b/src/web/js/components/RightPanel.react.js @@ -77,6 +77,8 @@ var PanelMixin = { } else { items.push(<dd key={key}><Glyphicon glyph="unchecked" /></dd>); } + } else if (field.type == 'list') { + this.props.obj[field.key].map(function(tag) {items.push(<dd key={tag}>{tag}</dd>)}); } else if (field.type == 'link') { items.push(<dd key={key}> <a href={this.props.obj[field.key]}> @@ -166,6 +168,7 @@ var Article = React.createClass({ isRemovable: function() {return true;}, fields: [{'title': 'Date', 'type': 'string', 'key': 'date'}, {'title': 'Original link', 'type': 'link', 'key': 'link'}, + {'title': 'Tags', 'type': 'list', 'key': 'tags'} ], obj_type: 'article', getTitle: function() {return this.props.obj.title;}, |