{"action":"created","comment":{"url":"https://api.github.com/repos/danfstucky/LeagueSpec/pulls/comments/70174501","id":70174501,"diff_hunk":"@@ -0,0 +1,98 @@\n+<div class = \"search-page\" id=\"friend-lookup\">\n+  \n+  <div class = \"col-md-6 col-md-offset-3\">\n+  \t<div class=\"table-responsive\">\n+\t\t  <table class=\"table search-table\" >\n+\t\t    <thead>\n+\t\t    \t<tr>\n+\t\t    \t\t<th class=\"header search-header\">Summoner Search Result</th>\n+\t\t    \t</tr>\n+\t\t    </thead>\n+\t\t    <tbody>\n+\t\t      <tr>\n+\t\t    \t\t\t<td>\n+\t\t    \t\t\t  <% if @friend %>\n+\t\t\t    \t\t    <div id=\"friend-lookup-results\" class=\"row well results-block\">\n+\t\t\t    \t\t      <div class=\"col-sm-5\">\n+\t\t\t    \t\t      \t<strong>Summoner Name: <%= @name.capitalize %></strong><br>\n+\t\t\t    \t\t        <strong>Summoner Level: <%= @friend.summoner_level %></strong><br>\n+\t                    <strong>Last Active: <%= @friend.revision_date.to_s.slice(0,10) %></strong><br>\n+\t\t\t    \t\t      </div>\n+\t\t\t    \t\t      <% if @statsObj %>\n+\t\t\t    \t\t      \t<div class=\"col-sm-5\">\n+\t\t\t    \t\t          <strong>Most Played Champ: <%= \"#{@mpChamp[:name]}\"%> </strong><%= \" - (#{@mostPlayedChampObj.stats.total_sessions_played}x)\"%> <br>\n+\t\t\t    \t\t          <strong>Highest KDR Champ: <%= \"#{@hkdrChamp[:name]}\"%> </strong> \n+\t\t\t    \t\t                                    <% if @highestKillDeathRatioChampObj[0].stats.total_deaths_per_session >  0 %>\n+\t                                                  <%= \" - (#{((@highestKillDeathRatioChampObj[0].stats.most_champion_kills_per_session.to_f)/(@highestKillDeathRatioChampObj[0].stats.total_deaths_per_session)).round(2)})\"%>\n+\t                                                <%else%>\n+\t                                                  <%= \" - (#{(@highestKillDeathRatioChampObj[0].stats.most_champion_kills_per_session_f.round(2))})\"%>\n+\t                                                <%end%><br>\n+\t                      <strong>Highest WLR Champ: <%= \"#{@hwlrChamp[:name]}\"%> </strong> \n+\t\t\t    \t\t                                    <% if @highestWinLossRatioChampObj[0].stats.total_deaths_per_session >  0 %>\n+\t                                                  <%= \" - (#{((@highestWinLossRatioChampObj[0].stats.most_champion_kills_per_session.to_f)/(@highestWinLossRatioChampObj[0].stats.total_deaths_per_session)).round(2)})\"%>\n+\t                                                <%else%>\n+\t                                                  <%= \" - (#{(@highestWinLossRatioChampObj[0].stats.most_champion_kills_per_session_f.round(2))})\"%>\n+\t                                                <%end%><br>\n+\t\t\t    \t\t        </div>\n+\t\t\t    \t\t        <div class=\"col-sm-1\">\n+\t\t\t    \t\t        <!--While this displays a dynamic picture(most played champ), we might need to have users choose their preferred display pictures\n+\t\t\t    \t\t          when searched for or on their profile. This could be done when editing profiles.-->\n+\t\t\t\t    \t\t        <%= link_to image_tag(\"icons/#{@mpChamp[:name].delete(' ')}Square.png\"), champion_path(@mpChamp.id)  %>\n+\t\t\t\t    \t\t      </div>\n+\t\t\t    \t\t      <% else %>\n+\t\t\t    \t\t        <div class=\"col-sm-6 no-stats\">\n+\t\t\t    \t\t          <strong>No stats found for summoner.</strong><br>\n+\t\t\t\t    \t\t        <strong>Either summoner is inactive or</strong><br>\n+\t\t                    <strong>there are no stats to display.</strong><br>","path":"app/views/profiles/search.html.erb","position":46,"original_position":46,"commit_id":"02b585458bb979842a82f6f083f9a223f619d091","original_commit_id":"02b585458bb979842a82f6f083f9a223f619d091","user":{"login":"danfstucky","id":13394759,"avatar_url":"https://avatars.githubusercontent.com/u/13394759?v=3","gravatar_id":"","url":"https://api.github.com/users/danfstucky","html_url":"https://github.com/danfstucky","followers_url":"https://api.github.com/users/danfstucky/followers","following_url":"https://api.github.com/users/danfstucky/following{/other_user}","gists_url":"https://api.github.com/users/danfstucky/gists{/gist_id}","starred_url":"https://api.github.com/users/danfstucky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danfstucky/subscriptions","organizations_url":"https://api.github.com/users/danfstucky/orgs","repos_url":"https://api.github.com/users/danfstucky/repos","events_url":"https://api.github.com/users/danfstucky/events{/privacy}","received_events_url":"https://api.github.com/users/danfstucky/received_events","type":"User","site_admin":false},"body":"This can be made into one line and you don't need the `<br>` elements since the text will wrap automatically inside the `<div>`.  \r\nChange it to `<strong>No stats found for summoner. Either summoner is inactive or there are no stats to display.</strong>`","created_at":"2016-07-10T01:18:19Z","updated_at":"2016-07-10T01:18:20Z","html_url":"https://github.com/danfstucky/LeagueSpec/pull/34#discussion_r70174501","pull_request_url":"https://api.github.com/repos/danfstucky/LeagueSpec/pulls/34","_links":{"self":{"href":"https://api.github.com/repos/danfstucky/LeagueSpec/pulls/comments/70174501"},"html":{"href":"https://github.com/danfstucky/LeagueSpec/pull/34#discussion_r70174501"},"pull_request":{"href":"https://api.github.com/repos/danfstucky/LeagueSpec/pulls/34"}}},"pull_request":{"url":"https://api.github.com/repos/danfstucky/LeagueSpec/pulls/34","id":76858471,"html_url":"https://github.com/danfstucky/LeagueSpec/pull/34","diff_url":"https://github.com/danfstucky/LeagueSpec/pull/34.diff","patch_url":"https://github.com/danfstucky/LeagueSpec/pull/34.patch","issue_url":"https://api.github.com/repos/danfstucky/LeagueSpec/issues/34","number":34,"state":"open","locked":false,"title":"Search friends","user":{"login":"sl7v3","id":11051775,"avatar_url":"https://avatars.githubusercontent.com/u/11051775?v=3","gravatar_id":"","url":"https://api.github.com/users/sl7v3","html_url":"https://github.com/sl7v3","followers_url":"https://api.github.com/users/sl7v3/followers","following_url":"https://api.github.com/users/sl7v3/following{/other_user}","gists_url":"https://api.github.com/users/sl7v3/gists{/gist_id}","starred_url":"https://api.github.com/users/sl7v3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sl7v3/subscriptions","organizations_url":"https://api.github.com/users/sl7v3/orgs","repos_url":"https://api.github.com/users/sl7v3/repos","events_url":"https://api.github.com/users/sl7v3/events{/privacy}","received_events_url":"https://api.github.com/users/sl7v3/received_events","type":"User","site_admin":false},"body":"This branch adds functionality to search and return a friend.\r\nIt includes options to dismiss a search, view friend's profile (if on LeagueSpec), invite them (if not on LeagueSpec - still needs to be implemented), add friend (if on leagueSpec, still needs to be implemented), sign up/log in (if not logged in at the time of search).","created_at":"2016-07-09T22:13:52Z","updated_at":"2016-07-10T01:18:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d3d928cbd6a5f07b8a13f04af9c2386e71e98aa7","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/danfstucky/LeagueSpec/pulls/34/commits","review_comments_url":"https://api.github.com/repos/danfstucky/LeagueSpec/pulls/34/comments","review_comment_url":"https://api.github.com/repos/danfstucky/LeagueSpec/pulls/comments{/number}","comments_url":"https://api.github.com/repos/danfstucky/LeagueSpec/issues/34/comments","statuses_url":"https://api.github.com/repos/danfstucky/LeagueSpec/statuses/02b585458bb979842a82f6f083f9a223f619d091","head":{"label":"danfstucky:search-friends","ref":"search-friends","sha":"02b585458bb979842a82f6f083f9a223f619d091","user":{"login":"danfstucky","id":13394759,"avatar_url":"https://avatars.githubusercontent.com/u/13394759?v=3","gravatar_id":"","url":"https://api.github.com/users/danfstucky","html_url":"https://github.com/danfstucky","followers_url":"https://api.github.com/users/danfstucky/followers","following_url":"https://api.github.com/users/danfstucky/following{/other_user}","gists_url":"https://api.github.com/users/danfstucky/gists{/gist_id}","starred_url":"https://api.github.com/users/danfstucky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danfstucky/subscriptions","organizations_url":"https://api.github.com/users/danfstucky/orgs","repos_url":"https://api.github.com/users/danfstucky/repos","events_url":"https://api.github.com/users/danfstucky/events{/privacy}","received_events_url":"https://api.github.com/users/danfstucky/received_events","type":"User","site_admin":false},"repo":{"id":48957128,"name":"LeagueSpec","full_name":"danfstucky/LeagueSpec","owner":{"login":"danfstucky","id":13394759,"avatar_url":"https://avatars.githubusercontent.com/u/13394759?v=3","gravatar_id":"","url":"https://api.github.com/users/danfstucky","html_url":"https://github.com/danfstucky","followers_url":"https://api.github.com/users/danfstucky/followers","following_url":"https://api.github.com/users/danfstucky/following{/other_user}","gists_url":"https://api.github.com/users/danfstucky/gists{/gist_id}","starred_url":"https://api.github.com/users/danfstucky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danfstucky/subscriptions","organizations_url":"https://api.github.com/users/danfstucky/orgs","repos_url":"https://api.github.com/users/danfstucky/repos","events_url":"https://api.github.com/users/danfstucky/events{/privacy}","received_events_url":"https://api.github.com/users/danfstucky/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/danfstucky/LeagueSpec","description":"","fork":false,"url":"https://api.github.com/repos/danfstucky/LeagueSpec","forks_url":"https://api.github.com/repos/danfstucky/LeagueSpec/forks","keys_url":"https://api.github.com/repos/danfstucky/LeagueSpec/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danfstucky/LeagueSpec/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danfstucky/LeagueSpec/teams","hooks_url":"https://api.github.com/repos/danfstucky/LeagueSpec/hooks","issue_events_url":"https://api.github.com/repos/danfstucky/LeagueSpec/issues/events{/number}","events_url":"https://api.github.com/repos/danfstucky/LeagueSpec/events","assignees_url":"https://api.github.com/repos/danfstucky/LeagueSpec/assignees{/user}","branches_url":"https://api.github.com/repos/danfstucky/LeagueSpec/branches{/branch}","tags_url":"https://api.github.com/repos/danfstucky/LeagueSpec/tags","blobs_url":"https://api.github.com/repos/danfstucky/LeagueSpec/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danfstucky/LeagueSpec/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danfstucky/LeagueSpec/git/refs{/sha}","trees_url":"https://api.github.com/repos/danfstucky/LeagueSpec/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danfstucky/LeagueSpec/statuses/{sha}","languages_url":"https://api.github.com/repos/danfstucky/LeagueSpec/languages","stargazers_url":"https://api.github.com/repos/danfstucky/LeagueSpec/stargazers","contributors_url":"https://api.github.com/repos/danfstucky/LeagueSpec/contributors","subscribers_url":"https://api.github.com/repos/danfstucky/LeagueSpec/subscribers","subscription_url":"https://api.github.com/repos/danfstucky/LeagueSpec/subscription","commits_url":"https://api.github.com/repos/danfstucky/LeagueSpec/commits{/sha}","git_commits_url":"https://api.github.com/repos/danfstucky/LeagueSpec/git/commits{/sha}","comments_url":"https://api.github.com/repos/danfstucky/LeagueSpec/comments{/number}","issue_comment_url":"https://api.github.com/repos/danfstucky/LeagueSpec/issues/comments{/number}","contents_url":"https://api.github.com/repos/danfstucky/LeagueSpec/contents/{+path}","compare_url":"https://api.github.com/repos/danfstucky/LeagueSpec/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danfstucky/LeagueSpec/merges","archive_url":"https://api.github.com/repos/danfstucky/LeagueSpec/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danfstucky/LeagueSpec/downloads","issues_url":"https://api.github.com/repos/danfstucky/LeagueSpec/issues{/number}","pulls_url":"https://api.github.com/repos/danfstucky/LeagueSpec/pulls{/number}","milestones_url":"https://api.github.com/repos/danfstucky/LeagueSpec/milestones{/number}","notifications_url":"https://api.github.com/repos/danfstucky/LeagueSpec/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danfstucky/LeagueSpec/labels{/name}","releases_url":"https://api.github.com/repos/danfstucky/LeagueSpec/releases{/id}","deployments_url":"https://api.github.com/repos/danfstucky/LeagueSpec/deployments","created_at":"2016-01-03T18:58:41Z","updated_at":"2016-01-12T01:13:00Z","pushed_at":"2016-07-09T22:15:50Z","git_url":"git://github.com/danfstucky/LeagueSpec.git","ssh_url":"git@github.com:danfstucky/LeagueSpec.git","clone_url":"https://github.com/danfstucky/LeagueSpec.git","svn_url":"https://github.com/danfstucky/LeagueSpec","homepage":null,"size":10758,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"base":{"label":"danfstucky:master","ref":"master","sha":"41a0374cb4eceb8f7b9629d65285d3bf3ae7be07","user":{"login":"danfstucky","id":13394759,"avatar_url":"https://avatars.githubusercontent.com/u/13394759?v=3","gravatar_id":"","url":"https://api.github.com/users/danfstucky","html_url":"https://github.com/danfstucky","followers_url":"https://api.github.com/users/danfstucky/followers","following_url":"https://api.github.com/users/danfstucky/following{/other_user}","gists_url":"https://api.github.com/users/danfstucky/gists{/gist_id}","starred_url":"https://api.github.com/users/danfstucky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danfstucky/subscriptions","organizations_url":"https://api.github.com/users/danfstucky/orgs","repos_url":"https://api.github.com/users/danfstucky/repos","events_url":"https://api.github.com/users/danfstucky/events{/privacy}","received_events_url":"https://api.github.com/users/danfstucky/received_events","type":"User","site_admin":false},"repo":{"id":48957128,"name":"LeagueSpec","full_name":"danfstucky/LeagueSpec","owner":{"login":"danfstucky","id":13394759,"avatar_url":"https://avatars.githubusercontent.com/u/13394759?v=3","gravatar_id":"","url":"https://api.github.com/users/danfstucky","html_url":"https://github.com/danfstucky","followers_url":"https://api.github.com/users/danfstucky/followers","following_url":"https://api.github.com/users/danfstucky/following{/other_user}","gists_url":"https://api.github.com/users/danfstucky/gists{/gist_id}","starred_url":"https://api.github.com/users/danfstucky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danfstucky/subscriptions","organizations_url":"https://api.github.com/users/danfstucky/orgs","repos_url":"https://api.github.com/users/danfstucky/repos","events_url":"https://api.github.com/users/danfstucky/events{/privacy}","received_events_url":"https://api.github.com/users/danfstucky/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/danfstucky/LeagueSpec","description":"","fork":false,"url":"https://api.github.com/repos/danfstucky/LeagueSpec","forks_url":"https://api.github.com/repos/danfstucky/LeagueSpec/forks","keys_url":"https://api.github.com/repos/danfstucky/LeagueSpec/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danfstucky/LeagueSpec/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danfstucky/LeagueSpec/teams","hooks_url":"https://api.github.com/repos/danfstucky/LeagueSpec/hooks","issue_events_url":"https://api.github.com/repos/danfstucky/LeagueSpec/issues/events{/number}","events_url":"https://api.github.com/repos/danfstucky/LeagueSpec/events","assignees_url":"https://api.github.com/repos/danfstucky/LeagueSpec/assignees{/user}","branches_url":"https://api.github.com/repos/danfstucky/LeagueSpec/branches{/branch}","tags_url":"https://api.github.com/repos/danfstucky/LeagueSpec/tags","blobs_url":"https://api.github.com/repos/danfstucky/LeagueSpec/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danfstucky/LeagueSpec/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danfstucky/LeagueSpec/git/refs{/sha}","trees_url":"https://api.github.com/repos/danfstucky/LeagueSpec/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danfstucky/LeagueSpec/statuses/{sha}","languages_url":"https://api.github.com/repos/danfstucky/LeagueSpec/languages","stargazers_url":"https://api.github.com/repos/danfstucky/LeagueSpec/stargazers","contributors_url":"https://api.github.com/repos/danfstucky/LeagueSpec/contributors","subscribers_url":"https://api.github.com/repos/danfstucky/LeagueSpec/subscribers","subscription_url":"https://api.github.com/repos/danfstucky/LeagueSpec/subscription","commits_url":"https://api.github.com/repos/danfstucky/LeagueSpec/commits{/sha}","git_commits_url":"https://api.github.com/repos/danfstucky/LeagueSpec/git/commits{/sha}","comments_url":"https://api.github.com/repos/danfstucky/LeagueSpec/comments{/number}","issue_comment_url":"https://api.github.com/repos/danfstucky/LeagueSpec/issues/comments{/number}","contents_url":"https://api.github.com/repos/danfstucky/LeagueSpec/contents/{+path}","compare_url":"https://api.github.com/repos/danfstucky/LeagueSpec/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danfstucky/LeagueSpec/merges","archive_url":"https://api.github.com/repos/danfstucky/LeagueSpec/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danfstucky/LeagueSpec/downloads","issues_url":"https://api.github.com/repos/danfstucky/LeagueSpec/issues{/number}","pulls_url":"https://api.github.com/repos/danfstucky/LeagueSpec/pulls{/number}","milestones_url":"https://api.github.com/repos/danfstucky/LeagueSpec/milestones{/number}","notifications_url":"https://api.github.com/repos/danfstucky/LeagueSpec/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danfstucky/LeagueSpec/labels{/name}","releases_url":"https://api.github.com/repos/danfstucky/LeagueSpec/releases{/id}","deployments_url":"https://api.github.com/repos/danfstucky/LeagueSpec/deployments","created_at":"2016-01-03T18:58:41Z","updated_at":"2016-01-12T01:13:00Z","pushed_at":"2016-07-09T22:15:50Z","git_url":"git://github.com/danfstucky/LeagueSpec.git","ssh_url":"git@github.com:danfstucky/LeagueSpec.git","clone_url":"https://github.com/danfstucky/LeagueSpec.git","svn_url":"https://github.com/danfstucky/LeagueSpec","homepage":null,"size":10758,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/danfstucky/LeagueSpec/pulls/34"},"html":{"href":"https://github.com/danfstucky/LeagueSpec/pull/34"},"issue":{"href":"https://api.github.com/repos/danfstucky/LeagueSpec/issues/34"},"comments":{"href":"https://api.github.com/repos/danfstucky/LeagueSpec/issues/34/comments"},"review_comments":{"href":"https://api.github.com/repos/danfstucky/LeagueSpec/pulls/34/comments"},"review_comment":{"href":"https://api.github.com/repos/danfstucky/LeagueSpec/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/danfstucky/LeagueSpec/pulls/34/commits"},"statuses":{"href":"https://api.github.com/repos/danfstucky/LeagueSpec/statuses/02b585458bb979842a82f6f083f9a223f619d091"}}}}
{"actor":{"display_login":"danfstucky"}}