From ff5a8d62ff5767bbcf677bf50089e7c51f77196e Mon Sep 17 00:00:00 2001 From: François Schmidts Date: Tue, 2 Feb 2016 22:22:49 +0100 Subject: displaying more informations on articles --- src/web/js/components/RightPanel.react.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/web/js') 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 (
); + return (
+ {this.getCore()} +
+
); }, }); -- cgit