{"action":"created","comment":{"url":"https://api.github.com/repos/Stanford-Online/edx-platform/pulls/comments/165786061","pull_request_review_id":93786472,"id":165786061,"diff_hunk":"@@ -40,81 +40,88 @@ <h2>\n           <hr>\n         </header>\n \n-<%\n-  discussion_tab = CourseTabList.get_discussion(course) if course else None\n-  discussion_link = discussion_tab.link_func(course, reverse) if (discussion_tab and discussion_tab.is_enabled(course, user=user)) else None\n-  has_user_registered = UserProfile.has_registered(user)\n-%>\n+    <%\n+      discussion_tab = CourseTabList.get_discussion(course) if course else None\n+      discussion_link = discussion_tab.link_func(course, reverse) if (discussion_tab and discussion_tab.is_enabled(course, user=user)) else None\n+      has_user_registered = UserProfile.has_registered(user)\n+    %>\n \n-% if discussion_link and has_user_registered:\n-    <p>${Text(_(\n-      'For {strong_start}questions on course lectures, homework, tools, or materials for this course{strong_end}, post in the course discussion forum.'\n-    )).format(\n-      strong_start=HTML('<strong>'),\n-      strong_end=HTML('</strong>')\n-    )}</p>\n-    <ul class=\"help-buttons\">\n-      <li><a class=\"help-modal-button\"  href=\"${discussion_link}\">\n-        ${_('Post in the Forum')}\n-      </a></li>\n-    </ul>\n-% endif\n+    % if discussion_link and has_user_registered:\n+        <p>${Text(_('For {strong_start}questions on course lectures, homework, tools, or materials for this course{strong_end}, post in the {link_start}course discussion forum{link_end}.')).format(\n+          strong_start=HTML('<strong>'),\n+          strong_end=HTML('</strong>'),\n+          link_start=HTML('<a href=\"{url}\" target=\"_blank\">').format(\n+            url=discussion_link\n+          ),\n+          link_end=HTML('</a>'),\n+          )}\n+        </p>\n+    % endif\n \n-    <p>${Text(_(\n-      'Have {strong_start}general questions about {platform_name}{strong_end}? You can find lots of helpful information in the {platform_name} Help Center.'\n-    )).format(\n-      strong_start=HTML('<strong>'),\n-      strong_end=HTML('</strong>'),\n-      platform_name=static.get_platform_name()\n-    )}</p>\n+        <p>${Text(_('Have {strong_start}general questions about {platform_name}{strong_end}? You can find lots of helpful information in the {platform_name} {link_start}Help Center{link_end}.')).format(\n+            strong_start=HTML('<strong>'),\n+            strong_end=HTML('</strong>'),\n+            link_start=HTML('<a href=\"{url}\" id=\"feedback-faq-link\" target=\"_blank\">').format(\n+              url=marketing_link('FAQ')\n+            ),\n+            link_end=HTML('</a>'),\n+            platform_name=static.get_platform_name())}\n+          </p>\n \n-    <ul class=\"help-buttons\">\n-      <%include file=\"help-center-link.html\" />\n-    </ul>\n+        <div class=\"help-buttons\">\n+          <li>\n+              <a class=\"help-modal-button\" href=\"${marketing_link('FAQ')}\" target=\"_blank\">\n+                  ${_('Access the Help Center')}\n+              </a>\n+          </li>\n+        </div>\n+        <hr>\n \n-    <hr>\n-% if course:\n-    <%include file=\"help-contact-link.html\" />\n+    % if course:\n+        <%include file=\"help-contact-link.html\" />","path":"lms/templates/help_modal.html","position":73,"original_position":73,"commit_id":"61ff75801fcedfb6239d3d8313ce57cee0ba40dd","original_commit_id":"61ff75801fcedfb6239d3d8313ce57cee0ba40dd","user":{"login":"stvstnfrd","id":7300975,"avatar_url":"https://avatars0.githubusercontent.com/u/7300975?v=4","gravatar_id":"","url":"https://api.github.com/users/stvstnfrd","html_url":"https://github.com/stvstnfrd","followers_url":"https://api.github.com/users/stvstnfrd/followers","following_url":"https://api.github.com/users/stvstnfrd/following{/other_user}","gists_url":"https://api.github.com/users/stvstnfrd/gists{/gist_id}","starred_url":"https://api.github.com/users/stvstnfrd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stvstnfrd/subscriptions","organizations_url":"https://api.github.com/users/stvstnfrd/orgs","repos_url":"https://api.github.com/users/stvstnfrd/repos","events_url":"https://api.github.com/users/stvstnfrd/events{/privacy}","received_events_url":"https://api.github.com/users/stvstnfrd/received_events","type":"User","site_admin":false},"body":"Can't we just always include the same ID?","created_at":"2018-02-02T23:23:12Z","updated_at":"2018-02-02T23:23:12Z","html_url":"https://github.com/Stanford-Online/edx-platform/pull/753#discussion_r165786061","pull_request_url":"https://api.github.com/repos/Stanford-Online/edx-platform/pulls/753","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/Stanford-Online/edx-platform/pulls/comments/165786061"},"html":{"href":"https://github.com/Stanford-Online/edx-platform/pull/753#discussion_r165786061"},"pull_request":{"href":"https://api.github.com/repos/Stanford-Online/edx-platform/pulls/753"}},"in_reply_to_id":165782471},"pull_request":{"url":"https://api.github.com/repos/Stanford-Online/edx-platform/pulls/753","id":166690665,"html_url":"https://github.com/Stanford-Online/edx-platform/pull/753","diff_url":"https://github.com/Stanford-Online/edx-platform/pull/753.diff","patch_url":"https://github.com/Stanford-Online/edx-platform/pull/753.patch","issue_url":"https://api.github.com/repos/Stanford-Online/edx-platform/issues/753","number":753,"state":"open","locked":false,"title":"Unfork help modal","user":{"login":"caesar2164","id":3364609,"avatar_url":"https://avatars2.githubusercontent.com/u/3364609?v=4","gravatar_id":"","url":"https://api.github.com/users/caesar2164","html_url":"https://github.com/caesar2164","followers_url":"https://api.github.com/users/caesar2164/followers","following_url":"https://api.github.com/users/caesar2164/following{/other_user}","gists_url":"https://api.github.com/users/caesar2164/gists{/gist_id}","starred_url":"https://api.github.com/users/caesar2164/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caesar2164/subscriptions","organizations_url":"https://api.github.com/users/caesar2164/orgs","repos_url":"https://api.github.com/users/caesar2164/repos","events_url":"https://api.github.com/users/caesar2164/events{/privacy}","received_events_url":"https://api.github.com/users/caesar2164/received_events","type":"User","site_admin":false},"body":"@stvstnfrd \r\n\r\ncorresponding PRs: \r\nhttps://github.com/Stanford-Online/configuration/pull/217\r\nhttps://github.com/Stanford-Online/openedx-themes/pull/11","created_at":"2018-02-02T00:38:58Z","updated_at":"2018-02-02T23:23:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cb5db689145740e1ed221e1faf939ef631756209","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/Stanford-Online/edx-platform/pulls/753/commits","review_comments_url":"https://api.github.com/repos/Stanford-Online/edx-platform/pulls/753/comments","review_comment_url":"https://api.github.com/repos/Stanford-Online/edx-platform/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Stanford-Online/edx-platform/issues/753/comments","statuses_url":"https://api.github.com/repos/Stanford-Online/edx-platform/statuses/61ff75801fcedfb6239d3d8313ce57cee0ba40dd","head":{"label":"caesar2164:unfork-help-modal","ref":"unfork-help-modal","sha":"61ff75801fcedfb6239d3d8313ce57cee0ba40dd","user":{"login":"caesar2164","id":3364609,"avatar_url":"https://avatars2.githubusercontent.com/u/3364609?v=4","gravatar_id":"","url":"https://api.github.com/users/caesar2164","html_url":"https://github.com/caesar2164","followers_url":"https://api.github.com/users/caesar2164/followers","following_url":"https://api.github.com/users/caesar2164/following{/other_user}","gists_url":"https://api.github.com/users/caesar2164/gists{/gist_id}","starred_url":"https://api.github.com/users/caesar2164/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caesar2164/subscriptions","organizations_url":"https://api.github.com/users/caesar2164/orgs","repos_url":"https://api.github.com/users/caesar2164/repos","events_url":"https://api.github.com/users/caesar2164/events{/privacy}","received_events_url":"https://api.github.com/users/caesar2164/received_events","type":"User","site_admin":false},"repo":{"id":18534311,"name":"edx-platform","full_name":"caesar2164/edx-platform","owner":{"login":"caesar2164","id":3364609,"avatar_url":"https://avatars2.githubusercontent.com/u/3364609?v=4","gravatar_id":"","url":"https://api.github.com/users/caesar2164","html_url":"https://github.com/caesar2164","followers_url":"https://api.github.com/users/caesar2164/followers","following_url":"https://api.github.com/users/caesar2164/following{/other_user}","gists_url":"https://api.github.com/users/caesar2164/gists{/gist_id}","starred_url":"https://api.github.com/users/caesar2164/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caesar2164/subscriptions","organizations_url":"https://api.github.com/users/caesar2164/orgs","repos_url":"https://api.github.com/users/caesar2164/repos","events_url":"https://api.github.com/users/caesar2164/events{/privacy}","received_events_url":"https://api.github.com/users/caesar2164/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/caesar2164/edx-platform","description":"the edX learning management system (LMS) and course authoring tool, Studio","fork":true,"url":"https://api.github.com/repos/caesar2164/edx-platform","forks_url":"https://api.github.com/repos/caesar2164/edx-platform/forks","keys_url":"https://api.github.com/repos/caesar2164/edx-platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/caesar2164/edx-platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/caesar2164/edx-platform/teams","hooks_url":"https://api.github.com/repos/caesar2164/edx-platform/hooks","issue_events_url":"https://api.github.com/repos/caesar2164/edx-platform/issues/events{/number}","events_url":"https://api.github.com/repos/caesar2164/edx-platform/events","assignees_url":"https://api.github.com/repos/caesar2164/edx-platform/assignees{/user}","branches_url":"https://api.github.com/repos/caesar2164/edx-platform/branches{/branch}","tags_url":"https://api.github.com/repos/caesar2164/edx-platform/tags","blobs_url":"https://api.github.com/repos/caesar2164/edx-platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/caesar2164/edx-platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/caesar2164/edx-platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/caesar2164/edx-platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/caesar2164/edx-platform/statuses/{sha}","languages_url":"https://api.github.com/repos/caesar2164/edx-platform/languages","stargazers_url":"https://api.github.com/repos/caesar2164/edx-platform/stargazers","contributors_url":"https://api.github.com/repos/caesar2164/edx-platform/contributors","subscribers_url":"https://api.github.com/repos/caesar2164/edx-platform/subscribers","subscription_url":"https://api.github.com/repos/caesar2164/edx-platform/subscription","commits_url":"https://api.github.com/repos/caesar2164/edx-platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/caesar2164/edx-platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/caesar2164/edx-platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/caesar2164/edx-platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/caesar2164/edx-platform/contents/{+path}","compare_url":"https://api.github.com/repos/caesar2164/edx-platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/caesar2164/edx-platform/merges","archive_url":"https://api.github.com/repos/caesar2164/edx-platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/caesar2164/edx-platform/downloads","issues_url":"https://api.github.com/repos/caesar2164/edx-platform/issues{/number}","pulls_url":"https://api.github.com/repos/caesar2164/edx-platform/pulls{/number}","milestones_url":"https://api.github.com/repos/caesar2164/edx-platform/milestones{/number}","notifications_url":"https://api.github.com/repos/caesar2164/edx-platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/caesar2164/edx-platform/labels{/name}","releases_url":"https://api.github.com/repos/caesar2164/edx-platform/releases{/id}","deployments_url":"https://api.github.com/repos/caesar2164/edx-platform/deployments","created_at":"2014-04-07T21:03:26Z","updated_at":"2017-01-24T01:03:19Z","pushed_at":"2018-02-02T22:55:30Z","git_url":"git://github.com/caesar2164/edx-platform.git","ssh_url":"git@github.com:caesar2164/edx-platform.git","clone_url":"https://github.com/caesar2164/edx-platform.git","svn_url":"https://github.com/caesar2164/edx-platform","homepage":"http://code.edx.org/","size":830680,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0"},"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"Stanford-Online:master","ref":"master","sha":"ed4af4959144a46e068057a74af337ed26dcfbd6","user":{"login":"Stanford-Online","id":2159497,"avatar_url":"https://avatars3.githubusercontent.com/u/2159497?v=4","gravatar_id":"","url":"https://api.github.com/users/Stanford-Online","html_url":"https://github.com/Stanford-Online","followers_url":"https://api.github.com/users/Stanford-Online/followers","following_url":"https://api.github.com/users/Stanford-Online/following{/other_user}","gists_url":"https://api.github.com/users/Stanford-Online/gists{/gist_id}","starred_url":"https://api.github.com/users/Stanford-Online/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stanford-Online/subscriptions","organizations_url":"https://api.github.com/users/Stanford-Online/orgs","repos_url":"https://api.github.com/users/Stanford-Online/repos","events_url":"https://api.github.com/users/Stanford-Online/events{/privacy}","received_events_url":"https://api.github.com/users/Stanford-Online/received_events","type":"Organization","site_admin":false},"repo":{"id":11616657,"name":"edx-platform","full_name":"Stanford-Online/edx-platform","owner":{"login":"Stanford-Online","id":2159497,"avatar_url":"https://avatars3.githubusercontent.com/u/2159497?v=4","gravatar_id":"","url":"https://api.github.com/users/Stanford-Online","html_url":"https://github.com/Stanford-Online","followers_url":"https://api.github.com/users/Stanford-Online/followers","following_url":"https://api.github.com/users/Stanford-Online/following{/other_user}","gists_url":"https://api.github.com/users/Stanford-Online/gists{/gist_id}","starred_url":"https://api.github.com/users/Stanford-Online/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stanford-Online/subscriptions","organizations_url":"https://api.github.com/users/Stanford-Online/orgs","repos_url":"https://api.github.com/users/Stanford-Online/repos","events_url":"https://api.github.com/users/Stanford-Online/events{/privacy}","received_events_url":"https://api.github.com/users/Stanford-Online/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Stanford-Online/edx-platform","description":"the edX learning management system (LMS) and course authoring tool, Studio","fork":true,"url":"https://api.github.com/repos/Stanford-Online/edx-platform","forks_url":"https://api.github.com/repos/Stanford-Online/edx-platform/forks","keys_url":"https://api.github.com/repos/Stanford-Online/edx-platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Stanford-Online/edx-platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Stanford-Online/edx-platform/teams","hooks_url":"https://api.github.com/repos/Stanford-Online/edx-platform/hooks","issue_events_url":"https://api.github.com/repos/Stanford-Online/edx-platform/issues/events{/number}","events_url":"https://api.github.com/repos/Stanford-Online/edx-platform/events","assignees_url":"https://api.github.com/repos/Stanford-Online/edx-platform/assignees{/user}","branches_url":"https://api.github.com/repos/Stanford-Online/edx-platform/branches{/branch}","tags_url":"https://api.github.com/repos/Stanford-Online/edx-platform/tags","blobs_url":"https://api.github.com/repos/Stanford-Online/edx-platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Stanford-Online/edx-platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Stanford-Online/edx-platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/Stanford-Online/edx-platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Stanford-Online/edx-platform/statuses/{sha}","languages_url":"https://api.github.com/repos/Stanford-Online/edx-platform/languages","stargazers_url":"https://api.github.com/repos/Stanford-Online/edx-platform/stargazers","contributors_url":"https://api.github.com/repos/Stanford-Online/edx-platform/contributors","subscribers_url":"https://api.github.com/repos/Stanford-Online/edx-platform/subscribers","subscription_url":"https://api.github.com/repos/Stanford-Online/edx-platform/subscription","commits_url":"https://api.github.com/repos/Stanford-Online/edx-platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/Stanford-Online/edx-platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/Stanford-Online/edx-platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/Stanford-Online/edx-platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/Stanford-Online/edx-platform/contents/{+path}","compare_url":"https://api.github.com/repos/Stanford-Online/edx-platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Stanford-Online/edx-platform/merges","archive_url":"https://api.github.com/repos/Stanford-Online/edx-platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Stanford-Online/edx-platform/downloads","issues_url":"https://api.github.com/repos/Stanford-Online/edx-platform/issues{/number}","pulls_url":"https://api.github.com/repos/Stanford-Online/edx-platform/pulls{/number}","milestones_url":"https://api.github.com/repos/Stanford-Online/edx-platform/milestones{/number}","notifications_url":"https://api.github.com/repos/Stanford-Online/edx-platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Stanford-Online/edx-platform/labels{/name}","releases_url":"https://api.github.com/repos/Stanford-Online/edx-platform/releases{/id}","deployments_url":"https://api.github.com/repos/Stanford-Online/edx-platform/deployments","created_at":"2013-07-23T19:05:46Z","updated_at":"2018-01-29T06:32:27Z","pushed_at":"2018-02-02T22:55:32Z","git_url":"git://github.com/Stanford-Online/edx-platform.git","ssh_url":"git@github.com:Stanford-Online/edx-platform.git","clone_url":"https://github.com/Stanford-Online/edx-platform.git","svn_url":"https://github.com/Stanford-Online/edx-platform","homepage":"http://code.edx.org/","size":736855,"stargazers_count":31,"watchers_count":31,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"archived":false,"open_issues_count":19,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0"},"forks":13,"open_issues":19,"watchers":31,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Stanford-Online/edx-platform/pulls/753"},"html":{"href":"https://github.com/Stanford-Online/edx-platform/pull/753"},"issue":{"href":"https://api.github.com/repos/Stanford-Online/edx-platform/issues/753"},"comments":{"href":"https://api.github.com/repos/Stanford-Online/edx-platform/issues/753/comments"},"review_comments":{"href":"https://api.github.com/repos/Stanford-Online/edx-platform/pulls/753/comments"},"review_comment":{"href":"https://api.github.com/repos/Stanford-Online/edx-platform/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Stanford-Online/edx-platform/pulls/753/commits"},"statuses":{"href":"https://api.github.com/repos/Stanford-Online/edx-platform/statuses/61ff75801fcedfb6239d3d8313ce57cee0ba40dd"}},"author_association":"OWNER"}}
{"actor":{"display_login":"stvstnfrd"}}