{"action":"created","comment":{"url":"https://api.github.com/repos/kubernetes-ui/object-describer/pulls/comments/37890141","id":37890141,"diff_hunk":"@@ -1,20 +1,28 @@\n <span ng-if=\"containerState | isEmptyObj\"><em>none</em></span>\n-<span ng-repeat=\"(state, stateDescription) in containerState | limitTo: 1\">\n-  <span ng-switch=\"state\">\n-    <span ng-switch-when=\"waiting\">\n+<div ng-repeat=\"(state, stateDescription) in containerState | limitTo: 1\">\n+  <div ng-switch=\"state\">\n+    <div ng-switch-when=\"waiting\">\n       Waiting\n-      <span ng-if=\"stateDescription.reason\">({{stateDescription.reason}})</span>\n-    </span>\n-    <span ng-switch-when=\"running\">\n+      <!-- Even though we use collapse-long-text, add a style to prevent long\n+           unbroken identifiers like docker pull specs from overflowing. -->\n+      <div ng-if=\"stateDescription.reason\" style=\"overflow: hidden; text-overflow: ellipsis;\">\n+        Reason:\n+        <span ng-if=\"stateDescription.reason\" collapse-long-text value=\"{{stateDescription.reason}}\"></span>\n+      </div>\n+    </div>\n+    <div ng-switch-when=\"running\">\n       Running\n       <span ng-if=\"stateDescription.startedAt\">since {{stateDescription.startedAt | date:'medium'}}</span>\n-    </span>\n-    <span ng-switch-when=\"terminated\">\n+    </div>\n+    <div ng-switch-when=\"terminated\">\n       Terminated\n       <span ng-if=\"stateDescription.finishedAt\">at {{stateDescription.finishedAt | date:'medium'}}</span>\n       <span ng-if=\"stateDescription.exitCode\">with exit code {{stateDescription.exitCode}}</span>\n-      <span ng-if=\"stateDescription.reason\">({{stateDescription.reason}})</span>\n-    </span>\n-    <span ng-switch-default>{{state}}</span>\n-  </span>\n-</span>\n+      <div ng-if=\"stateDescription.reason\" style=\"overflow: hidden; text-overflow: ellipsis;\">","path":"views/container-state.html","position":34,"original_position":34,"commit_id":"d0606711ed93a267dff62830fb518e843bdfa278","original_commit_id":"d0606711ed93a267dff62830fb518e843bdfa278","user":{"login":"spadgett","id":1167259,"avatar_url":"https://avatars.githubusercontent.com/u/1167259?v=3","gravatar_id":"","url":"https://api.github.com/users/spadgett","html_url":"https://github.com/spadgett","followers_url":"https://api.github.com/users/spadgett/followers","following_url":"https://api.github.com/users/spadgett/following{/other_user}","gists_url":"https://api.github.com/users/spadgett/gists{/gist_id}","starred_url":"https://api.github.com/users/spadgett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spadgett/subscriptions","organizations_url":"https://api.github.com/users/spadgett/orgs","repos_url":"https://api.github.com/users/spadgett/repos","events_url":"https://api.github.com/users/spadgett/events{/privacy}","received_events_url":"https://api.github.com/users/spadgett/received_events","type":"User","site_admin":false},"body":"No, only one ellipsis. You can still click the text to expand. Only the long, unbreakable lines get an ellipsis (e.g., pull specs).","created_at":"2015-08-25T16:58:09Z","updated_at":"2015-08-25T16:58:09Z","html_url":"https://github.com/kubernetes-ui/object-describer/pull/26#discussion_r37890141","pull_request_url":"https://api.github.com/repos/kubernetes-ui/object-describer/pulls/26","_links":{"self":{"href":"https://api.github.com/repos/kubernetes-ui/object-describer/pulls/comments/37890141"},"html":{"href":"https://github.com/kubernetes-ui/object-describer/pull/26#discussion_r37890141"},"pull_request":{"href":"https://api.github.com/repos/kubernetes-ui/object-describer/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/kubernetes-ui/object-describer/pulls/26","id":43286173,"html_url":"https://github.com/kubernetes-ui/object-describer/pull/26","diff_url":"https://github.com/kubernetes-ui/object-describer/pull/26.diff","patch_url":"https://github.com/kubernetes-ui/object-describer/pull/26.patch","issue_url":"https://api.github.com/repos/kubernetes-ui/object-describer/issues/26","number":26,"state":"open","locked":false,"title":"Collapse long container state reason messages","user":{"login":"spadgett","id":1167259,"avatar_url":"https://avatars.githubusercontent.com/u/1167259?v=3","gravatar_id":"","url":"https://api.github.com/users/spadgett","html_url":"https://github.com/spadgett","followers_url":"https://api.github.com/users/spadgett/followers","following_url":"https://api.github.com/users/spadgett/following{/other_user}","gists_url":"https://api.github.com/users/spadgett/gists{/gist_id}","starred_url":"https://api.github.com/users/spadgett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spadgett/subscriptions","organizations_url":"https://api.github.com/users/spadgett/orgs","repos_url":"https://api.github.com/users/spadgett/repos","events_url":"https://api.github.com/users/spadgett/events{/privacy}","received_events_url":"https://api.github.com/users/spadgett/received_events","type":"User","site_admin":false},"body":"See https://github.com/openshift/origin/issues/2572\r\n\r\n![kubernetes_describer_example](https://cloud.githubusercontent.com/assets/1167259/9467869/8176a40c-4b0c-11e5-972b-64292f66666c.png)","created_at":"2015-08-25T13:35:42Z","updated_at":"2015-08-25T16:58:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fde510a4c072f8a7b72272ebf2b253cc5451fd52","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kubernetes-ui/object-describer/pulls/26/commits","review_comments_url":"https://api.github.com/repos/kubernetes-ui/object-describer/pulls/26/comments","review_comment_url":"https://api.github.com/repos/kubernetes-ui/object-describer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kubernetes-ui/object-describer/issues/26/comments","statuses_url":"https://api.github.com/repos/kubernetes-ui/object-describer/statuses/d0606711ed93a267dff62830fb518e843bdfa278","head":{"label":"spadgett:container-status-errors","ref":"container-status-errors","sha":"d0606711ed93a267dff62830fb518e843bdfa278","user":{"login":"spadgett","id":1167259,"avatar_url":"https://avatars.githubusercontent.com/u/1167259?v=3","gravatar_id":"","url":"https://api.github.com/users/spadgett","html_url":"https://github.com/spadgett","followers_url":"https://api.github.com/users/spadgett/followers","following_url":"https://api.github.com/users/spadgett/following{/other_user}","gists_url":"https://api.github.com/users/spadgett/gists{/gist_id}","starred_url":"https://api.github.com/users/spadgett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spadgett/subscriptions","organizations_url":"https://api.github.com/users/spadgett/orgs","repos_url":"https://api.github.com/users/spadgett/repos","events_url":"https://api.github.com/users/spadgett/events{/privacy}","received_events_url":"https://api.github.com/users/spadgett/received_events","type":"User","site_admin":false},"repo":{"id":34480931,"name":"kubernetes-object-describer","full_name":"spadgett/kubernetes-object-describer","owner":{"login":"spadgett","id":1167259,"avatar_url":"https://avatars.githubusercontent.com/u/1167259?v=3","gravatar_id":"","url":"https://api.github.com/users/spadgett","html_url":"https://github.com/spadgett","followers_url":"https://api.github.com/users/spadgett/followers","following_url":"https://api.github.com/users/spadgett/following{/other_user}","gists_url":"https://api.github.com/users/spadgett/gists{/gist_id}","starred_url":"https://api.github.com/users/spadgett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spadgett/subscriptions","organizations_url":"https://api.github.com/users/spadgett/orgs","repos_url":"https://api.github.com/users/spadgett/repos","events_url":"https://api.github.com/users/spadgett/events{/privacy}","received_events_url":"https://api.github.com/users/spadgett/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/spadgett/kubernetes-object-describer","description":"","fork":true,"url":"https://api.github.com/repos/spadgett/kubernetes-object-describer","forks_url":"https://api.github.com/repos/spadgett/kubernetes-object-describer/forks","keys_url":"https://api.github.com/repos/spadgett/kubernetes-object-describer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spadgett/kubernetes-object-describer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spadgett/kubernetes-object-describer/teams","hooks_url":"https://api.github.com/repos/spadgett/kubernetes-object-describer/hooks","issue_events_url":"https://api.github.com/repos/spadgett/kubernetes-object-describer/issues/events{/number}","events_url":"https://api.github.com/repos/spadgett/kubernetes-object-describer/events","assignees_url":"https://api.github.com/repos/spadgett/kubernetes-object-describer/assignees{/user}","branches_url":"https://api.github.com/repos/spadgett/kubernetes-object-describer/branches{/branch}","tags_url":"https://api.github.com/repos/spadgett/kubernetes-object-describer/tags","blobs_url":"https://api.github.com/repos/spadgett/kubernetes-object-describer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spadgett/kubernetes-object-describer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spadgett/kubernetes-object-describer/git/refs{/sha}","trees_url":"https://api.github.com/repos/spadgett/kubernetes-object-describer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spadgett/kubernetes-object-describer/statuses/{sha}","languages_url":"https://api.github.com/repos/spadgett/kubernetes-object-describer/languages","stargazers_url":"https://api.github.com/repos/spadgett/kubernetes-object-describer/stargazers","contributors_url":"https://api.github.com/repos/spadgett/kubernetes-object-describer/contributors","subscribers_url":"https://api.github.com/repos/spadgett/kubernetes-object-describer/subscribers","subscription_url":"https://api.github.com/repos/spadgett/kubernetes-object-describer/subscription","commits_url":"https://api.github.com/repos/spadgett/kubernetes-object-describer/commits{/sha}","git_commits_url":"https://api.github.com/repos/spadgett/kubernetes-object-describer/git/commits{/sha}","comments_url":"https://api.github.com/repos/spadgett/kubernetes-object-describer/comments{/number}","issue_comment_url":"https://api.github.com/repos/spadgett/kubernetes-object-describer/issues/comments{/number}","contents_url":"https://api.github.com/repos/spadgett/kubernetes-object-describer/contents/{+path}","compare_url":"https://api.github.com/repos/spadgett/kubernetes-object-describer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spadgett/kubernetes-object-describer/merges","archive_url":"https://api.github.com/repos/spadgett/kubernetes-object-describer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spadgett/kubernetes-object-describer/downloads","issues_url":"https://api.github.com/repos/spadgett/kubernetes-object-describer/issues{/number}","pulls_url":"https://api.github.com/repos/spadgett/kubernetes-object-describer/pulls{/number}","milestones_url":"https://api.github.com/repos/spadgett/kubernetes-object-describer/milestones{/number}","notifications_url":"https://api.github.com/repos/spadgett/kubernetes-object-describer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spadgett/kubernetes-object-describer/labels{/name}","releases_url":"https://api.github.com/repos/spadgett/kubernetes-object-describer/releases{/id}","created_at":"2015-04-23T20:52:50Z","updated_at":"2015-05-12T21:05:53Z","pushed_at":"2015-08-25T13:32:37Z","git_url":"git://github.com/spadgett/kubernetes-object-describer.git","ssh_url":"git@github.com:spadgett/kubernetes-object-describer.git","clone_url":"https://github.com/spadgett/kubernetes-object-describer.git","svn_url":"https://github.com/spadgett/kubernetes-object-describer","homepage":null,"size":240,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"kubernetes-ui:master","ref":"master","sha":"2e2b474b3b8e889040e92b258c2f627abb0d199c","user":{"login":"kubernetes-ui","id":10817268,"avatar_url":"https://avatars.githubusercontent.com/u/10817268?v=3","gravatar_id":"","url":"https://api.github.com/users/kubernetes-ui","html_url":"https://github.com/kubernetes-ui","followers_url":"https://api.github.com/users/kubernetes-ui/followers","following_url":"https://api.github.com/users/kubernetes-ui/following{/other_user}","gists_url":"https://api.github.com/users/kubernetes-ui/gists{/gist_id}","starred_url":"https://api.github.com/users/kubernetes-ui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubernetes-ui/subscriptions","organizations_url":"https://api.github.com/users/kubernetes-ui/orgs","repos_url":"https://api.github.com/users/kubernetes-ui/repos","events_url":"https://api.github.com/users/kubernetes-ui/events{/privacy}","received_events_url":"https://api.github.com/users/kubernetes-ui/received_events","type":"Organization","site_admin":false},"repo":{"id":33254880,"name":"object-describer","full_name":"kubernetes-ui/object-describer","owner":{"login":"kubernetes-ui","id":10817268,"avatar_url":"https://avatars.githubusercontent.com/u/10817268?v=3","gravatar_id":"","url":"https://api.github.com/users/kubernetes-ui","html_url":"https://github.com/kubernetes-ui","followers_url":"https://api.github.com/users/kubernetes-ui/followers","following_url":"https://api.github.com/users/kubernetes-ui/following{/other_user}","gists_url":"https://api.github.com/users/kubernetes-ui/gists{/gist_id}","starred_url":"https://api.github.com/users/kubernetes-ui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubernetes-ui/subscriptions","organizations_url":"https://api.github.com/users/kubernetes-ui/orgs","repos_url":"https://api.github.com/users/kubernetes-ui/repos","events_url":"https://api.github.com/users/kubernetes-ui/events{/privacy}","received_events_url":"https://api.github.com/users/kubernetes-ui/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kubernetes-ui/object-describer","description":"","fork":false,"url":"https://api.github.com/repos/kubernetes-ui/object-describer","forks_url":"https://api.github.com/repos/kubernetes-ui/object-describer/forks","keys_url":"https://api.github.com/repos/kubernetes-ui/object-describer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kubernetes-ui/object-describer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kubernetes-ui/object-describer/teams","hooks_url":"https://api.github.com/repos/kubernetes-ui/object-describer/hooks","issue_events_url":"https://api.github.com/repos/kubernetes-ui/object-describer/issues/events{/number}","events_url":"https://api.github.com/repos/kubernetes-ui/object-describer/events","assignees_url":"https://api.github.com/repos/kubernetes-ui/object-describer/assignees{/user}","branches_url":"https://api.github.com/repos/kubernetes-ui/object-describer/branches{/branch}","tags_url":"https://api.github.com/repos/kubernetes-ui/object-describer/tags","blobs_url":"https://api.github.com/repos/kubernetes-ui/object-describer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kubernetes-ui/object-describer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kubernetes-ui/object-describer/git/refs{/sha}","trees_url":"https://api.github.com/repos/kubernetes-ui/object-describer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kubernetes-ui/object-describer/statuses/{sha}","languages_url":"https://api.github.com/repos/kubernetes-ui/object-describer/languages","stargazers_url":"https://api.github.com/repos/kubernetes-ui/object-describer/stargazers","contributors_url":"https://api.github.com/repos/kubernetes-ui/object-describer/contributors","subscribers_url":"https://api.github.com/repos/kubernetes-ui/object-describer/subscribers","subscription_url":"https://api.github.com/repos/kubernetes-ui/object-describer/subscription","commits_url":"https://api.github.com/repos/kubernetes-ui/object-describer/commits{/sha}","git_commits_url":"https://api.github.com/repos/kubernetes-ui/object-describer/git/commits{/sha}","comments_url":"https://api.github.com/repos/kubernetes-ui/object-describer/comments{/number}","issue_comment_url":"https://api.github.com/repos/kubernetes-ui/object-describer/issues/comments{/number}","contents_url":"https://api.github.com/repos/kubernetes-ui/object-describer/contents/{+path}","compare_url":"https://api.github.com/repos/kubernetes-ui/object-describer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kubernetes-ui/object-describer/merges","archive_url":"https://api.github.com/repos/kubernetes-ui/object-describer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kubernetes-ui/object-describer/downloads","issues_url":"https://api.github.com/repos/kubernetes-ui/object-describer/issues{/number}","pulls_url":"https://api.github.com/repos/kubernetes-ui/object-describer/pulls{/number}","milestones_url":"https://api.github.com/repos/kubernetes-ui/object-describer/milestones{/number}","notifications_url":"https://api.github.com/repos/kubernetes-ui/object-describer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kubernetes-ui/object-describer/labels{/name}","releases_url":"https://api.github.com/repos/kubernetes-ui/object-describer/releases{/id}","created_at":"2015-04-01T15:14:19Z","updated_at":"2015-04-27T21:11:56Z","pushed_at":"2015-08-25T13:35:43Z","git_url":"git://github.com/kubernetes-ui/object-describer.git","ssh_url":"git@github.com:kubernetes-ui/object-describer.git","clone_url":"https://github.com/kubernetes-ui/object-describer.git","svn_url":"https://github.com/kubernetes-ui/object-describer","homepage":null,"size":390,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":4,"forks":7,"open_issues":4,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kubernetes-ui/object-describer/pulls/26"},"html":{"href":"https://github.com/kubernetes-ui/object-describer/pull/26"},"issue":{"href":"https://api.github.com/repos/kubernetes-ui/object-describer/issues/26"},"comments":{"href":"https://api.github.com/repos/kubernetes-ui/object-describer/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/kubernetes-ui/object-describer/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/kubernetes-ui/object-describer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kubernetes-ui/object-describer/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/kubernetes-ui/object-describer/statuses/d0606711ed93a267dff62830fb518e843bdfa278"}}}}