{"action":"created","comment":{"url":"https://api.github.com/repos/decidim/decidim/pulls/comments/169006835","pull_request_review_id":97462714,"id":169006835,"diff_hunk":"@@ -0,0 +1,72 @@\n+// = require tribute\n+\n+$(() => {\n+  const $mentionContainer = $('.js-mentions');\n+  const nodatafound = 'No results.'; // TODO: this string must be i18n","path":"decidim-core/app/assets/javascripts/decidim/input_mentions.js.es6","position":5,"original_position":5,"commit_id":"4b58a2ed7ed619e6b2c574f7a976104d6bb01745","original_commit_id":"fd46d1b796149758b9aed629b425bf0511db8998","user":{"login":"mrcasals","id":491891,"avatar_url":"https://avatars3.githubusercontent.com/u/491891?v=4","gravatar_id":"","url":"https://api.github.com/users/mrcasals","html_url":"https://github.com/mrcasals","followers_url":"https://api.github.com/users/mrcasals/followers","following_url":"https://api.github.com/users/mrcasals/following{/other_user}","gists_url":"https://api.github.com/users/mrcasals/gists{/gist_id}","starred_url":"https://api.github.com/users/mrcasals/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrcasals/subscriptions","organizations_url":"https://api.github.com/users/mrcasals/orgs","repos_url":"https://api.github.com/users/mrcasals/repos","events_url":"https://api.github.com/users/mrcasals/events{/privacy}","received_events_url":"https://api.github.com/users/mrcasals/received_events","type":"User","site_admin":false},"body":"Yes, that's the idea. Don't know if it's used elsewhere (I think we do use it, but can't think of a specific file that does), but yes, that's how it should work!\r\n\r\nThen from the JS you get the value of this attribute 😄 ","created_at":"2018-02-19T08:15:43Z","updated_at":"2018-02-19T08:15:43Z","html_url":"https://github.com/decidim/decidim/pull/2684#discussion_r169006835","pull_request_url":"https://api.github.com/repos/decidim/decidim/pulls/2684","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/decidim/decidim/pulls/comments/169006835"},"html":{"href":"https://github.com/decidim/decidim/pull/2684#discussion_r169006835"},"pull_request":{"href":"https://api.github.com/repos/decidim/decidim/pulls/2684"}},"in_reply_to_id":167525263},"pull_request":{"url":"https://api.github.com/repos/decidim/decidim/pulls/2684","id":167913340,"html_url":"https://github.com/decidim/decidim/pull/2684","diff_url":"https://github.com/decidim/decidim/pull/2684.diff","patch_url":"https://github.com/decidim/decidim/pull/2684.patch","issue_url":"https://api.github.com/repos/decidim/decidim/issues/2684","number":2684,"state":"open","locked":false,"title":"Tags & mentions","user":{"login":"Crashillo","id":817526,"avatar_url":"https://avatars1.githubusercontent.com/u/817526?v=4","gravatar_id":"","url":"https://api.github.com/users/Crashillo","html_url":"https://github.com/Crashillo","followers_url":"https://api.github.com/users/Crashillo/followers","following_url":"https://api.github.com/users/Crashillo/following{/other_user}","gists_url":"https://api.github.com/users/Crashillo/gists{/gist_id}","starred_url":"https://api.github.com/users/Crashillo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Crashillo/subscriptions","organizations_url":"https://api.github.com/users/Crashillo/orgs","repos_url":"https://api.github.com/users/Crashillo/repos","events_url":"https://api.github.com/users/Crashillo/events{/privacy}","received_events_url":"https://api.github.com/users/Crashillo/received_events","type":"User","site_admin":false},"body":"#### :tophat: What? Why?\r\nAdd support for tags and mentions. It expects to work as components out-of-the-box.\r\nCurrently is appended to the filters partial.\r\n\r\n- [x] Tags\r\n- [x] Mentions\r\n\r\n#### :pushpin: Related Issues\r\n- Fixes decidim/design#179\r\n- #2348 \r\n\r\n#### 🔔  Considerations\r\n- Requires dependency [Bootstrap Tags Input](http://bootstrap-tagsinput.github.io/bootstrap-tagsinput/examples/)\r\n- Requires dependency [Tribute.js](https://zurb.github.io/tribute/example/)\r\n\r\n#### :camera: Screenshots (optional)\r\n![tags](https://user-images.githubusercontent.com/817526/36205585-7f9afbd2-118f-11e8-8fd2-a3ded4559170.gif)\r\n![mentions](https://user-images.githubusercontent.com/817526/36205591-86270964-118f-11e8-9600-4083a4a6b89b.gif)\r\n","created_at":"2018-02-08T09:10:51Z","updated_at":"2018-02-19T08:15:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8e7c94bfb8138a7cb8319a6e76ed2041e7cd0d3c","assignee":{"login":"Crashillo","id":817526,"avatar_url":"https://avatars1.githubusercontent.com/u/817526?v=4","gravatar_id":"","url":"https://api.github.com/users/Crashillo","html_url":"https://github.com/Crashillo","followers_url":"https://api.github.com/users/Crashillo/followers","following_url":"https://api.github.com/users/Crashillo/following{/other_user}","gists_url":"https://api.github.com/users/Crashillo/gists{/gist_id}","starred_url":"https://api.github.com/users/Crashillo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Crashillo/subscriptions","organizations_url":"https://api.github.com/users/Crashillo/orgs","repos_url":"https://api.github.com/users/Crashillo/repos","events_url":"https://api.github.com/users/Crashillo/events{/privacy}","received_events_url":"https://api.github.com/users/Crashillo/received_events","type":"User","site_admin":false},"assignees":[{"login":"Crashillo","id":817526,"avatar_url":"https://avatars1.githubusercontent.com/u/817526?v=4","gravatar_id":"","url":"https://api.github.com/users/Crashillo","html_url":"https://github.com/Crashillo","followers_url":"https://api.github.com/users/Crashillo/followers","following_url":"https://api.github.com/users/Crashillo/following{/other_user}","gists_url":"https://api.github.com/users/Crashillo/gists{/gist_id}","starred_url":"https://api.github.com/users/Crashillo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Crashillo/subscriptions","organizations_url":"https://api.github.com/users/Crashillo/orgs","repos_url":"https://api.github.com/users/Crashillo/repos","events_url":"https://api.github.com/users/Crashillo/events{/privacy}","received_events_url":"https://api.github.com/users/Crashillo/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":457402355,"url":"https://api.github.com/repos/decidim/decidim/labels/in-progress","name":"in-progress","color":"c2e0c6","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/decidim/decidim/pulls/2684/commits","review_comments_url":"https://api.github.com/repos/decidim/decidim/pulls/2684/comments","review_comment_url":"https://api.github.com/repos/decidim/decidim/pulls/comments{/number}","comments_url":"https://api.github.com/repos/decidim/decidim/issues/2684/comments","statuses_url":"https://api.github.com/repos/decidim/decidim/statuses/4b58a2ed7ed619e6b2c574f7a976104d6bb01745","head":{"label":"decidim:design/tags-mentions","ref":"design/tags-mentions","sha":"4b58a2ed7ed619e6b2c574f7a976104d6bb01745","user":{"login":"decidim","id":22474646,"avatar_url":"https://avatars3.githubusercontent.com/u/22474646?v=4","gravatar_id":"","url":"https://api.github.com/users/decidim","html_url":"https://github.com/decidim","followers_url":"https://api.github.com/users/decidim/followers","following_url":"https://api.github.com/users/decidim/following{/other_user}","gists_url":"https://api.github.com/users/decidim/gists{/gist_id}","starred_url":"https://api.github.com/users/decidim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/decidim/subscriptions","organizations_url":"https://api.github.com/users/decidim/orgs","repos_url":"https://api.github.com/users/decidim/repos","events_url":"https://api.github.com/users/decidim/events{/privacy}","received_events_url":"https://api.github.com/users/decidim/received_events","type":"Organization","site_admin":false},"repo":{"id":65914086,"name":"decidim","full_name":"decidim/decidim","owner":{"login":"decidim","id":22474646,"avatar_url":"https://avatars3.githubusercontent.com/u/22474646?v=4","gravatar_id":"","url":"https://api.github.com/users/decidim","html_url":"https://github.com/decidim","followers_url":"https://api.github.com/users/decidim/followers","following_url":"https://api.github.com/users/decidim/following{/other_user}","gists_url":"https://api.github.com/users/decidim/gists{/gist_id}","starred_url":"https://api.github.com/users/decidim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/decidim/subscriptions","organizations_url":"https://api.github.com/users/decidim/orgs","repos_url":"https://api.github.com/users/decidim/repos","events_url":"https://api.github.com/users/decidim/events{/privacy}","received_events_url":"https://api.github.com/users/decidim/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/decidim/decidim","description":"The participatory democracy framework. A generator and multiple gems made with Ruby on Rails. ","fork":false,"url":"https://api.github.com/repos/decidim/decidim","forks_url":"https://api.github.com/repos/decidim/decidim/forks","keys_url":"https://api.github.com/repos/decidim/decidim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/decidim/decidim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/decidim/decidim/teams","hooks_url":"https://api.github.com/repos/decidim/decidim/hooks","issue_events_url":"https://api.github.com/repos/decidim/decidim/issues/events{/number}","events_url":"https://api.github.com/repos/decidim/decidim/events","assignees_url":"https://api.github.com/repos/decidim/decidim/assignees{/user}","branches_url":"https://api.github.com/repos/decidim/decidim/branches{/branch}","tags_url":"https://api.github.com/repos/decidim/decidim/tags","blobs_url":"https://api.github.com/repos/decidim/decidim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/decidim/decidim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/decidim/decidim/git/refs{/sha}","trees_url":"https://api.github.com/repos/decidim/decidim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/decidim/decidim/statuses/{sha}","languages_url":"https://api.github.com/repos/decidim/decidim/languages","stargazers_url":"https://api.github.com/repos/decidim/decidim/stargazers","contributors_url":"https://api.github.com/repos/decidim/decidim/contributors","subscribers_url":"https://api.github.com/repos/decidim/decidim/subscribers","subscription_url":"https://api.github.com/repos/decidim/decidim/subscription","commits_url":"https://api.github.com/repos/decidim/decidim/commits{/sha}","git_commits_url":"https://api.github.com/repos/decidim/decidim/git/commits{/sha}","comments_url":"https://api.github.com/repos/decidim/decidim/comments{/number}","issue_comment_url":"https://api.github.com/repos/decidim/decidim/issues/comments{/number}","contents_url":"https://api.github.com/repos/decidim/decidim/contents/{+path}","compare_url":"https://api.github.com/repos/decidim/decidim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/decidim/decidim/merges","archive_url":"https://api.github.com/repos/decidim/decidim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/decidim/decidim/downloads","issues_url":"https://api.github.com/repos/decidim/decidim/issues{/number}","pulls_url":"https://api.github.com/repos/decidim/decidim/pulls{/number}","milestones_url":"https://api.github.com/repos/decidim/decidim/milestones{/number}","notifications_url":"https://api.github.com/repos/decidim/decidim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/decidim/decidim/labels{/name}","releases_url":"https://api.github.com/repos/decidim/decidim/releases{/id}","deployments_url":"https://api.github.com/repos/decidim/decidim/deployments","created_at":"2016-08-17T14:27:06Z","updated_at":"2018-02-16T23:03:39Z","pushed_at":"2018-02-19T08:07:19Z","git_url":"git://github.com/decidim/decidim.git","ssh_url":"git@github.com:decidim/decidim.git","clone_url":"https://github.com/decidim/decidim.git","svn_url":"https://github.com/decidim/decidim","homepage":"http://www.decidim.org","size":38134,"stargazers_count":147,"watchers_count":147,"language":"Ruby","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":58,"mirror_url":null,"archived":false,"open_issues_count":322,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0"},"forks":58,"open_issues":322,"watchers":147,"default_branch":"master"}},"base":{"label":"decidim:master","ref":"master","sha":"670beb1249a2776f892b283e78bc765214a899c3","user":{"login":"decidim","id":22474646,"avatar_url":"https://avatars3.githubusercontent.com/u/22474646?v=4","gravatar_id":"","url":"https://api.github.com/users/decidim","html_url":"https://github.com/decidim","followers_url":"https://api.github.com/users/decidim/followers","following_url":"https://api.github.com/users/decidim/following{/other_user}","gists_url":"https://api.github.com/users/decidim/gists{/gist_id}","starred_url":"https://api.github.com/users/decidim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/decidim/subscriptions","organizations_url":"https://api.github.com/users/decidim/orgs","repos_url":"https://api.github.com/users/decidim/repos","events_url":"https://api.github.com/users/decidim/events{/privacy}","received_events_url":"https://api.github.com/users/decidim/received_events","type":"Organization","site_admin":false},"repo":{"id":65914086,"name":"decidim","full_name":"decidim/decidim","owner":{"login":"decidim","id":22474646,"avatar_url":"https://avatars3.githubusercontent.com/u/22474646?v=4","gravatar_id":"","url":"https://api.github.com/users/decidim","html_url":"https://github.com/decidim","followers_url":"https://api.github.com/users/decidim/followers","following_url":"https://api.github.com/users/decidim/following{/other_user}","gists_url":"https://api.github.com/users/decidim/gists{/gist_id}","starred_url":"https://api.github.com/users/decidim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/decidim/subscriptions","organizations_url":"https://api.github.com/users/decidim/orgs","repos_url":"https://api.github.com/users/decidim/repos","events_url":"https://api.github.com/users/decidim/events{/privacy}","received_events_url":"https://api.github.com/users/decidim/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/decidim/decidim","description":"The participatory democracy framework. A generator and multiple gems made with Ruby on Rails. ","fork":false,"url":"https://api.github.com/repos/decidim/decidim","forks_url":"https://api.github.com/repos/decidim/decidim/forks","keys_url":"https://api.github.com/repos/decidim/decidim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/decidim/decidim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/decidim/decidim/teams","hooks_url":"https://api.github.com/repos/decidim/decidim/hooks","issue_events_url":"https://api.github.com/repos/decidim/decidim/issues/events{/number}","events_url":"https://api.github.com/repos/decidim/decidim/events","assignees_url":"https://api.github.com/repos/decidim/decidim/assignees{/user}","branches_url":"https://api.github.com/repos/decidim/decidim/branches{/branch}","tags_url":"https://api.github.com/repos/decidim/decidim/tags","blobs_url":"https://api.github.com/repos/decidim/decidim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/decidim/decidim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/decidim/decidim/git/refs{/sha}","trees_url":"https://api.github.com/repos/decidim/decidim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/decidim/decidim/statuses/{sha}","languages_url":"https://api.github.com/repos/decidim/decidim/languages","stargazers_url":"https://api.github.com/repos/decidim/decidim/stargazers","contributors_url":"https://api.github.com/repos/decidim/decidim/contributors","subscribers_url":"https://api.github.com/repos/decidim/decidim/subscribers","subscription_url":"https://api.github.com/repos/decidim/decidim/subscription","commits_url":"https://api.github.com/repos/decidim/decidim/commits{/sha}","git_commits_url":"https://api.github.com/repos/decidim/decidim/git/commits{/sha}","comments_url":"https://api.github.com/repos/decidim/decidim/comments{/number}","issue_comment_url":"https://api.github.com/repos/decidim/decidim/issues/comments{/number}","contents_url":"https://api.github.com/repos/decidim/decidim/contents/{+path}","compare_url":"https://api.github.com/repos/decidim/decidim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/decidim/decidim/merges","archive_url":"https://api.github.com/repos/decidim/decidim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/decidim/decidim/downloads","issues_url":"https://api.github.com/repos/decidim/decidim/issues{/number}","pulls_url":"https://api.github.com/repos/decidim/decidim/pulls{/number}","milestones_url":"https://api.github.com/repos/decidim/decidim/milestones{/number}","notifications_url":"https://api.github.com/repos/decidim/decidim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/decidim/decidim/labels{/name}","releases_url":"https://api.github.com/repos/decidim/decidim/releases{/id}","deployments_url":"https://api.github.com/repos/decidim/decidim/deployments","created_at":"2016-08-17T14:27:06Z","updated_at":"2018-02-16T23:03:39Z","pushed_at":"2018-02-19T08:07:19Z","git_url":"git://github.com/decidim/decidim.git","ssh_url":"git@github.com:decidim/decidim.git","clone_url":"https://github.com/decidim/decidim.git","svn_url":"https://github.com/decidim/decidim","homepage":"http://www.decidim.org","size":38134,"stargazers_count":147,"watchers_count":147,"language":"Ruby","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":58,"mirror_url":null,"archived":false,"open_issues_count":322,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0"},"forks":58,"open_issues":322,"watchers":147,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/decidim/decidim/pulls/2684"},"html":{"href":"https://github.com/decidim/decidim/pull/2684"},"issue":{"href":"https://api.github.com/repos/decidim/decidim/issues/2684"},"comments":{"href":"https://api.github.com/repos/decidim/decidim/issues/2684/comments"},"review_comments":{"href":"https://api.github.com/repos/decidim/decidim/pulls/2684/comments"},"review_comment":{"href":"https://api.github.com/repos/decidim/decidim/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/decidim/decidim/pulls/2684/commits"},"statuses":{"href":"https://api.github.com/repos/decidim/decidim/statuses/4b58a2ed7ed619e6b2c574f7a976104d6bb01745"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"mrcasals"}}