{"action":"created","comment":{"url":"https://api.github.com/repos/ethereum/mist/pulls/comments/64579482","id":64579482,"diff_hunk":"@@ -30,12 +30,49 @@ Template.registerHelper('CurrentBlock', function(){\n });\n \n /**\n-Return the current dirname.\n+Return the preload modules dirname.\n \n @method (dirname)\n **/\n-Template.registerHelper('dirname', function(){\n-    return window.dirname;\n+Template.registerHelper('preload_dirname', function(){\n+    return window.mist.dirname + '/modules/preload';\n+});\n+\n+/**\n+Return the Mist API.\n+\n+@method (mist)\n+**/\n+Template.registerHelper('mist', function(){\n+    return window.mist;\n+});\n+\n+\n+/**\n+Return the app mode.\n+\n+@method (mode)\n+**/\n+Template.registerHelper('mode', function(){\n+    return window.mist.mode;\n+});\n+\n+/**\n+Return the friendly app name.\n+\n+@method (appName)\n+**/\n+Template.registerHelper('appName', function(){\n+    return window.mist.mode === 'mist' ? 'Mist' : 'Ethereum Wallet';\n+});\n+\n+/**\n+Return the app icon path.\n+\n+@method (iconPath)\n+**/\n+Template.registerHelper('appIconPath', function(){\n+    return 'file://'+ window.mist.dirname +'/icons/'+ window.mist.mode +'/icon2x.png';","path":"interface/client/lib/helpers/templateHelpers.js","position":49,"original_position":49,"commit_id":"5f85c11a82190814f81cae47c662085b788cb677","original_commit_id":"5f85c11a82190814f81cae47c662085b788cb677","user":{"login":"frozeman","id":232662,"avatar_url":"https://avatars.githubusercontent.com/u/232662?v=3","gravatar_id":"","url":"https://api.github.com/users/frozeman","html_url":"https://github.com/frozeman","followers_url":"https://api.github.com/users/frozeman/followers","following_url":"https://api.github.com/users/frozeman/following{/other_user}","gists_url":"https://api.github.com/users/frozeman/gists{/gist_id}","starred_url":"https://api.github.com/users/frozeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frozeman/subscriptions","organizations_url":"https://api.github.com/users/frozeman/orgs","repos_url":"https://api.github.com/users/frozeman/repos","events_url":"https://api.github.com/users/frozeman/events{/privacy}","received_events_url":"https://api.github.com/users/frozeman/received_events","type":"User","site_admin":false},"body":"Why this PR is containing stuff alex added a while back, or did you change thet stuff @hiddentao?\r\n","created_at":"2016-05-25T14:12:29Z","updated_at":"2016-05-25T14:12:29Z","html_url":"https://github.com/ethereum/mist/pull/707#discussion_r64579482","pull_request_url":"https://api.github.com/repos/ethereum/mist/pulls/707","_links":{"self":{"href":"https://api.github.com/repos/ethereum/mist/pulls/comments/64579482"},"html":{"href":"https://github.com/ethereum/mist/pull/707#discussion_r64579482"},"pull_request":{"href":"https://api.github.com/repos/ethereum/mist/pulls/707"}}},"pull_request":{"url":"https://api.github.com/repos/ethereum/mist/pulls/707","id":71341963,"html_url":"https://github.com/ethereum/mist/pull/707","diff_url":"https://github.com/ethereum/mist/pull/707.diff","patch_url":"https://github.com/ethereum/mist/pull/707.patch","issue_url":"https://api.github.com/repos/ethereum/mist/issues/707","number":707,"state":"open","locked":false,"title":"Check for update at startup and inform the user if a new version is available","user":{"login":"hiddentao","id":266594,"avatar_url":"https://avatars.githubusercontent.com/u/266594?v=3","gravatar_id":"","url":"https://api.github.com/users/hiddentao","html_url":"https://github.com/hiddentao","followers_url":"https://api.github.com/users/hiddentao/followers","following_url":"https://api.github.com/users/hiddentao/following{/other_user}","gists_url":"https://api.github.com/users/hiddentao/gists{/gist_id}","starred_url":"https://api.github.com/users/hiddentao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hiddentao/subscriptions","organizations_url":"https://api.github.com/users/hiddentao/orgs","repos_url":"https://api.github.com/users/hiddentao/repos","events_url":"https://api.github.com/users/hiddentao/events{/privacy}","received_events_url":"https://api.github.com/users/hiddentao/received_events","type":"User","site_admin":false},"body":"When the app runs this checks the ethereum/mist Github releases list for newer release that's not in draft mode. If one is available (newer release will have a version tag > version in app's package.json) then a popup will be shown to the user informing them of this. The internal logic checks to see what you're running (Mist or Wallet) and adjusts the look and feel and text accordingly.\r\n\r\nThe popup contains a link to the specific new release's page on Github releases. \r\n\r\nA \"Check for updates...\" item in the main menu (under \"About\") also allows the user to trigger this check at will.","created_at":"2016-05-25T07:26:02Z","updated_at":"2016-05-25T14:12:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ff3326b69ea74cb04871420fc2aeb368335ac816","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ethereum/mist/pulls/707/commits","review_comments_url":"https://api.github.com/repos/ethereum/mist/pulls/707/comments","review_comment_url":"https://api.github.com/repos/ethereum/mist/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ethereum/mist/issues/707/comments","statuses_url":"https://api.github.com/repos/ethereum/mist/statuses/5f85c11a82190814f81cae47c662085b788cb677","head":{"label":"hiddentao:update_checker","ref":"update_checker","sha":"5f85c11a82190814f81cae47c662085b788cb677","user":{"login":"hiddentao","id":266594,"avatar_url":"https://avatars.githubusercontent.com/u/266594?v=3","gravatar_id":"","url":"https://api.github.com/users/hiddentao","html_url":"https://github.com/hiddentao","followers_url":"https://api.github.com/users/hiddentao/followers","following_url":"https://api.github.com/users/hiddentao/following{/other_user}","gists_url":"https://api.github.com/users/hiddentao/gists{/gist_id}","starred_url":"https://api.github.com/users/hiddentao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hiddentao/subscriptions","organizations_url":"https://api.github.com/users/hiddentao/orgs","repos_url":"https://api.github.com/users/hiddentao/repos","events_url":"https://api.github.com/users/hiddentao/events{/privacy}","received_events_url":"https://api.github.com/users/hiddentao/received_events","type":"User","site_admin":false},"repo":{"id":54255850,"name":"mist","full_name":"hiddentao/mist","owner":{"login":"hiddentao","id":266594,"avatar_url":"https://avatars.githubusercontent.com/u/266594?v=3","gravatar_id":"","url":"https://api.github.com/users/hiddentao","html_url":"https://github.com/hiddentao","followers_url":"https://api.github.com/users/hiddentao/followers","following_url":"https://api.github.com/users/hiddentao/following{/other_user}","gists_url":"https://api.github.com/users/hiddentao/gists{/gist_id}","starred_url":"https://api.github.com/users/hiddentao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hiddentao/subscriptions","organizations_url":"https://api.github.com/users/hiddentao/orgs","repos_url":"https://api.github.com/users/hiddentao/repos","events_url":"https://api.github.com/users/hiddentao/events{/privacy}","received_events_url":"https://api.github.com/users/hiddentao/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hiddentao/mist","description":"Mist browser","fork":true,"url":"https://api.github.com/repos/hiddentao/mist","forks_url":"https://api.github.com/repos/hiddentao/mist/forks","keys_url":"https://api.github.com/repos/hiddentao/mist/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hiddentao/mist/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hiddentao/mist/teams","hooks_url":"https://api.github.com/repos/hiddentao/mist/hooks","issue_events_url":"https://api.github.com/repos/hiddentao/mist/issues/events{/number}","events_url":"https://api.github.com/repos/hiddentao/mist/events","assignees_url":"https://api.github.com/repos/hiddentao/mist/assignees{/user}","branches_url":"https://api.github.com/repos/hiddentao/mist/branches{/branch}","tags_url":"https://api.github.com/repos/hiddentao/mist/tags","blobs_url":"https://api.github.com/repos/hiddentao/mist/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hiddentao/mist/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hiddentao/mist/git/refs{/sha}","trees_url":"https://api.github.com/repos/hiddentao/mist/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hiddentao/mist/statuses/{sha}","languages_url":"https://api.github.com/repos/hiddentao/mist/languages","stargazers_url":"https://api.github.com/repos/hiddentao/mist/stargazers","contributors_url":"https://api.github.com/repos/hiddentao/mist/contributors","subscribers_url":"https://api.github.com/repos/hiddentao/mist/subscribers","subscription_url":"https://api.github.com/repos/hiddentao/mist/subscription","commits_url":"https://api.github.com/repos/hiddentao/mist/commits{/sha}","git_commits_url":"https://api.github.com/repos/hiddentao/mist/git/commits{/sha}","comments_url":"https://api.github.com/repos/hiddentao/mist/comments{/number}","issue_comment_url":"https://api.github.com/repos/hiddentao/mist/issues/comments{/number}","contents_url":"https://api.github.com/repos/hiddentao/mist/contents/{+path}","compare_url":"https://api.github.com/repos/hiddentao/mist/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hiddentao/mist/merges","archive_url":"https://api.github.com/repos/hiddentao/mist/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hiddentao/mist/downloads","issues_url":"https://api.github.com/repos/hiddentao/mist/issues{/number}","pulls_url":"https://api.github.com/repos/hiddentao/mist/pulls{/number}","milestones_url":"https://api.github.com/repos/hiddentao/mist/milestones{/number}","notifications_url":"https://api.github.com/repos/hiddentao/mist/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hiddentao/mist/labels{/name}","releases_url":"https://api.github.com/repos/hiddentao/mist/releases{/id}","deployments_url":"https://api.github.com/repos/hiddentao/mist/deployments","created_at":"2016-03-19T08:33:19Z","updated_at":"2016-03-19T08:33:21Z","pushed_at":"2016-05-25T09:43:18Z","git_url":"git://github.com/hiddentao/mist.git","ssh_url":"git@github.com:hiddentao/mist.git","clone_url":"https://github.com/hiddentao/mist.git","svn_url":"https://github.com/hiddentao/mist","homepage":null,"size":282818,"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":"develop"}},"base":{"label":"ethereum:develop","ref":"develop","sha":"db485a9b48d24ba7b576153f5bcb99b7697a7f7b","user":{"login":"ethereum","id":6250754,"avatar_url":"https://avatars.githubusercontent.com/u/6250754?v=3","gravatar_id":"","url":"https://api.github.com/users/ethereum","html_url":"https://github.com/ethereum","followers_url":"https://api.github.com/users/ethereum/followers","following_url":"https://api.github.com/users/ethereum/following{/other_user}","gists_url":"https://api.github.com/users/ethereum/gists{/gist_id}","starred_url":"https://api.github.com/users/ethereum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethereum/subscriptions","organizations_url":"https://api.github.com/users/ethereum/orgs","repos_url":"https://api.github.com/users/ethereum/repos","events_url":"https://api.github.com/users/ethereum/events{/privacy}","received_events_url":"https://api.github.com/users/ethereum/received_events","type":"Organization","site_admin":false},"repo":{"id":37201011,"name":"mist","full_name":"ethereum/mist","owner":{"login":"ethereum","id":6250754,"avatar_url":"https://avatars.githubusercontent.com/u/6250754?v=3","gravatar_id":"","url":"https://api.github.com/users/ethereum","html_url":"https://github.com/ethereum","followers_url":"https://api.github.com/users/ethereum/followers","following_url":"https://api.github.com/users/ethereum/following{/other_user}","gists_url":"https://api.github.com/users/ethereum/gists{/gist_id}","starred_url":"https://api.github.com/users/ethereum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethereum/subscriptions","organizations_url":"https://api.github.com/users/ethereum/orgs","repos_url":"https://api.github.com/users/ethereum/repos","events_url":"https://api.github.com/users/ethereum/events{/privacy}","received_events_url":"https://api.github.com/users/ethereum/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ethereum/mist","description":"Mist browser","fork":false,"url":"https://api.github.com/repos/ethereum/mist","forks_url":"https://api.github.com/repos/ethereum/mist/forks","keys_url":"https://api.github.com/repos/ethereum/mist/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ethereum/mist/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ethereum/mist/teams","hooks_url":"https://api.github.com/repos/ethereum/mist/hooks","issue_events_url":"https://api.github.com/repos/ethereum/mist/issues/events{/number}","events_url":"https://api.github.com/repos/ethereum/mist/events","assignees_url":"https://api.github.com/repos/ethereum/mist/assignees{/user}","branches_url":"https://api.github.com/repos/ethereum/mist/branches{/branch}","tags_url":"https://api.github.com/repos/ethereum/mist/tags","blobs_url":"https://api.github.com/repos/ethereum/mist/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ethereum/mist/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ethereum/mist/git/refs{/sha}","trees_url":"https://api.github.com/repos/ethereum/mist/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ethereum/mist/statuses/{sha}","languages_url":"https://api.github.com/repos/ethereum/mist/languages","stargazers_url":"https://api.github.com/repos/ethereum/mist/stargazers","contributors_url":"https://api.github.com/repos/ethereum/mist/contributors","subscribers_url":"https://api.github.com/repos/ethereum/mist/subscribers","subscription_url":"https://api.github.com/repos/ethereum/mist/subscription","commits_url":"https://api.github.com/repos/ethereum/mist/commits{/sha}","git_commits_url":"https://api.github.com/repos/ethereum/mist/git/commits{/sha}","comments_url":"https://api.github.com/repos/ethereum/mist/comments{/number}","issue_comment_url":"https://api.github.com/repos/ethereum/mist/issues/comments{/number}","contents_url":"https://api.github.com/repos/ethereum/mist/contents/{+path}","compare_url":"https://api.github.com/repos/ethereum/mist/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ethereum/mist/merges","archive_url":"https://api.github.com/repos/ethereum/mist/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ethereum/mist/downloads","issues_url":"https://api.github.com/repos/ethereum/mist/issues{/number}","pulls_url":"https://api.github.com/repos/ethereum/mist/pulls{/number}","milestones_url":"https://api.github.com/repos/ethereum/mist/milestones{/number}","notifications_url":"https://api.github.com/repos/ethereum/mist/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ethereum/mist/labels{/name}","releases_url":"https://api.github.com/repos/ethereum/mist/releases{/id}","deployments_url":"https://api.github.com/repos/ethereum/mist/deployments","created_at":"2015-06-10T14:09:06Z","updated_at":"2016-05-25T10:25:49Z","pushed_at":"2016-05-25T14:03:52Z","git_url":"git://github.com/ethereum/mist.git","ssh_url":"git@github.com:ethereum/mist.git","clone_url":"https://github.com/ethereum/mist.git","svn_url":"https://github.com/ethereum/mist","homepage":null,"size":402980,"stargazers_count":715,"watchers_count":715,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":188,"mirror_url":null,"open_issues_count":174,"forks":188,"open_issues":174,"watchers":715,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/ethereum/mist/pulls/707"},"html":{"href":"https://github.com/ethereum/mist/pull/707"},"issue":{"href":"https://api.github.com/repos/ethereum/mist/issues/707"},"comments":{"href":"https://api.github.com/repos/ethereum/mist/issues/707/comments"},"review_comments":{"href":"https://api.github.com/repos/ethereum/mist/pulls/707/comments"},"review_comment":{"href":"https://api.github.com/repos/ethereum/mist/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ethereum/mist/pulls/707/commits"},"statuses":{"href":"https://api.github.com/repos/ethereum/mist/statuses/5f85c11a82190814f81cae47c662085b788cb677"}}}}
{"actor":{"display_login":"frozeman"}}