diff options
Diffstat (limited to 'src/web/js/components')
-rw-r--r-- | src/web/js/components/RightPanel.react.js | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/web/js/components/RightPanel.react.js b/src/web/js/components/RightPanel.react.js index d2935253..7af0aa75 100644 --- a/src/web/js/components/RightPanel.react.js +++ b/src/web/js/components/RightPanel.react.js @@ -164,12 +164,17 @@ var Article = React.createClass({ mixins: [PanelMixin], isEditable: function() {return false;}, isRemovable: function() {return true;}, - fields: [], + fields: [{'title': 'Date', 'type': 'string', 'key': 'date'}, + {'title': 'Original link', 'type': 'link', 'key': 'link'}, + ], obj_type: 'article', getTitle: function() {return this.props.obj.title;}, getBody: function() { - return (<div className="panel-body" dangerouslySetInnerHTML={ - {__html: this.props.obj.content}} />); + return (<div className="panel-body"> + {this.getCore()} + <div dangerouslySetInnerHTML={ + {__html: this.props.obj.content}} /> + </div>); }, }); |