{"action":"created","issue":{"url":"https://api.github.com/repos/umbraco/OurUmbraco/issues/67","labels_url":"https://api.github.com/repos/umbraco/OurUmbraco/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/umbraco/OurUmbraco/issues/67/comments","events_url":"https://api.github.com/repos/umbraco/OurUmbraco/issues/67/events","html_url":"https://github.com/umbraco/OurUmbraco/pull/67","id":101377552,"number":67,"title":"OUR-318: Fix text when only on vote for a package","user":{"login":"Aaen","id":2038482,"avatar_url":"https://avatars.githubusercontent.com/u/2038482?v=3","gravatar_id":"","url":"https://api.github.com/users/Aaen","html_url":"https://github.com/Aaen","followers_url":"https://api.github.com/users/Aaen/followers","following_url":"https://api.github.com/users/Aaen/following{/other_user}","gists_url":"https://api.github.com/users/Aaen/gists{/gist_id}","starred_url":"https://api.github.com/users/Aaen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aaen/subscriptions","organizations_url":"https://api.github.com/users/Aaen/orgs","repos_url":"https://api.github.com/users/Aaen/repos","events_url":"https://api.github.com/users/Aaen/events{/privacy}","received_events_url":"https://api.github.com/users/Aaen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-17T09:29:00Z","updated_at":"2015-08-21T10:18:01Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/umbraco/OurUmbraco/pulls/67","html_url":"https://github.com/umbraco/OurUmbraco/pull/67","diff_url":"https://github.com/umbraco/OurUmbraco/pull/67.diff","patch_url":"https://github.com/umbraco/OurUmbraco/pull/67.patch"},"body":"When a package only has 1 vote the text should be \"1 vote\" instead of \"1 votes\".\r\n\r\nSome examples:\r\nhttps://our.umbraco.org/projects/collaboration/mdedit/\r\nhttps://our.umbraco.org/projects/backoffice-extensions/nupickers-vimeo-picker/\r\nhttps://our.umbraco.org/projects/backoffice-extensions/attackmonkey-grid-locker/"},"comment":{"url":"https://api.github.com/repos/umbraco/OurUmbraco/issues/comments/133364456","html_url":"https://github.com/umbraco/OurUmbraco/pull/67#issuecomment-133364456","issue_url":"https://api.github.com/repos/umbraco/OurUmbraco/issues/67","id":133364456,"user":{"login":"bjarnef","id":2919859,"avatar_url":"https://avatars.githubusercontent.com/u/2919859?v=3","gravatar_id":"","url":"https://api.github.com/users/bjarnef","html_url":"https://github.com/bjarnef","followers_url":"https://api.github.com/users/bjarnef/followers","following_url":"https://api.github.com/users/bjarnef/following{/other_user}","gists_url":"https://api.github.com/users/bjarnef/gists{/gist_id}","starred_url":"https://api.github.com/users/bjarnef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjarnef/subscriptions","organizations_url":"https://api.github.com/users/bjarnef/orgs","repos_url":"https://api.github.com/users/bjarnef/repos","events_url":"https://api.github.com/users/bjarnef/events{/privacy}","received_events_url":"https://api.github.com/users/bjarnef/received_events","type":"User","site_admin":false},"created_at":"2015-08-21T10:18:01Z","updated_at":"2015-08-21T10:18:01Z","body":"L46-47 can also just be written in a single line:\r\n\r\nvote / votes\r\n```\r\nvar voteText = totalVotes == 1 ? \"vote\" : \"votes\";\r\n```\r\n\r\nor combine it with the number of votes:\r\n\r\n1 vote / 2 votes\r\n```\r\nvar voteText = totalVotes + \" \" + ((totalVotes == 1) ? \"vote\" : \"votes\");\r\n```\r\n"}}