{"action":"created","comment":{"url":"https://api.github.com/repos/ripple/ripple-client/pulls/comments/26186702","id":26186702,"diff_hunk":"@@ -31,12 +31,30 @@ module.controller('NavbarCtrl', ['$scope', '$element', '$compile', 'rpId',\n       // Reload\n       location.reload();\n   };\n-\n   // Username\n   $scope.$watch('userCredentials', function(){\n     var username = $scope.userCredentials.username;\n     if(username) $scope.loading = false;\n     $scope.shortUsername = null;\n+    if(!$scope.connected && username) {\n+      $scope.message = 'Disconnected from the Ripple network'; \n+    }\n+    else if ($scope.fee && $scope.fee > Options.low_load_threshold && $scope.fee < (Options.max_tx_network_fee/1000000)) {\n+      $scope.serverLoad = 'mediumLoad';\n+      $scope.message = 'Network fees are currently higher than normal. Fee: ' + $scope.fee + ' XRP';\n+    } \n+    else if ($scope.fee && $scope.fee >= (Options.max_tx_network_fee/1000000)) {\n+      $scope.serverLoad = 'highLoad';\n+      $scope.message = 'Network fees are currently higher than your maximum. Fee: ' + $scope.fee + ' XRP';\n+    }\n+    else if ($scope.fee) {\n+      $scope.message = 'Connected to the Ripple network. Fee: ' + $scope.fee + ' XRP';","path":"src/js/controllers/navbar.js","position":22,"original_position":22,"commit_id":"aa9e6e762b1cd4f239589f7d9fad0e3e0d009c73","original_commit_id":"aa9e6e762b1cd4f239589f7d9fad0e3e0d009c73","user":{"login":"rht","id":395821,"avatar_url":"https://avatars.githubusercontent.com/u/395821?v=3","gravatar_id":"","url":"https://api.github.com/users/rht","html_url":"https://github.com/rht","followers_url":"https://api.github.com/users/rht/followers","following_url":"https://api.github.com/users/rht/following{/other_user}","gists_url":"https://api.github.com/users/rht/gists{/gist_id}","starred_url":"https://api.github.com/users/rht/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rht/subscriptions","organizations_url":"https://api.github.com/users/rht/orgs","repos_url":"https://api.github.com/users/rht/repos","events_url":"https://api.github.com/users/rht/events{/privacy}","received_events_url":"https://api.github.com/users/rht/received_events","type":"User","site_admin":false},"body":"```ripple.Amount.from_json($scope.fee).to_human()``` while removing the /1000000's from other places.","created_at":"2015-03-11T03:30:10Z","updated_at":"2015-03-11T03:30:10Z","html_url":"https://github.com/ripple/ripple-client/pull/2298#discussion_r26186702","pull_request_url":"https://api.github.com/repos/ripple/ripple-client/pulls/2298","_links":{"self":{"href":"https://api.github.com/repos/ripple/ripple-client/pulls/comments/26186702"},"html":{"href":"https://github.com/ripple/ripple-client/pull/2298#discussion_r26186702"},"pull_request":{"href":"https://api.github.com/repos/ripple/ripple-client/pulls/2298"}}},"pull_request":{"url":"https://api.github.com/repos/ripple/ripple-client/pulls/2298","id":30880456,"html_url":"https://github.com/ripple/ripple-client/pull/2298","diff_url":"https://github.com/ripple/ripple-client/pull/2298.diff","patch_url":"https://github.com/ripple/ripple-client/pull/2298.patch","issue_url":"https://api.github.com/repos/ripple/ripple-client/issues/2298","number":2298,"state":"open","locked":false,"title":"[TASK] Display fees and load in RT (RT-3228)","user":{"login":"mrajvanshy","id":5142196,"avatar_url":"https://avatars.githubusercontent.com/u/5142196?v=3","gravatar_id":"","url":"https://api.github.com/users/mrajvanshy","html_url":"https://github.com/mrajvanshy","followers_url":"https://api.github.com/users/mrajvanshy/followers","following_url":"https://api.github.com/users/mrajvanshy/following{/other_user}","gists_url":"https://api.github.com/users/mrajvanshy/gists{/gist_id}","starred_url":"https://api.github.com/users/mrajvanshy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrajvanshy/subscriptions","organizations_url":"https://api.github.com/users/mrajvanshy/orgs","repos_url":"https://api.github.com/users/mrajvanshy/repos","events_url":"https://api.github.com/users/mrajvanshy/events{/privacy}","received_events_url":"https://api.github.com/users/mrajvanshy/received_events","type":"User","site_admin":false},"body":null,"created_at":"2015-03-10T18:46:36Z","updated_at":"2015-03-11T03:30:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9fdf438a22b10ffbb01a9151d136ce8ea02af7db","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ripple/ripple-client/pulls/2298/commits","review_comments_url":"https://api.github.com/repos/ripple/ripple-client/pulls/2298/comments","review_comment_url":"https://api.github.com/repos/ripple/ripple-client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ripple/ripple-client/issues/2298/comments","statuses_url":"https://api.github.com/repos/ripple/ripple-client/statuses/aa9e6e762b1cd4f239589f7d9fad0e3e0d009c73","head":{"label":"mrajvanshy:develop2","ref":"develop2","sha":"aa9e6e762b1cd4f239589f7d9fad0e3e0d009c73","user":{"login":"mrajvanshy","id":5142196,"avatar_url":"https://avatars.githubusercontent.com/u/5142196?v=3","gravatar_id":"","url":"https://api.github.com/users/mrajvanshy","html_url":"https://github.com/mrajvanshy","followers_url":"https://api.github.com/users/mrajvanshy/followers","following_url":"https://api.github.com/users/mrajvanshy/following{/other_user}","gists_url":"https://api.github.com/users/mrajvanshy/gists{/gist_id}","starred_url":"https://api.github.com/users/mrajvanshy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrajvanshy/subscriptions","organizations_url":"https://api.github.com/users/mrajvanshy/orgs","repos_url":"https://api.github.com/users/mrajvanshy/repos","events_url":"https://api.github.com/users/mrajvanshy/events{/privacy}","received_events_url":"https://api.github.com/users/mrajvanshy/received_events","type":"User","site_admin":false},"repo":{"id":22072357,"name":"ripple-client","full_name":"mrajvanshy/ripple-client","owner":{"login":"mrajvanshy","id":5142196,"avatar_url":"https://avatars.githubusercontent.com/u/5142196?v=3","gravatar_id":"","url":"https://api.github.com/users/mrajvanshy","html_url":"https://github.com/mrajvanshy","followers_url":"https://api.github.com/users/mrajvanshy/followers","following_url":"https://api.github.com/users/mrajvanshy/following{/other_user}","gists_url":"https://api.github.com/users/mrajvanshy/gists{/gist_id}","starred_url":"https://api.github.com/users/mrajvanshy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrajvanshy/subscriptions","organizations_url":"https://api.github.com/users/mrajvanshy/orgs","repos_url":"https://api.github.com/users/mrajvanshy/repos","events_url":"https://api.github.com/users/mrajvanshy/events{/privacy}","received_events_url":"https://api.github.com/users/mrajvanshy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mrajvanshy/ripple-client","description":"A UI for the Ripple payment network built using web technologies","fork":true,"url":"https://api.github.com/repos/mrajvanshy/ripple-client","forks_url":"https://api.github.com/repos/mrajvanshy/ripple-client/forks","keys_url":"https://api.github.com/repos/mrajvanshy/ripple-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mrajvanshy/ripple-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mrajvanshy/ripple-client/teams","hooks_url":"https://api.github.com/repos/mrajvanshy/ripple-client/hooks","issue_events_url":"https://api.github.com/repos/mrajvanshy/ripple-client/issues/events{/number}","events_url":"https://api.github.com/repos/mrajvanshy/ripple-client/events","assignees_url":"https://api.github.com/repos/mrajvanshy/ripple-client/assignees{/user}","branches_url":"https://api.github.com/repos/mrajvanshy/ripple-client/branches{/branch}","tags_url":"https://api.github.com/repos/mrajvanshy/ripple-client/tags","blobs_url":"https://api.github.com/repos/mrajvanshy/ripple-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mrajvanshy/ripple-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mrajvanshy/ripple-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/mrajvanshy/ripple-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mrajvanshy/ripple-client/statuses/{sha}","languages_url":"https://api.github.com/repos/mrajvanshy/ripple-client/languages","stargazers_url":"https://api.github.com/repos/mrajvanshy/ripple-client/stargazers","contributors_url":"https://api.github.com/repos/mrajvanshy/ripple-client/contributors","subscribers_url":"https://api.github.com/repos/mrajvanshy/ripple-client/subscribers","subscription_url":"https://api.github.com/repos/mrajvanshy/ripple-client/subscription","commits_url":"https://api.github.com/repos/mrajvanshy/ripple-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/mrajvanshy/ripple-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/mrajvanshy/ripple-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/mrajvanshy/ripple-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/mrajvanshy/ripple-client/contents/{+path}","compare_url":"https://api.github.com/repos/mrajvanshy/ripple-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mrajvanshy/ripple-client/merges","archive_url":"https://api.github.com/repos/mrajvanshy/ripple-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mrajvanshy/ripple-client/downloads","issues_url":"https://api.github.com/repos/mrajvanshy/ripple-client/issues{/number}","pulls_url":"https://api.github.com/repos/mrajvanshy/ripple-client/pulls{/number}","milestones_url":"https://api.github.com/repos/mrajvanshy/ripple-client/milestones{/number}","notifications_url":"https://api.github.com/repos/mrajvanshy/ripple-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mrajvanshy/ripple-client/labels{/name}","releases_url":"https://api.github.com/repos/mrajvanshy/ripple-client/releases{/id}","created_at":"2014-07-21T16:52:11Z","updated_at":"2015-03-06T00:17:09Z","pushed_at":"2015-03-11T00:41:17Z","git_url":"git://github.com/mrajvanshy/ripple-client.git","ssh_url":"git@github.com:mrajvanshy/ripple-client.git","clone_url":"https://github.com/mrajvanshy/ripple-client.git","svn_url":"https://github.com/mrajvanshy/ripple-client","homepage":"","size":22579,"stargazers_count":0,"watchers_count":0,"language":"Gettext Catalog","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":"ripple:develop","ref":"develop","sha":"4a9fcff0e363902057563009b368eef12cd74ab3","user":{"login":"ripple","id":3165523,"avatar_url":"https://avatars.githubusercontent.com/u/3165523?v=3","gravatar_id":"","url":"https://api.github.com/users/ripple","html_url":"https://github.com/ripple","followers_url":"https://api.github.com/users/ripple/followers","following_url":"https://api.github.com/users/ripple/following{/other_user}","gists_url":"https://api.github.com/users/ripple/gists{/gist_id}","starred_url":"https://api.github.com/users/ripple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ripple/subscriptions","organizations_url":"https://api.github.com/users/ripple/orgs","repos_url":"https://api.github.com/users/ripple/repos","events_url":"https://api.github.com/users/ripple/events{/privacy}","received_events_url":"https://api.github.com/users/ripple/received_events","type":"Organization","site_admin":false},"repo":{"id":6248414,"name":"ripple-client","full_name":"ripple/ripple-client","owner":{"login":"ripple","id":3165523,"avatar_url":"https://avatars.githubusercontent.com/u/3165523?v=3","gravatar_id":"","url":"https://api.github.com/users/ripple","html_url":"https://github.com/ripple","followers_url":"https://api.github.com/users/ripple/followers","following_url":"https://api.github.com/users/ripple/following{/other_user}","gists_url":"https://api.github.com/users/ripple/gists{/gist_id}","starred_url":"https://api.github.com/users/ripple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ripple/subscriptions","organizations_url":"https://api.github.com/users/ripple/orgs","repos_url":"https://api.github.com/users/ripple/repos","events_url":"https://api.github.com/users/ripple/events{/privacy}","received_events_url":"https://api.github.com/users/ripple/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ripple/ripple-client","description":"A UI for the Ripple payment network built using web technologies","fork":false,"url":"https://api.github.com/repos/ripple/ripple-client","forks_url":"https://api.github.com/repos/ripple/ripple-client/forks","keys_url":"https://api.github.com/repos/ripple/ripple-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ripple/ripple-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ripple/ripple-client/teams","hooks_url":"https://api.github.com/repos/ripple/ripple-client/hooks","issue_events_url":"https://api.github.com/repos/ripple/ripple-client/issues/events{/number}","events_url":"https://api.github.com/repos/ripple/ripple-client/events","assignees_url":"https://api.github.com/repos/ripple/ripple-client/assignees{/user}","branches_url":"https://api.github.com/repos/ripple/ripple-client/branches{/branch}","tags_url":"https://api.github.com/repos/ripple/ripple-client/tags","blobs_url":"https://api.github.com/repos/ripple/ripple-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ripple/ripple-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ripple/ripple-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/ripple/ripple-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ripple/ripple-client/statuses/{sha}","languages_url":"https://api.github.com/repos/ripple/ripple-client/languages","stargazers_url":"https://api.github.com/repos/ripple/ripple-client/stargazers","contributors_url":"https://api.github.com/repos/ripple/ripple-client/contributors","subscribers_url":"https://api.github.com/repos/ripple/ripple-client/subscribers","subscription_url":"https://api.github.com/repos/ripple/ripple-client/subscription","commits_url":"https://api.github.com/repos/ripple/ripple-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/ripple/ripple-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/ripple/ripple-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/ripple/ripple-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/ripple/ripple-client/contents/{+path}","compare_url":"https://api.github.com/repos/ripple/ripple-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ripple/ripple-client/merges","archive_url":"https://api.github.com/repos/ripple/ripple-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ripple/ripple-client/downloads","issues_url":"https://api.github.com/repos/ripple/ripple-client/issues{/number}","pulls_url":"https://api.github.com/repos/ripple/ripple-client/pulls{/number}","milestones_url":"https://api.github.com/repos/ripple/ripple-client/milestones{/number}","notifications_url":"https://api.github.com/repos/ripple/ripple-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ripple/ripple-client/labels{/name}","releases_url":"https://api.github.com/repos/ripple/ripple-client/releases{/id}","created_at":"2012-10-16T17:35:52Z","updated_at":"2015-03-11T01:04:06Z","pushed_at":"2015-03-11T01:04:06Z","git_url":"git://github.com/ripple/ripple-client.git","ssh_url":"git@github.com:ripple/ripple-client.git","clone_url":"https://github.com/ripple/ripple-client.git","svn_url":"https://github.com/ripple/ripple-client","homepage":"","size":39390,"stargazers_count":1278,"watchers_count":1278,"language":"Gettext Catalog","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":472,"mirror_url":null,"open_issues_count":32,"forks":472,"open_issues":32,"watchers":1278,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/ripple/ripple-client/pulls/2298"},"html":{"href":"https://github.com/ripple/ripple-client/pull/2298"},"issue":{"href":"https://api.github.com/repos/ripple/ripple-client/issues/2298"},"comments":{"href":"https://api.github.com/repos/ripple/ripple-client/issues/2298/comments"},"review_comments":{"href":"https://api.github.com/repos/ripple/ripple-client/pulls/2298/comments"},"review_comment":{"href":"https://api.github.com/repos/ripple/ripple-client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ripple/ripple-client/pulls/2298/commits"},"statuses":{"href":"https://api.github.com/repos/ripple/ripple-client/statuses/aa9e6e762b1cd4f239589f7d9fad0e3e0d009c73"}}}}