aboutsummaryrefslogtreecommitdiff
path: root/src/web/js/components/RightPanel.react.js
diff options
context:
space:
mode:
authorFrançois Schmidts <francois.schmidts@gmail.com>2016-02-02 22:22:49 +0100
committerFrançois Schmidts <francois.schmidts@gmail.com>2016-02-02 22:22:49 +0100
commitff5a8d62ff5767bbcf677bf50089e7c51f77196e (patch)
treec8e334725751ed79ebd2b498cb23aea51e893404 /src/web/js/components/RightPanel.react.js
parentsubmit button on bottom (diff)
downloadnewspipe-ff5a8d62ff5767bbcf677bf50089e7c51f77196e.tar.gz
newspipe-ff5a8d62ff5767bbcf677bf50089e7c51f77196e.tar.bz2
newspipe-ff5a8d62ff5767bbcf677bf50089e7c51f77196e.zip
displaying more informations on articles
Diffstat (limited to 'src/web/js/components/RightPanel.react.js')
-rw-r--r--src/web/js/components/RightPanel.react.js11
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>);
},
});
bgstack15