{"action":"created","comment":{"url":"https://api.github.com/repos/superdesk/superdesk-client-core/pulls/comments/223275336","pull_request_review_id":162359912,"id":223275336,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMzI3NTMzNg==","diff_hunk":"@@ -0,0 +1,28 @@\n+import React from 'react';\n+import moment from 'moment';\n+import {reactToAngular1} from 'superdesk-ui-framework';\n+\n+interface IProps {\n+    datetime: string;\n+}\n+\n+export class RelativeDate extends React.Component<IProps> {\n+    static propTypes: any;\n+\n+    render() {\n+        const date = moment.utc(this.props.datetime);\n+\n+        date.local(); // switch to local time zone\n+\n+        const datetimeIso = date.toISOString();\n+        const title = date.format('LLLL');\n+        const reldate = date.fromNow();\n+\n+        return (\n+            <time dateTime={datetimeIso} title={title}>{reldate}</time>\n+        );\n+    }\n+}\n+\n+angular.module('superdesk.core.datetime.relativeDate', [])\n+    .component('relativeDate', reactToAngular1(RelativeDate, ['datetime']));","path":"scripts/core/datetime/relativeDate.tsx","position":28,"original_position":28,"commit_id":"f4dd74466850ea3d8bcf2ecc0c5827ec586359ac","original_commit_id":"f4dd74466850ea3d8bcf2ecc0c5827ec586359ac","user":{"login":"petrjasek","id":179249,"node_id":"MDQ6VXNlcjE3OTI0OQ==","avatar_url":"https://avatars1.githubusercontent.com/u/179249?v=4","gravatar_id":"","url":"https://api.github.com/users/petrjasek","html_url":"https://github.com/petrjasek","followers_url":"https://api.github.com/users/petrjasek/followers","following_url":"https://api.github.com/users/petrjasek/following{/other_user}","gists_url":"https://api.github.com/users/petrjasek/gists{/gist_id}","starred_url":"https://api.github.com/users/petrjasek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petrjasek/subscriptions","organizations_url":"https://api.github.com/users/petrjasek/orgs","repos_url":"https://api.github.com/users/petrjasek/repos","events_url":"https://api.github.com/users/petrjasek/events{/privacy}","received_events_url":"https://api.github.com/users/petrjasek/received_events","type":"User","site_admin":false},"body":"it's better to keep the `sd` prefix for components to avoid conflicts with external libs","created_at":"2018-10-08T08:00:09Z","updated_at":"2018-10-08T08:00:09Z","html_url":"https://github.com/superdesk/superdesk-client-core/pull/2583#discussion_r223275336","pull_request_url":"https://api.github.com/repos/superdesk/superdesk-client-core/pulls/2583","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/superdesk/superdesk-client-core/pulls/comments/223275336"},"html":{"href":"https://github.com/superdesk/superdesk-client-core/pull/2583#discussion_r223275336"},"pull_request":{"href":"https://api.github.com/repos/superdesk/superdesk-client-core/pulls/2583"}}},"pull_request":{"url":"https://api.github.com/repos/superdesk/superdesk-client-core/pulls/2583","id":220644290,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIwNjQ0Mjkw","html_url":"https://github.com/superdesk/superdesk-client-core/pull/2583","diff_url":"https://github.com/superdesk/superdesk-client-core/pull/2583.diff","patch_url":"https://github.com/superdesk/superdesk-client-core/pull/2583.patch","issue_url":"https://api.github.com/repos/superdesk/superdesk-client-core/issues/2583","number":2583,"state":"open","locked":false,"title":"Display translated items (sdfid 489)","user":{"login":"tomaskikutis","id":2076953,"node_id":"MDQ6VXNlcjIwNzY5NTM=","avatar_url":"https://avatars0.githubusercontent.com/u/2076953?v=4","gravatar_id":"","url":"https://api.github.com/users/tomaskikutis","html_url":"https://github.com/tomaskikutis","followers_url":"https://api.github.com/users/tomaskikutis/followers","following_url":"https://api.github.com/users/tomaskikutis/following{/other_user}","gists_url":"https://api.github.com/users/tomaskikutis/gists{/gist_id}","starred_url":"https://api.github.com/users/tomaskikutis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomaskikutis/subscriptions","organizations_url":"https://api.github.com/users/tomaskikutis/orgs","repos_url":"https://api.github.com/users/tomaskikutis/repos","events_url":"https://api.github.com/users/tomaskikutis/events{/privacy}","received_events_url":"https://api.github.com/users/tomaskikutis/received_events","type":"User","site_admin":false},"body":"SDFID-489\r\nDEPENDS ON: https://github.com/superdesk/superdesk-core/pull/1381","created_at":"2018-10-05T09:48:04Z","updated_at":"2018-10-08T08:00:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3b4b28389fb64b51cfd49346bc1263bfa1314a5b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":{"url":"https://api.github.com/repos/superdesk/superdesk-client-core/milestones/51","html_url":"https://github.com/superdesk/superdesk-client-core/milestone/51","labels_url":"https://api.github.com/repos/superdesk/superdesk-client-core/milestones/51/labels","id":3664556,"node_id":"MDk6TWlsZXN0b25lMzY2NDU1Ng==","number":51,"title":"1.26","description":"","creator":{"login":"petrjasek","id":179249,"node_id":"MDQ6VXNlcjE3OTI0OQ==","avatar_url":"https://avatars1.githubusercontent.com/u/179249?v=4","gravatar_id":"","url":"https://api.github.com/users/petrjasek","html_url":"https://github.com/petrjasek","followers_url":"https://api.github.com/users/petrjasek/followers","following_url":"https://api.github.com/users/petrjasek/following{/other_user}","gists_url":"https://api.github.com/users/petrjasek/gists{/gist_id}","starred_url":"https://api.github.com/users/petrjasek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petrjasek/subscriptions","organizations_url":"https://api.github.com/users/petrjasek/orgs","repos_url":"https://api.github.com/users/petrjasek/repos","events_url":"https://api.github.com/users/petrjasek/events{/privacy}","received_events_url":"https://api.github.com/users/petrjasek/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":31,"state":"open","created_at":"2018-09-18T08:04:07Z","updated_at":"2018-10-08T07:41:39Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/superdesk/superdesk-client-core/pulls/2583/commits","review_comments_url":"https://api.github.com/repos/superdesk/superdesk-client-core/pulls/2583/comments","review_comment_url":"https://api.github.com/repos/superdesk/superdesk-client-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/superdesk/superdesk-client-core/issues/2583/comments","statuses_url":"https://api.github.com/repos/superdesk/superdesk-client-core/statuses/f4dd74466850ea3d8bcf2ecc0c5827ec586359ac","head":{"label":"tomaskikutis:display-translated-items-(SDFID-489)","ref":"display-translated-items-(SDFID-489)","sha":"f4dd74466850ea3d8bcf2ecc0c5827ec586359ac","user":{"login":"tomaskikutis","id":2076953,"node_id":"MDQ6VXNlcjIwNzY5NTM=","avatar_url":"https://avatars0.githubusercontent.com/u/2076953?v=4","gravatar_id":"","url":"https://api.github.com/users/tomaskikutis","html_url":"https://github.com/tomaskikutis","followers_url":"https://api.github.com/users/tomaskikutis/followers","following_url":"https://api.github.com/users/tomaskikutis/following{/other_user}","gists_url":"https://api.github.com/users/tomaskikutis/gists{/gist_id}","starred_url":"https://api.github.com/users/tomaskikutis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomaskikutis/subscriptions","organizations_url":"https://api.github.com/users/tomaskikutis/orgs","repos_url":"https://api.github.com/users/tomaskikutis/repos","events_url":"https://api.github.com/users/tomaskikutis/events{/privacy}","received_events_url":"https://api.github.com/users/tomaskikutis/received_events","type":"User","site_admin":false},"repo":{"id":118113228,"node_id":"MDEwOlJlcG9zaXRvcnkxMTgxMTMyMjg=","name":"superdesk-client-core","full_name":"tomaskikutis/superdesk-client-core","private":false,"owner":{"login":"tomaskikutis","id":2076953,"node_id":"MDQ6VXNlcjIwNzY5NTM=","avatar_url":"https://avatars0.githubusercontent.com/u/2076953?v=4","gravatar_id":"","url":"https://api.github.com/users/tomaskikutis","html_url":"https://github.com/tomaskikutis","followers_url":"https://api.github.com/users/tomaskikutis/followers","following_url":"https://api.github.com/users/tomaskikutis/following{/other_user}","gists_url":"https://api.github.com/users/tomaskikutis/gists{/gist_id}","starred_url":"https://api.github.com/users/tomaskikutis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomaskikutis/subscriptions","organizations_url":"https://api.github.com/users/tomaskikutis/orgs","repos_url":"https://api.github.com/users/tomaskikutis/repos","events_url":"https://api.github.com/users/tomaskikutis/events{/privacy}","received_events_url":"https://api.github.com/users/tomaskikutis/received_events","type":"User","site_admin":false},"html_url":"https://github.com/tomaskikutis/superdesk-client-core","description":"Common client modules for superdesk apps.","fork":true,"url":"https://api.github.com/repos/tomaskikutis/superdesk-client-core","forks_url":"https://api.github.com/repos/tomaskikutis/superdesk-client-core/forks","keys_url":"https://api.github.com/repos/tomaskikutis/superdesk-client-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tomaskikutis/superdesk-client-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tomaskikutis/superdesk-client-core/teams","hooks_url":"https://api.github.com/repos/tomaskikutis/superdesk-client-core/hooks","issue_events_url":"https://api.github.com/repos/tomaskikutis/superdesk-client-core/issues/events{/number}","events_url":"https://api.github.com/repos/tomaskikutis/superdesk-client-core/events","assignees_url":"https://api.github.com/repos/tomaskikutis/superdesk-client-core/assignees{/user}","branches_url":"https://api.github.com/repos/tomaskikutis/superdesk-client-core/branches{/branch}","tags_url":"https://api.github.com/repos/tomaskikutis/superdesk-client-core/tags","blobs_url":"https://api.github.com/repos/tomaskikutis/superdesk-client-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tomaskikutis/superdesk-client-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tomaskikutis/superdesk-client-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/tomaskikutis/superdesk-client-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tomaskikutis/superdesk-client-core/statuses/{sha}","languages_url":"https://api.github.com/repos/tomaskikutis/superdesk-client-core/languages","stargazers_url":"https://api.github.com/repos/tomaskikutis/superdesk-client-core/stargazers","contributors_url":"https://api.github.com/repos/tomaskikutis/superdesk-client-core/contributors","subscribers_url":"https://api.github.com/repos/tomaskikutis/superdesk-client-core/subscribers","subscription_url":"https://api.github.com/repos/tomaskikutis/superdesk-client-core/subscription","commits_url":"https://api.github.com/repos/tomaskikutis/superdesk-client-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/tomaskikutis/superdesk-client-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/tomaskikutis/superdesk-client-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/tomaskikutis/superdesk-client-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/tomaskikutis/superdesk-client-core/contents/{+path}","compare_url":"https://api.github.com/repos/tomaskikutis/superdesk-client-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tomaskikutis/superdesk-client-core/merges","archive_url":"https://api.github.com/repos/tomaskikutis/superdesk-client-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tomaskikutis/superdesk-client-core/downloads","issues_url":"https://api.github.com/repos/tomaskikutis/superdesk-client-core/issues{/number}","pulls_url":"https://api.github.com/repos/tomaskikutis/superdesk-client-core/pulls{/number}","milestones_url":"https://api.github.com/repos/tomaskikutis/superdesk-client-core/milestones{/number}","notifications_url":"https://api.github.com/repos/tomaskikutis/superdesk-client-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tomaskikutis/superdesk-client-core/labels{/name}","releases_url":"https://api.github.com/repos/tomaskikutis/superdesk-client-core/releases{/id}","deployments_url":"https://api.github.com/repos/tomaskikutis/superdesk-client-core/deployments","created_at":"2018-01-19T10:43:33Z","updated_at":"2018-07-24T10:43:50Z","pushed_at":"2018-10-05T09:47:41Z","git_url":"git://github.com/tomaskikutis/superdesk-client-core.git","ssh_url":"git@github.com:tomaskikutis/superdesk-client-core.git","clone_url":"https://github.com/tomaskikutis/superdesk-client-core.git","svn_url":"https://github.com/tomaskikutis/superdesk-client-core","homepage":"","size":15862,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"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","node_id":"MDc6TGljZW5zZTE="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"superdesk:master","ref":"master","sha":"c603965321641606706617987e06fa0db98e9c0c","user":{"login":"superdesk","id":5527298,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU1MjcyOTg=","avatar_url":"https://avatars2.githubusercontent.com/u/5527298?v=4","gravatar_id":"","url":"https://api.github.com/users/superdesk","html_url":"https://github.com/superdesk","followers_url":"https://api.github.com/users/superdesk/followers","following_url":"https://api.github.com/users/superdesk/following{/other_user}","gists_url":"https://api.github.com/users/superdesk/gists{/gist_id}","starred_url":"https://api.github.com/users/superdesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superdesk/subscriptions","organizations_url":"https://api.github.com/users/superdesk/orgs","repos_url":"https://api.github.com/users/superdesk/repos","events_url":"https://api.github.com/users/superdesk/events{/privacy}","received_events_url":"https://api.github.com/users/superdesk/received_events","type":"Organization","site_admin":false},"repo":{"id":50631400,"node_id":"MDEwOlJlcG9zaXRvcnk1MDYzMTQwMA==","name":"superdesk-client-core","full_name":"superdesk/superdesk-client-core","private":false,"owner":{"login":"superdesk","id":5527298,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU1MjcyOTg=","avatar_url":"https://avatars2.githubusercontent.com/u/5527298?v=4","gravatar_id":"","url":"https://api.github.com/users/superdesk","html_url":"https://github.com/superdesk","followers_url":"https://api.github.com/users/superdesk/followers","following_url":"https://api.github.com/users/superdesk/following{/other_user}","gists_url":"https://api.github.com/users/superdesk/gists{/gist_id}","starred_url":"https://api.github.com/users/superdesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superdesk/subscriptions","organizations_url":"https://api.github.com/users/superdesk/orgs","repos_url":"https://api.github.com/users/superdesk/repos","events_url":"https://api.github.com/users/superdesk/events{/privacy}","received_events_url":"https://api.github.com/users/superdesk/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/superdesk/superdesk-client-core","description":"Common client modules for superdesk apps.","fork":false,"url":"https://api.github.com/repos/superdesk/superdesk-client-core","forks_url":"https://api.github.com/repos/superdesk/superdesk-client-core/forks","keys_url":"https://api.github.com/repos/superdesk/superdesk-client-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/superdesk/superdesk-client-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/superdesk/superdesk-client-core/teams","hooks_url":"https://api.github.com/repos/superdesk/superdesk-client-core/hooks","issue_events_url":"https://api.github.com/repos/superdesk/superdesk-client-core/issues/events{/number}","events_url":"https://api.github.com/repos/superdesk/superdesk-client-core/events","assignees_url":"https://api.github.com/repos/superdesk/superdesk-client-core/assignees{/user}","branches_url":"https://api.github.com/repos/superdesk/superdesk-client-core/branches{/branch}","tags_url":"https://api.github.com/repos/superdesk/superdesk-client-core/tags","blobs_url":"https://api.github.com/repos/superdesk/superdesk-client-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/superdesk/superdesk-client-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/superdesk/superdesk-client-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/superdesk/superdesk-client-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/superdesk/superdesk-client-core/statuses/{sha}","languages_url":"https://api.github.com/repos/superdesk/superdesk-client-core/languages","stargazers_url":"https://api.github.com/repos/superdesk/superdesk-client-core/stargazers","contributors_url":"https://api.github.com/repos/superdesk/superdesk-client-core/contributors","subscribers_url":"https://api.github.com/repos/superdesk/superdesk-client-core/subscribers","subscription_url":"https://api.github.com/repos/superdesk/superdesk-client-core/subscription","commits_url":"https://api.github.com/repos/superdesk/superdesk-client-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/superdesk/superdesk-client-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/superdesk/superdesk-client-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/superdesk/superdesk-client-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/superdesk/superdesk-client-core/contents/{+path}","compare_url":"https://api.github.com/repos/superdesk/superdesk-client-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/superdesk/superdesk-client-core/merges","archive_url":"https://api.github.com/repos/superdesk/superdesk-client-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/superdesk/superdesk-client-core/downloads","issues_url":"https://api.github.com/repos/superdesk/superdesk-client-core/issues{/number}","pulls_url":"https://api.github.com/repos/superdesk/superdesk-client-core/pulls{/number}","milestones_url":"https://api.github.com/repos/superdesk/superdesk-client-core/milestones{/number}","notifications_url":"https://api.github.com/repos/superdesk/superdesk-client-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/superdesk/superdesk-client-core/labels{/name}","releases_url":"https://api.github.com/repos/superdesk/superdesk-client-core/releases{/id}","deployments_url":"https://api.github.com/repos/superdesk/superdesk-client-core/deployments","created_at":"2016-01-29T02:33:16Z","updated_at":"2018-10-08T07:41:33Z","pushed_at":"2018-10-08T07:41:31Z","git_url":"git://github.com/superdesk/superdesk-client-core.git","ssh_url":"git@github.com:superdesk/superdesk-client-core.git","clone_url":"https://github.com/superdesk/superdesk-client-core.git","svn_url":"https://github.com/superdesk/superdesk-client-core","homepage":"","size":15494,"stargazers_count":16,"watchers_count":16,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":56,"mirror_url":null,"archived":false,"open_issues_count":5,"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","node_id":"MDc6TGljZW5zZTE="},"forks":56,"open_issues":5,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/superdesk/superdesk-client-core/pulls/2583"},"html":{"href":"https://github.com/superdesk/superdesk-client-core/pull/2583"},"issue":{"href":"https://api.github.com/repos/superdesk/superdesk-client-core/issues/2583"},"comments":{"href":"https://api.github.com/repos/superdesk/superdesk-client-core/issues/2583/comments"},"review_comments":{"href":"https://api.github.com/repos/superdesk/superdesk-client-core/pulls/2583/comments"},"review_comment":{"href":"https://api.github.com/repos/superdesk/superdesk-client-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/superdesk/superdesk-client-core/pulls/2583/commits"},"statuses":{"href":"https://api.github.com/repos/superdesk/superdesk-client-core/statuses/f4dd74466850ea3d8bcf2ecc0c5827ec586359ac"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"petrjasek"}}