{"action":"created","comment":{"url":"https://api.github.com/repos/ndoit/fenrir/pulls/comments/63064268","id":63064268,"diff_hunk":"@@ -29,30 +29,40 @@ function resultsCountText(currentRowsAmount, currentPage, totalRows) {\n     this.floor = 1;\n   }\n \n-  html = '<div class=\"row\">' +\n-           '<div class=\"small-12 columns\">' +\n-             '<p class=\"subheader search-result-count\">' +\n-               'Showing Results ' + this.floor + '-' + this.ceiling + ' of ' + totalRows +\n-             '</p></div></div>';\n-  return html;\n+  if (this.totalRows > 0) {\n+    html = '<div class=\"row\">' +\n+             '<div class=\"small-12 columns\">' +\n+               '<p class=\"subheader search-result-count\">' +\n+                 'Showing Results ' + this.floor + '-' + this.ceiling + ' of ' + totalRows +\n+               '</p></div></div>';\n+    return html;\n+  }\n+  else {\n+    return null;\n+  }\n+\n }\n \n function PaginationDiv(currentPage, totalRows) {\n   this.totalPages = Math.ceil(totalRows / 25);\n   this.totalRows = totalRows;\n   this.currentPage = currentPage;\n   this.buttonNextPrevious = function (nextOrPrevious, conditionForDisabled) {\n-    var button = '<li class=\"pagination-' + nextOrPrevious;\n-    if (this.currentPage == conditionForDisabled) {\n-      button += ' disabled\">' + nextOrPrevious.toUpperCase() + ' <span class=\"show-for-sr\">page';\n-    } else {\n-      button += ' ' + nextOrPrevious + '-page-button\"><a aria-label=\"' +\n+    if (this.totalRows > 0) {\n+      var button = '<li class=\"pagination-' + nextOrPrevious;\n+      if (this.currentPage == conditionForDisabled) {\n+        button += ' disabled\">' + nextOrPrevious.toUpperCase() + ' <span class=\"show-for-sr\">page';","path":"app/assets/javascripts/search_templates.js","position":37,"original_position":37,"commit_id":"d12b075951872a1e3e9045d274dcebe3c64b197d","original_commit_id":"d12b075951872a1e3e9045d274dcebe3c64b197d","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Line is too long.","created_at":"2016-05-12T17:42:22Z","updated_at":"2016-05-12T17:42:22Z","html_url":"https://github.com/ndoit/fenrir/pull/124#discussion_r63064268","pull_request_url":"https://api.github.com/repos/ndoit/fenrir/pulls/124","_links":{"self":{"href":"https://api.github.com/repos/ndoit/fenrir/pulls/comments/63064268"},"html":{"href":"https://github.com/ndoit/fenrir/pull/124#discussion_r63064268"},"pull_request":{"href":"https://api.github.com/repos/ndoit/fenrir/pulls/124"}}},"pull_request":{"url":"https://api.github.com/repos/ndoit/fenrir/pulls/124","id":69877617,"html_url":"https://github.com/ndoit/fenrir/pull/124","diff_url":"https://github.com/ndoit/fenrir/pull/124.diff","patch_url":"https://github.com/ndoit/fenrir/pull/124.patch","issue_url":"https://api.github.com/repos/ndoit/fenrir/issues/124","number":124,"state":"open","locked":false,"title":"added no display msg for no search results","user":{"login":"RyanSnodgrass","id":7104855,"avatar_url":"https://avatars.githubusercontent.com/u/7104855?v=3","gravatar_id":"","url":"https://api.github.com/users/RyanSnodgrass","html_url":"https://github.com/RyanSnodgrass","followers_url":"https://api.github.com/users/RyanSnodgrass/followers","following_url":"https://api.github.com/users/RyanSnodgrass/following{/other_user}","gists_url":"https://api.github.com/users/RyanSnodgrass/gists{/gist_id}","starred_url":"https://api.github.com/users/RyanSnodgrass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyanSnodgrass/subscriptions","organizations_url":"https://api.github.com/users/RyanSnodgrass/orgs","repos_url":"https://api.github.com/users/RyanSnodgrass/repos","events_url":"https://api.github.com/users/RyanSnodgrass/events{/privacy}","received_events_url":"https://api.github.com/users/RyanSnodgrass/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-12T17:42:15Z","updated_at":"2016-05-12T17:42:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dda5fa55b125fee2d9ba1e62f0e7b011fce0c41e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ndoit/fenrir/pulls/124/commits","review_comments_url":"https://api.github.com/repos/ndoit/fenrir/pulls/124/comments","review_comment_url":"https://api.github.com/repos/ndoit/fenrir/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ndoit/fenrir/issues/124/comments","statuses_url":"https://api.github.com/repos/ndoit/fenrir/statuses/d12b075951872a1e3e9045d274dcebe3c64b197d","head":{"label":"ndoit:no-display","ref":"no-display","sha":"d12b075951872a1e3e9045d274dcebe3c64b197d","user":{"login":"ndoit","id":6223716,"avatar_url":"https://avatars.githubusercontent.com/u/6223716?v=3","gravatar_id":"","url":"https://api.github.com/users/ndoit","html_url":"https://github.com/ndoit","followers_url":"https://api.github.com/users/ndoit/followers","following_url":"https://api.github.com/users/ndoit/following{/other_user}","gists_url":"https://api.github.com/users/ndoit/gists{/gist_id}","starred_url":"https://api.github.com/users/ndoit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndoit/subscriptions","organizations_url":"https://api.github.com/users/ndoit/orgs","repos_url":"https://api.github.com/users/ndoit/repos","events_url":"https://api.github.com/users/ndoit/events{/privacy}","received_events_url":"https://api.github.com/users/ndoit/received_events","type":"Organization","site_admin":false},"repo":{"id":39837938,"name":"fenrir","full_name":"ndoit/fenrir","owner":{"login":"ndoit","id":6223716,"avatar_url":"https://avatars.githubusercontent.com/u/6223716?v=3","gravatar_id":"","url":"https://api.github.com/users/ndoit","html_url":"https://github.com/ndoit","followers_url":"https://api.github.com/users/ndoit/followers","following_url":"https://api.github.com/users/ndoit/following{/other_user}","gists_url":"https://api.github.com/users/ndoit/gists{/gist_id}","starred_url":"https://api.github.com/users/ndoit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndoit/subscriptions","organizations_url":"https://api.github.com/users/ndoit/orgs","repos_url":"https://api.github.com/users/ndoit/repos","events_url":"https://api.github.com/users/ndoit/events{/privacy}","received_events_url":"https://api.github.com/users/ndoit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ndoit/fenrir","description":"BI Portal","fork":false,"url":"https://api.github.com/repos/ndoit/fenrir","forks_url":"https://api.github.com/repos/ndoit/fenrir/forks","keys_url":"https://api.github.com/repos/ndoit/fenrir/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ndoit/fenrir/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ndoit/fenrir/teams","hooks_url":"https://api.github.com/repos/ndoit/fenrir/hooks","issue_events_url":"https://api.github.com/repos/ndoit/fenrir/issues/events{/number}","events_url":"https://api.github.com/repos/ndoit/fenrir/events","assignees_url":"https://api.github.com/repos/ndoit/fenrir/assignees{/user}","branches_url":"https://api.github.com/repos/ndoit/fenrir/branches{/branch}","tags_url":"https://api.github.com/repos/ndoit/fenrir/tags","blobs_url":"https://api.github.com/repos/ndoit/fenrir/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ndoit/fenrir/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ndoit/fenrir/git/refs{/sha}","trees_url":"https://api.github.com/repos/ndoit/fenrir/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ndoit/fenrir/statuses/{sha}","languages_url":"https://api.github.com/repos/ndoit/fenrir/languages","stargazers_url":"https://api.github.com/repos/ndoit/fenrir/stargazers","contributors_url":"https://api.github.com/repos/ndoit/fenrir/contributors","subscribers_url":"https://api.github.com/repos/ndoit/fenrir/subscribers","subscription_url":"https://api.github.com/repos/ndoit/fenrir/subscription","commits_url":"https://api.github.com/repos/ndoit/fenrir/commits{/sha}","git_commits_url":"https://api.github.com/repos/ndoit/fenrir/git/commits{/sha}","comments_url":"https://api.github.com/repos/ndoit/fenrir/comments{/number}","issue_comment_url":"https://api.github.com/repos/ndoit/fenrir/issues/comments{/number}","contents_url":"https://api.github.com/repos/ndoit/fenrir/contents/{+path}","compare_url":"https://api.github.com/repos/ndoit/fenrir/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ndoit/fenrir/merges","archive_url":"https://api.github.com/repos/ndoit/fenrir/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ndoit/fenrir/downloads","issues_url":"https://api.github.com/repos/ndoit/fenrir/issues{/number}","pulls_url":"https://api.github.com/repos/ndoit/fenrir/pulls{/number}","milestones_url":"https://api.github.com/repos/ndoit/fenrir/milestones{/number}","notifications_url":"https://api.github.com/repos/ndoit/fenrir/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ndoit/fenrir/labels{/name}","releases_url":"https://api.github.com/repos/ndoit/fenrir/releases{/id}","deployments_url":"https://api.github.com/repos/ndoit/fenrir/deployments","created_at":"2015-07-28T14:14:01Z","updated_at":"2016-02-01T16:13:34Z","pushed_at":"2016-05-12T17:42:15Z","git_url":"git://github.com/ndoit/fenrir.git","ssh_url":"git@github.com:ndoit/fenrir.git","clone_url":"https://github.com/ndoit/fenrir.git","svn_url":"https://github.com/ndoit/fenrir","homepage":"https://data.nd.edu","size":11822,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"ndoit:dev","ref":"dev","sha":"5745e89d44410fa79f52b052c8aa5d432d3b9c63","user":{"login":"ndoit","id":6223716,"avatar_url":"https://avatars.githubusercontent.com/u/6223716?v=3","gravatar_id":"","url":"https://api.github.com/users/ndoit","html_url":"https://github.com/ndoit","followers_url":"https://api.github.com/users/ndoit/followers","following_url":"https://api.github.com/users/ndoit/following{/other_user}","gists_url":"https://api.github.com/users/ndoit/gists{/gist_id}","starred_url":"https://api.github.com/users/ndoit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndoit/subscriptions","organizations_url":"https://api.github.com/users/ndoit/orgs","repos_url":"https://api.github.com/users/ndoit/repos","events_url":"https://api.github.com/users/ndoit/events{/privacy}","received_events_url":"https://api.github.com/users/ndoit/received_events","type":"Organization","site_admin":false},"repo":{"id":39837938,"name":"fenrir","full_name":"ndoit/fenrir","owner":{"login":"ndoit","id":6223716,"avatar_url":"https://avatars.githubusercontent.com/u/6223716?v=3","gravatar_id":"","url":"https://api.github.com/users/ndoit","html_url":"https://github.com/ndoit","followers_url":"https://api.github.com/users/ndoit/followers","following_url":"https://api.github.com/users/ndoit/following{/other_user}","gists_url":"https://api.github.com/users/ndoit/gists{/gist_id}","starred_url":"https://api.github.com/users/ndoit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndoit/subscriptions","organizations_url":"https://api.github.com/users/ndoit/orgs","repos_url":"https://api.github.com/users/ndoit/repos","events_url":"https://api.github.com/users/ndoit/events{/privacy}","received_events_url":"https://api.github.com/users/ndoit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ndoit/fenrir","description":"BI Portal","fork":false,"url":"https://api.github.com/repos/ndoit/fenrir","forks_url":"https://api.github.com/repos/ndoit/fenrir/forks","keys_url":"https://api.github.com/repos/ndoit/fenrir/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ndoit/fenrir/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ndoit/fenrir/teams","hooks_url":"https://api.github.com/repos/ndoit/fenrir/hooks","issue_events_url":"https://api.github.com/repos/ndoit/fenrir/issues/events{/number}","events_url":"https://api.github.com/repos/ndoit/fenrir/events","assignees_url":"https://api.github.com/repos/ndoit/fenrir/assignees{/user}","branches_url":"https://api.github.com/repos/ndoit/fenrir/branches{/branch}","tags_url":"https://api.github.com/repos/ndoit/fenrir/tags","blobs_url":"https://api.github.com/repos/ndoit/fenrir/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ndoit/fenrir/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ndoit/fenrir/git/refs{/sha}","trees_url":"https://api.github.com/repos/ndoit/fenrir/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ndoit/fenrir/statuses/{sha}","languages_url":"https://api.github.com/repos/ndoit/fenrir/languages","stargazers_url":"https://api.github.com/repos/ndoit/fenrir/stargazers","contributors_url":"https://api.github.com/repos/ndoit/fenrir/contributors","subscribers_url":"https://api.github.com/repos/ndoit/fenrir/subscribers","subscription_url":"https://api.github.com/repos/ndoit/fenrir/subscription","commits_url":"https://api.github.com/repos/ndoit/fenrir/commits{/sha}","git_commits_url":"https://api.github.com/repos/ndoit/fenrir/git/commits{/sha}","comments_url":"https://api.github.com/repos/ndoit/fenrir/comments{/number}","issue_comment_url":"https://api.github.com/repos/ndoit/fenrir/issues/comments{/number}","contents_url":"https://api.github.com/repos/ndoit/fenrir/contents/{+path}","compare_url":"https://api.github.com/repos/ndoit/fenrir/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ndoit/fenrir/merges","archive_url":"https://api.github.com/repos/ndoit/fenrir/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ndoit/fenrir/downloads","issues_url":"https://api.github.com/repos/ndoit/fenrir/issues{/number}","pulls_url":"https://api.github.com/repos/ndoit/fenrir/pulls{/number}","milestones_url":"https://api.github.com/repos/ndoit/fenrir/milestones{/number}","notifications_url":"https://api.github.com/repos/ndoit/fenrir/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ndoit/fenrir/labels{/name}","releases_url":"https://api.github.com/repos/ndoit/fenrir/releases{/id}","deployments_url":"https://api.github.com/repos/ndoit/fenrir/deployments","created_at":"2015-07-28T14:14:01Z","updated_at":"2016-02-01T16:13:34Z","pushed_at":"2016-05-12T17:42:15Z","git_url":"git://github.com/ndoit/fenrir.git","ssh_url":"git@github.com:ndoit/fenrir.git","clone_url":"https://github.com/ndoit/fenrir.git","svn_url":"https://github.com/ndoit/fenrir","homepage":"https://data.nd.edu","size":11822,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ndoit/fenrir/pulls/124"},"html":{"href":"https://github.com/ndoit/fenrir/pull/124"},"issue":{"href":"https://api.github.com/repos/ndoit/fenrir/issues/124"},"comments":{"href":"https://api.github.com/repos/ndoit/fenrir/issues/124/comments"},"review_comments":{"href":"https://api.github.com/repos/ndoit/fenrir/pulls/124/comments"},"review_comment":{"href":"https://api.github.com/repos/ndoit/fenrir/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ndoit/fenrir/pulls/124/commits"},"statuses":{"href":"https://api.github.com/repos/ndoit/fenrir/statuses/d12b075951872a1e3e9045d274dcebe3c64b197d"}}}}