{"action":"created","comment":{"url":"https://api.github.com/repos/edx/ecommerce/pulls/comments/52554375","id":52554375,"diff_hunk":"@@ -0,0 +1,144 @@\n+{% load i18n %}\n+{% load thumbnail %}\n+{% load currency_filters %}\n+{% load purchase_info_tags %}\n+{% load widget_tweaks %}\n+\n+{% include 'partials/alert_messages.html' %}\n+\n+{% if not basket.is_empty %}\n+    <div id=\"content-inner\">\n+        {% block basket_form_main %}\n+            <form action=\".\" method=\"post\" class=\"basket_summary\" id=\"basket_formset\">\n+                {% csrf_token %}\n+                {{ formset.management_form }}\n+\n+                <div class=\"basket-items\">\n+                    {% for line in lines %}\n+                        {% purchase_info_for_line request line as session %}\n+                        {% if line.certificate_type %}\n+                        <p class=\"certificate_type\">\n+                            {% blocktrans with certificate_type=line.certificate_type %}\n+                                Enroll and Pursue a {{certificate_type}} Certificate in\n+                            {% endblocktrans %}\n+                        </p>\n+                        {% endif %}\n+                        <div class=\"row\">\n+                            <div class=\"col-sm-2 course_image\">\n+                                {{ form.id }}\n+                                    <img class=\"thumbnail\" src=\"{{ line.course.image_url }}\" alt=\"{{ line.course.name }}\"/>\n+                            </div>\n+                            <div class=\"col-sm-5\">\n+                                <p class=\"course_name\">{{ line.course.name }} - {{ line.course.org }} ({{ line.course.number }})</p>\n+                                <p class=\"course_description\">{{ line.course.short_description }}</p>\n+                            </div>\n+                            {% if line.has_discount %}\n+                                <div class=\"col-sm-3 discount\">\n+                                    <div class=\"benefit\">\n+                                        {% if benefit.type == 'Percentage' and benefit.value < 100.00 %}\n+                                            {% blocktrans with percentage=benefit.value|stringformat:'d' %}\n+                                                {{percentage}}% off\n+                                            {% endblocktrans %}\n+                                        {% endif %}\n+                                    </div>\n+                                    <div class=\"old-price\">\n+                                        {% if line.is_tax_known %}\n+                                            {{ line.line_price_incl_tax|currency:line.price_currency }}\n+                                        {% else %}\n+                                            {{ line.line_price_excl_tax|currency:line.price_currency }}\n+                                        {% endif %}\n+                                    </div>\n+                                </div>\n+                            {% endif %}\n+                            <div class=\"price {% if line.has_discount %}green{% endif %}\">\n+                                {% if line.is_tax_known %}\n+                                    {{ line.line_price_incl_tax_incl_discounts|currency:line.price_currency }}\n+                                {% else %}\n+                                    {{ line.line_price_excl_tax_incl_discounts|currency:line.price_currency }}\n+                                {% endif %}\n+                            </div>\n+                        </div>\n+                    {% endfor %}\n+                </div>\n+            </form>\n+        {% endblock %}\n+\n+        <div class=\"total\">\n+            <div class=\"row\">\n+                {% block vouchers %}\n+                    {% if basket.contains_a_voucher %}\n+                        <div class=\"vouchers col-sm-6\">\n+                            {% for voucher in basket.vouchers.all %}\n+                                <p class=\"voucher\">\n+                                {% blocktrans with voucher_code=voucher.code %}\n+                                    Promotion code {{voucher_code}} applied\n+                                {% endblocktrans %}\n+                                <form action=\"{% url 'basket:vouchers-remove' pk=voucher.id %}\" method=\"POST\">\n+                                    {% csrf_token %}\n+                                    <button class=\"remove-voucher\" type=\"submit\"><i class=\"fa fa-times\"></i></button>\n+                                </form>\n+                                </p>\n+                            {% endfor %}\n+                        </div>\n+                    {% else %}\n+                        {# Hide the entire section if a custom BasketView doesn't pass in a voucher form #}\n+                        {% if voucher_form %}\n+                            <div class=\"use-voucher col-sm-6\">\n+                                <p id=\"voucher_form_link\"><a href=\"#voucher\">{% trans \"Apply a promotion code\" %}</a></p>\n+\n+                                <div id=\"voucher_form_container\">\n+                                    <form id=\"voucher_form\" action=\"{% url 'basket:vouchers-add' %}\" method=\"post\">\n+                                        {% csrf_token %}\n+                                        <div class=\"code\">\n+                                            <input id=\"id_code\" maxlength=\"128\" name=\"code\" type=\"text\" placeholder=\"{% trans 'enter promo code' %}\">\n+                                            <button type=\"submit\" class=\"btn btn-default\" data-loading-text=\"{% trans 'Adding...' %}\">{% trans \"Apply\" %}</button>\n+                                        </div>\n+                                    </form>\n+                                </div>\n+                            </div>\n+                        {% endif %}\n+                    {% endif %}\n+                {% endblock vouchers %}\n+\n+                {% block baskettotals %}\n+                    {% include 'basket/partials/basket_totals.html' with editable=1 %}\n+                {% endblock baskettotals %}\n+            </div>\n+        </div>\n+\n+        <div class=\"row\">\n+            <div class=\"payment-buttons col-sm-3\" data-basket-id=\"{{ basket.id }}\">\n+                {% for processor in payment_processors %}\n+                    <button class=\"btn btn-primary payment-button\" value=\"{{ processor.NAME|lower }}\">\n+                        {% if processor.NAME == 'cybersource' %}\n+                            {% trans \"Checkout\" %}\n+                        {% elif processor.NAME == 'paypal' %}\n+                            {# Translators: Do NOT translate the name PayPal. #}\n+                            {% trans \"Checkout with PayPal\" %}\n+                        {% endif %}\n+                    </button>\n+                {% endfor %}\n+            </div>\n+        </div>\n+\n+        <div class=\"row verification-note\">\n+            <span><i class=\"fa fa-exclamation-circle\"></i></span>\n+            <b>{% trans \"Note:\" %}</b>{% trans \" You will need a \" %}\n+            <b>{% trans \"webcam\" %}</b>{% trans \" and a \" %}\n+            <b>{% trans \"photo ID\" %}</b>{% trans \" to verify your identity before the course starts. \" %}\n+        </div>\n+        <div class=\"row help\">\n+            <p><b>{% trans \"Have questions?\" %}</b></p>\n+            {% blocktrans with link_start='<a href=\"https://www.edx.org/gfa\" target=\"_blank\">' link_end='</a>' %}\n+                Please read {{ link_start }}our FAQs to view common questions about our certificates.{{ link_end }}\n+            {% endblocktrans %}\n+        </div>\n+    </div>\n+{% else %}\n+    {% block emptybasket %}\n+        <p>\n+            {% trans \"Your basket is empty.\" %}\n+            <a href=\"{{ homepage_url }}\">{% trans \"Continue shopping\" %}</a>","path":"ecommerce/templates/oscar/basket/partials/basket_content.html","position":141,"original_position":141,"commit_id":"6b23e6d40102e21b447b5f33b909b2eb5b712946","original_commit_id":"6b23e6d40102e21b447b5f33b909b2eb5b712946","user":{"login":"clintonb","id":910510,"avatar_url":"https://avatars.githubusercontent.com/u/910510?v=3","gravatar_id":"","url":"https://api.github.com/users/clintonb","html_url":"https://github.com/clintonb","followers_url":"https://api.github.com/users/clintonb/followers","following_url":"https://api.github.com/users/clintonb/following{/other_user}","gists_url":"https://api.github.com/users/clintonb/gists{/gist_id}","starred_url":"https://api.github.com/users/clintonb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clintonb/subscriptions","organizations_url":"https://api.github.com/users/clintonb/orgs","repos_url":"https://api.github.com/users/clintonb/repos","events_url":"https://api.github.com/users/clintonb/events{/privacy}","received_events_url":"https://api.github.com/users/clintonb/received_events","type":"User","site_admin":false},"body":"Discover new courses.","created_at":"2016-02-11T01:23:26Z","updated_at":"2016-02-11T01:23:26Z","html_url":"https://github.com/edx/ecommerce/pull/537#discussion_r52554375","pull_request_url":"https://api.github.com/repos/edx/ecommerce/pulls/537","_links":{"self":{"href":"https://api.github.com/repos/edx/ecommerce/pulls/comments/52554375"},"html":{"href":"https://github.com/edx/ecommerce/pull/537#discussion_r52554375"},"pull_request":{"href":"https://api.github.com/repos/edx/ecommerce/pulls/537"}}},"pull_request":{"url":"https://api.github.com/repos/edx/ecommerce/pulls/537","id":58594011,"html_url":"https://github.com/edx/ecommerce/pull/537","diff_url":"https://github.com/edx/ecommerce/pull/537.diff","patch_url":"https://github.com/edx/ecommerce/pull/537.patch","issue_url":"https://api.github.com/repos/edx/ecommerce/issues/537","number":537,"state":"open","locked":false,"title":"Basket UI","user":{"login":"vkaracic","id":2808092,"avatar_url":"https://avatars.githubusercontent.com/u/2808092?v=3","gravatar_id":"","url":"https://api.github.com/users/vkaracic","html_url":"https://github.com/vkaracic","followers_url":"https://api.github.com/users/vkaracic/followers","following_url":"https://api.github.com/users/vkaracic/following{/other_user}","gists_url":"https://api.github.com/users/vkaracic/gists{/gist_id}","starred_url":"https://api.github.com/users/vkaracic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vkaracic/subscriptions","organizations_url":"https://api.github.com/users/vkaracic/orgs","repos_url":"https://api.github.com/users/vkaracic/repos","events_url":"https://api.github.com/users/vkaracic/events{/privacy}","received_events_url":"https://api.github.com/users/vkaracic/received_events","type":"User","site_admin":false},"body":"UI That implements a Basket Summary and adds the ability to enter a coupon code to apply an offer to the basket.  \r\n\r\nThe basket makes use of the basket endpoint and also uses the checkout endpoint to initiate payment.\r\n\r\n![screen shot 2016-02-05 at 12 26 33 pm](https://cloud.githubusercontent.com/assets/2236013/12887113/28926152-ce40-11e5-9596-0a6c1c2bf2b6.png)\r\n","created_at":"2016-02-08T10:53:39Z","updated_at":"2016-02-11T01:23:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"34e090bd4de052edab4938bc450d6a6c618f8b3e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/edx/ecommerce/pulls/537/commits","review_comments_url":"https://api.github.com/repos/edx/ecommerce/pulls/537/comments","review_comment_url":"https://api.github.com/repos/edx/ecommerce/pulls/comments{/number}","comments_url":"https://api.github.com/repos/edx/ecommerce/issues/537/comments","statuses_url":"https://api.github.com/repos/edx/ecommerce/statuses/6b23e6d40102e21b447b5f33b909b2eb5b712946","head":{"label":"edx:coupons/UI","ref":"coupons/UI","sha":"6b23e6d40102e21b447b5f33b909b2eb5b712946","user":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"repo":{"id":30175039,"name":"ecommerce","full_name":"edx/ecommerce","owner":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/edx/ecommerce","description":"Django application used to manage edX's product catalog and handle orders for those products","fork":false,"url":"https://api.github.com/repos/edx/ecommerce","forks_url":"https://api.github.com/repos/edx/ecommerce/forks","keys_url":"https://api.github.com/repos/edx/ecommerce/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edx/ecommerce/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edx/ecommerce/teams","hooks_url":"https://api.github.com/repos/edx/ecommerce/hooks","issue_events_url":"https://api.github.com/repos/edx/ecommerce/issues/events{/number}","events_url":"https://api.github.com/repos/edx/ecommerce/events","assignees_url":"https://api.github.com/repos/edx/ecommerce/assignees{/user}","branches_url":"https://api.github.com/repos/edx/ecommerce/branches{/branch}","tags_url":"https://api.github.com/repos/edx/ecommerce/tags","blobs_url":"https://api.github.com/repos/edx/ecommerce/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edx/ecommerce/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edx/ecommerce/git/refs{/sha}","trees_url":"https://api.github.com/repos/edx/ecommerce/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edx/ecommerce/statuses/{sha}","languages_url":"https://api.github.com/repos/edx/ecommerce/languages","stargazers_url":"https://api.github.com/repos/edx/ecommerce/stargazers","contributors_url":"https://api.github.com/repos/edx/ecommerce/contributors","subscribers_url":"https://api.github.com/repos/edx/ecommerce/subscribers","subscription_url":"https://api.github.com/repos/edx/ecommerce/subscription","commits_url":"https://api.github.com/repos/edx/ecommerce/commits{/sha}","git_commits_url":"https://api.github.com/repos/edx/ecommerce/git/commits{/sha}","comments_url":"https://api.github.com/repos/edx/ecommerce/comments{/number}","issue_comment_url":"https://api.github.com/repos/edx/ecommerce/issues/comments{/number}","contents_url":"https://api.github.com/repos/edx/ecommerce/contents/{+path}","compare_url":"https://api.github.com/repos/edx/ecommerce/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edx/ecommerce/merges","archive_url":"https://api.github.com/repos/edx/ecommerce/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edx/ecommerce/downloads","issues_url":"https://api.github.com/repos/edx/ecommerce/issues{/number}","pulls_url":"https://api.github.com/repos/edx/ecommerce/pulls{/number}","milestones_url":"https://api.github.com/repos/edx/ecommerce/milestones{/number}","notifications_url":"https://api.github.com/repos/edx/ecommerce/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edx/ecommerce/labels{/name}","releases_url":"https://api.github.com/repos/edx/ecommerce/releases{/id}","deployments_url":"https://api.github.com/repos/edx/ecommerce/deployments","created_at":"2015-02-02T06:55:15Z","updated_at":"2016-02-09T06:27:35Z","pushed_at":"2016-02-11T00:02:57Z","git_url":"git://github.com/edx/ecommerce.git","ssh_url":"git@github.com:edx/ecommerce.git","clone_url":"https://github.com/edx/ecommerce.git","svn_url":"https://github.com/edx/ecommerce","homepage":"http://open-edx-ecommerce-guide.readthedocs.org","size":9293,"stargazers_count":20,"watchers_count":20,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":26,"mirror_url":null,"open_issues_count":10,"forks":26,"open_issues":10,"watchers":20,"default_branch":"master"}},"base":{"label":"edx:master","ref":"master","sha":"7b370de3fb2f3c3b070140985de853b7ba31c52d","user":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"repo":{"id":30175039,"name":"ecommerce","full_name":"edx/ecommerce","owner":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/edx/ecommerce","description":"Django application used to manage edX's product catalog and handle orders for those products","fork":false,"url":"https://api.github.com/repos/edx/ecommerce","forks_url":"https://api.github.com/repos/edx/ecommerce/forks","keys_url":"https://api.github.com/repos/edx/ecommerce/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edx/ecommerce/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edx/ecommerce/teams","hooks_url":"https://api.github.com/repos/edx/ecommerce/hooks","issue_events_url":"https://api.github.com/repos/edx/ecommerce/issues/events{/number}","events_url":"https://api.github.com/repos/edx/ecommerce/events","assignees_url":"https://api.github.com/repos/edx/ecommerce/assignees{/user}","branches_url":"https://api.github.com/repos/edx/ecommerce/branches{/branch}","tags_url":"https://api.github.com/repos/edx/ecommerce/tags","blobs_url":"https://api.github.com/repos/edx/ecommerce/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edx/ecommerce/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edx/ecommerce/git/refs{/sha}","trees_url":"https://api.github.com/repos/edx/ecommerce/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edx/ecommerce/statuses/{sha}","languages_url":"https://api.github.com/repos/edx/ecommerce/languages","stargazers_url":"https://api.github.com/repos/edx/ecommerce/stargazers","contributors_url":"https://api.github.com/repos/edx/ecommerce/contributors","subscribers_url":"https://api.github.com/repos/edx/ecommerce/subscribers","subscription_url":"https://api.github.com/repos/edx/ecommerce/subscription","commits_url":"https://api.github.com/repos/edx/ecommerce/commits{/sha}","git_commits_url":"https://api.github.com/repos/edx/ecommerce/git/commits{/sha}","comments_url":"https://api.github.com/repos/edx/ecommerce/comments{/number}","issue_comment_url":"https://api.github.com/repos/edx/ecommerce/issues/comments{/number}","contents_url":"https://api.github.com/repos/edx/ecommerce/contents/{+path}","compare_url":"https://api.github.com/repos/edx/ecommerce/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edx/ecommerce/merges","archive_url":"https://api.github.com/repos/edx/ecommerce/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edx/ecommerce/downloads","issues_url":"https://api.github.com/repos/edx/ecommerce/issues{/number}","pulls_url":"https://api.github.com/repos/edx/ecommerce/pulls{/number}","milestones_url":"https://api.github.com/repos/edx/ecommerce/milestones{/number}","notifications_url":"https://api.github.com/repos/edx/ecommerce/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edx/ecommerce/labels{/name}","releases_url":"https://api.github.com/repos/edx/ecommerce/releases{/id}","deployments_url":"https://api.github.com/repos/edx/ecommerce/deployments","created_at":"2015-02-02T06:55:15Z","updated_at":"2016-02-09T06:27:35Z","pushed_at":"2016-02-11T00:02:57Z","git_url":"git://github.com/edx/ecommerce.git","ssh_url":"git@github.com:edx/ecommerce.git","clone_url":"https://github.com/edx/ecommerce.git","svn_url":"https://github.com/edx/ecommerce","homepage":"http://open-edx-ecommerce-guide.readthedocs.org","size":9293,"stargazers_count":20,"watchers_count":20,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":26,"mirror_url":null,"open_issues_count":10,"forks":26,"open_issues":10,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/edx/ecommerce/pulls/537"},"html":{"href":"https://github.com/edx/ecommerce/pull/537"},"issue":{"href":"https://api.github.com/repos/edx/ecommerce/issues/537"},"comments":{"href":"https://api.github.com/repos/edx/ecommerce/issues/537/comments"},"review_comments":{"href":"https://api.github.com/repos/edx/ecommerce/pulls/537/comments"},"review_comment":{"href":"https://api.github.com/repos/edx/ecommerce/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/edx/ecommerce/pulls/537/commits"},"statuses":{"href":"https://api.github.com/repos/edx/ecommerce/statuses/6b23e6d40102e21b447b5f33b909b2eb5b712946"}}}}