aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-11-08 22:09:28 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-11-08 22:09:28 +0100
commit04bda6b14b10451948d6f3cedc55ca6f751e2a18 (patch)
treec0c8749755c3a44fdd04bb026ba9c188db7b6b84
parentedit changelog: the crawler shouldn't always retrieved all the feeds (espicia... (diff)
downloadnewspipe-04bda6b14b10451948d6f3cedc55ca6f751e2a18.tar.gz
newspipe-04bda6b14b10451948d6f3cedc55ca6f751e2a18.tar.bz2
newspipe-04bda6b14b10451948d6f3cedc55ca6f751e2a18.zip
test
-rw-r--r--src/web/js/components/RightPanel.react.js3
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;},
bgstack15