{"action":"created","comment":{"url":"https://api.github.com/repos/diaspora/diaspora/pulls/comments/31718804","id":31718804,"diff_hunk":"@@ -6,4 +6,48 @@ def owner_image_tag(size=nil)\n   def owner_image_link\n     person_image_link(current_user.person, :size => :thumb_small)\n   end\n+\n+  # Returns the path of the current color theme so that it\n+  # can be loaded in app/views/layouts/application.html.haml\n+  # and app/views/layouts/application.mobile.haml. If the user\n+  # is not signed in or has not specified a color theme, the\n+  # default (original) color theme is loaded.\n+  #\n+  # ==== Examples\n+  #\n+  #   # if user is not signed in\n+  #   current_color_theme # => \"color_themes/original\"\n+  #   # if user Alice has not selected a color theme\n+  #   current_color_theme # => \"color_themes/original\"\n+  #   # if user Alice has selected a \"magenta\" theme\n+  #   current_color_theme # => \"color_themes/magenta\"\n+  def current_color_theme\n+    if user_signed_in?\n+      color_theme = current_user.color_theme\n+    end\n+    color_theme ||= DEFAULT_COLOR_THEME","path":"app/helpers/users_helper.rb","position":23,"original_position":23,"commit_id":"27854b19cec4d429e342a45ef6a24a2b06ad1091","original_commit_id":"27854b19cec4d429e342a45ef6a24a2b06ad1091","user":{"login":"jhass","id":141294,"avatar_url":"https://avatars.githubusercontent.com/u/141294?v=3","gravatar_id":"","url":"https://api.github.com/users/jhass","html_url":"https://github.com/jhass","followers_url":"https://api.github.com/users/jhass/followers","following_url":"https://api.github.com/users/jhass/following{/other_user}","gists_url":"https://api.github.com/users/jhass/gists{/gist_id}","starred_url":"https://api.github.com/users/jhass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhass/subscriptions","organizations_url":"https://api.github.com/users/jhass/orgs","repos_url":"https://api.github.com/users/jhass/repos","events_url":"https://api.github.com/users/jhass/events{/privacy}","received_events_url":"https://api.github.com/users/jhass/received_events","type":"User","site_admin":false},"body":"I think I see no point in the indirection, just replace it directly.","created_at":"2015-06-04T13:24:09Z","updated_at":"2015-06-04T13:24:09Z","html_url":"https://github.com/diaspora/diaspora/pull/6033#discussion_r31718804","pull_request_url":"https://api.github.com/repos/diaspora/diaspora/pulls/6033","_links":{"self":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/comments/31718804"},"html":{"href":"https://github.com/diaspora/diaspora/pull/6033#discussion_r31718804"},"pull_request":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/6033"}}},"pull_request":{"url":"https://api.github.com/repos/diaspora/diaspora/pulls/6033","id":36733840,"html_url":"https://github.com/diaspora/diaspora/pull/6033","diff_url":"https://github.com/diaspora/diaspora/pull/6033.diff","patch_url":"https://github.com/diaspora/diaspora/pull/6033.patch","issue_url":"https://api.github.com/repos/diaspora/diaspora/issues/6033","number":6033,"state":"open","locked":false,"title":"Issue #4297: Color themes","user":{"login":"efstrian","id":11241058,"avatar_url":"https://avatars.githubusercontent.com/u/11241058?v=3","gravatar_id":"","url":"https://api.github.com/users/efstrian","html_url":"https://github.com/efstrian","followers_url":"https://api.github.com/users/efstrian/followers","following_url":"https://api.github.com/users/efstrian/following{/other_user}","gists_url":"https://api.github.com/users/efstrian/gists{/gist_id}","starred_url":"https://api.github.com/users/efstrian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/efstrian/subscriptions","organizations_url":"https://api.github.com/users/efstrian/orgs","repos_url":"https://api.github.com/users/efstrian/repos","events_url":"https://api.github.com/users/efstrian/events{/privacy}","received_events_url":"https://api.github.com/users/efstrian/received_events","type":"User","site_admin":false},"body":"This enables the user to choose a color theme from a given list of themes. The way color themes are specified and made available to the application is similar to the way locales work.\r\n\r\nWhat's missing right now is the transparent header logo (desktop view) needed for the header to display right.\r\n\r\nThis is how the original theme looks now:\r\n\r\n![diaspora_original](https://cloud.githubusercontent.com/assets/11241058/7937917/4d3c167a-094b-11e5-8705-bcf8e6ac7cf4.png)\r\n\r\nAnd below is an example of a dark green color theme.\r\nDesktop:\r\n\r\n![diaspora_dark_green](https://cloud.githubusercontent.com/assets/11241058/7937944/733326a2-094b-11e5-8568-e80b914bdf28.png)\r\n\r\n\r\nMobile:\r\n\r\n![diaspora_dark_green_mobile](https://cloud.githubusercontent.com/assets/11241058/7937970/a1eb71a2-094b-11e5-97ce-f9c8d854c752.png)\r\n","created_at":"2015-06-02T14:24:07Z","updated_at":"2015-06-04T13:24:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"99a70154a48dcf70ace245e39ff884a3cd9b4ade","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/diaspora/diaspora/pulls/6033/commits","review_comments_url":"https://api.github.com/repos/diaspora/diaspora/pulls/6033/comments","review_comment_url":"https://api.github.com/repos/diaspora/diaspora/pulls/comments{/number}","comments_url":"https://api.github.com/repos/diaspora/diaspora/issues/6033/comments","statuses_url":"https://api.github.com/repos/diaspora/diaspora/statuses/27854b19cec4d429e342a45ef6a24a2b06ad1091","head":{"label":"ATSE-TheBeginners:4297-color-themes","ref":"4297-color-themes","sha":"27854b19cec4d429e342a45ef6a24a2b06ad1091","user":{"login":"ATSE-TheBeginners","id":11647334,"avatar_url":"https://avatars.githubusercontent.com/u/11647334?v=3","gravatar_id":"","url":"https://api.github.com/users/ATSE-TheBeginners","html_url":"https://github.com/ATSE-TheBeginners","followers_url":"https://api.github.com/users/ATSE-TheBeginners/followers","following_url":"https://api.github.com/users/ATSE-TheBeginners/following{/other_user}","gists_url":"https://api.github.com/users/ATSE-TheBeginners/gists{/gist_id}","starred_url":"https://api.github.com/users/ATSE-TheBeginners/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ATSE-TheBeginners/subscriptions","organizations_url":"https://api.github.com/users/ATSE-TheBeginners/orgs","repos_url":"https://api.github.com/users/ATSE-TheBeginners/repos","events_url":"https://api.github.com/users/ATSE-TheBeginners/events{/privacy}","received_events_url":"https://api.github.com/users/ATSE-TheBeginners/received_events","type":"Organization","site_admin":false},"repo":{"id":34337303,"name":"diaspora","full_name":"ATSE-TheBeginners/diaspora","owner":{"login":"ATSE-TheBeginners","id":11647334,"avatar_url":"https://avatars.githubusercontent.com/u/11647334?v=3","gravatar_id":"","url":"https://api.github.com/users/ATSE-TheBeginners","html_url":"https://github.com/ATSE-TheBeginners","followers_url":"https://api.github.com/users/ATSE-TheBeginners/followers","following_url":"https://api.github.com/users/ATSE-TheBeginners/following{/other_user}","gists_url":"https://api.github.com/users/ATSE-TheBeginners/gists{/gist_id}","starred_url":"https://api.github.com/users/ATSE-TheBeginners/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ATSE-TheBeginners/subscriptions","organizations_url":"https://api.github.com/users/ATSE-TheBeginners/orgs","repos_url":"https://api.github.com/users/ATSE-TheBeginners/repos","events_url":"https://api.github.com/users/ATSE-TheBeginners/events{/privacy}","received_events_url":"https://api.github.com/users/ATSE-TheBeginners/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ATSE-TheBeginners/diaspora","description":"Distributed and contextual social networking","fork":true,"url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora","forks_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/forks","keys_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/teams","hooks_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/hooks","issue_events_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/issues/events{/number}","events_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/events","assignees_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/assignees{/user}","branches_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/branches{/branch}","tags_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/tags","blobs_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/git/refs{/sha}","trees_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/statuses/{sha}","languages_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/languages","stargazers_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/stargazers","contributors_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/contributors","subscribers_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/subscribers","subscription_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/subscription","commits_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/commits{/sha}","git_commits_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/git/commits{/sha}","comments_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/comments{/number}","issue_comment_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/issues/comments{/number}","contents_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/contents/{+path}","compare_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/merges","archive_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/downloads","issues_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/issues{/number}","pulls_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/pulls{/number}","milestones_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/milestones{/number}","notifications_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/labels{/name}","releases_url":"https://api.github.com/repos/ATSE-TheBeginners/diaspora/releases{/id}","created_at":"2015-04-21T16:00:03Z","updated_at":"2015-06-02T21:49:00Z","pushed_at":"2015-06-04T01:57:44Z","git_url":"git://github.com/ATSE-TheBeginners/diaspora.git","ssh_url":"git@github.com:ATSE-TheBeginners/diaspora.git","clone_url":"https://github.com/ATSE-TheBeginners/diaspora.git","svn_url":"https://github.com/ATSE-TheBeginners/diaspora","homepage":"https://diasporafoundation.org/","size":100241,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"develop"}},"base":{"label":"diaspora:develop","ref":"develop","sha":"3850118e4e99c68b3b48cf11bf06af29b94ddd88","user":{"login":"diaspora","id":293207,"avatar_url":"https://avatars.githubusercontent.com/u/293207?v=3","gravatar_id":"","url":"https://api.github.com/users/diaspora","html_url":"https://github.com/diaspora","followers_url":"https://api.github.com/users/diaspora/followers","following_url":"https://api.github.com/users/diaspora/following{/other_user}","gists_url":"https://api.github.com/users/diaspora/gists{/gist_id}","starred_url":"https://api.github.com/users/diaspora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diaspora/subscriptions","organizations_url":"https://api.github.com/users/diaspora/orgs","repos_url":"https://api.github.com/users/diaspora/repos","events_url":"https://api.github.com/users/diaspora/events{/privacy}","received_events_url":"https://api.github.com/users/diaspora/received_events","type":"Organization","site_admin":false},"repo":{"id":911765,"name":"diaspora","full_name":"diaspora/diaspora","owner":{"login":"diaspora","id":293207,"avatar_url":"https://avatars.githubusercontent.com/u/293207?v=3","gravatar_id":"","url":"https://api.github.com/users/diaspora","html_url":"https://github.com/diaspora","followers_url":"https://api.github.com/users/diaspora/followers","following_url":"https://api.github.com/users/diaspora/following{/other_user}","gists_url":"https://api.github.com/users/diaspora/gists{/gist_id}","starred_url":"https://api.github.com/users/diaspora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diaspora/subscriptions","organizations_url":"https://api.github.com/users/diaspora/orgs","repos_url":"https://api.github.com/users/diaspora/repos","events_url":"https://api.github.com/users/diaspora/events{/privacy}","received_events_url":"https://api.github.com/users/diaspora/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/diaspora/diaspora","description":"Distributed and contextual social networking","fork":false,"url":"https://api.github.com/repos/diaspora/diaspora","forks_url":"https://api.github.com/repos/diaspora/diaspora/forks","keys_url":"https://api.github.com/repos/diaspora/diaspora/keys{/key_id}","collaborators_url":"https://api.github.com/repos/diaspora/diaspora/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/diaspora/diaspora/teams","hooks_url":"https://api.github.com/repos/diaspora/diaspora/hooks","issue_events_url":"https://api.github.com/repos/diaspora/diaspora/issues/events{/number}","events_url":"https://api.github.com/repos/diaspora/diaspora/events","assignees_url":"https://api.github.com/repos/diaspora/diaspora/assignees{/user}","branches_url":"https://api.github.com/repos/diaspora/diaspora/branches{/branch}","tags_url":"https://api.github.com/repos/diaspora/diaspora/tags","blobs_url":"https://api.github.com/repos/diaspora/diaspora/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/diaspora/diaspora/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/diaspora/diaspora/git/refs{/sha}","trees_url":"https://api.github.com/repos/diaspora/diaspora/git/trees{/sha}","statuses_url":"https://api.github.com/repos/diaspora/diaspora/statuses/{sha}","languages_url":"https://api.github.com/repos/diaspora/diaspora/languages","stargazers_url":"https://api.github.com/repos/diaspora/diaspora/stargazers","contributors_url":"https://api.github.com/repos/diaspora/diaspora/contributors","subscribers_url":"https://api.github.com/repos/diaspora/diaspora/subscribers","subscription_url":"https://api.github.com/repos/diaspora/diaspora/subscription","commits_url":"https://api.github.com/repos/diaspora/diaspora/commits{/sha}","git_commits_url":"https://api.github.com/repos/diaspora/diaspora/git/commits{/sha}","comments_url":"https://api.github.com/repos/diaspora/diaspora/comments{/number}","issue_comment_url":"https://api.github.com/repos/diaspora/diaspora/issues/comments{/number}","contents_url":"https://api.github.com/repos/diaspora/diaspora/contents/{+path}","compare_url":"https://api.github.com/repos/diaspora/diaspora/compare/{base}...{head}","merges_url":"https://api.github.com/repos/diaspora/diaspora/merges","archive_url":"https://api.github.com/repos/diaspora/diaspora/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/diaspora/diaspora/downloads","issues_url":"https://api.github.com/repos/diaspora/diaspora/issues{/number}","pulls_url":"https://api.github.com/repos/diaspora/diaspora/pulls{/number}","milestones_url":"https://api.github.com/repos/diaspora/diaspora/milestones{/number}","notifications_url":"https://api.github.com/repos/diaspora/diaspora/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/diaspora/diaspora/labels{/name}","releases_url":"https://api.github.com/repos/diaspora/diaspora/releases{/id}","created_at":"2010-09-15T05:20:04Z","updated_at":"2015-06-03T12:56:48Z","pushed_at":"2015-06-04T12:24:46Z","git_url":"git://github.com/diaspora/diaspora.git","ssh_url":"git@github.com:diaspora/diaspora.git","clone_url":"https://github.com/diaspora/diaspora.git","svn_url":"https://github.com/diaspora/diaspora","homepage":"https://diasporafoundation.org/","size":255687,"stargazers_count":10075,"watchers_count":10075,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2597,"mirror_url":null,"open_issues_count":391,"forks":2597,"open_issues":391,"watchers":10075,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/6033"},"html":{"href":"https://github.com/diaspora/diaspora/pull/6033"},"issue":{"href":"https://api.github.com/repos/diaspora/diaspora/issues/6033"},"comments":{"href":"https://api.github.com/repos/diaspora/diaspora/issues/6033/comments"},"review_comments":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/6033/comments"},"review_comment":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/6033/commits"},"statuses":{"href":"https://api.github.com/repos/diaspora/diaspora/statuses/27854b19cec4d429e342a45ef6a24a2b06ad1091"}}}}