diff options
author | François Schmidts <francois.schmidts@gmail.com> | 2016-02-02 22:22:49 +0100 |
---|---|---|
committer | François Schmidts <francois.schmidts@gmail.com> | 2016-02-02 22:22:49 +0100 |
commit | ff5a8d62ff5767bbcf677bf50089e7c51f77196e (patch) | |
tree | c8e334725751ed79ebd2b498cb23aea51e893404 /src/web/js | |
parent | submit button on bottom (diff) | |
download | newspipe-ff5a8d62ff5767bbcf677bf50089e7c51f77196e.tar.gz newspipe-ff5a8d62ff5767bbcf677bf50089e7c51f77196e.tar.bz2 newspipe-ff5a8d62ff5767bbcf677bf50089e7c51f77196e.zip |
displaying more informations on articles
Diffstat (limited to 'src/web/js')
-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>); }, }); |