/
get_started.html
57 lines (46 loc) · 3.09 KB
/
get_started.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{% load staticfiles %}
{% load socialaccount %}
<div class="text-center">
{% if not request.user.is_authenticated %}
<a class="button gh-button track-btn" data-category="sign-in" href="{% provider_login_url "github" %}"><i class="fi-social fi-social-github medium"></i> Sign in with GitHub to get started</a>
{% else %}
<div class="install-step">
<h3>Install the codesy extension.</h3>
{% if browser.name == 'unknown' %}
<p id="unknown-browser">Unknown browser. The codesy widgets are <a href="https://wiki.mozilla.org/WebExtensions" target="_blank">WebExtensions</a> that work with Firefox, Chrome, and Opera. We want to add it to others soon. Want to help?
<a href="https://github.com/codesy/widgets">Check the widgets code on GitHub</a>.
</p>
{% else %}
<p id="add-extension">
<a class="button download-button large track-btn"
data-category="Download"
data-label="{{ browser.name }}"
href="{{ browser.href}}"
role="button"
target="_blank">
<img class="browser-install-icon"install
src="{% static browser.img %}"
width="32" height="32"
/>
Download for {{ browser.name }}
</a>
</p>
{% endif %} {# end 'browser' if #}
</div>
<div class="installed">
<div id="payment-errors"></div>
{% if request.user.stripe_customer%}
<h3>You are ready to bid</h3>
<p>Try checking out GitHub issues with the most +1 votes.</p>
<a class="button gh-button track-btn" data-category="top+1" data-label="Created by You" href="https://github.com/issues?utf8=%E2%9C%93&q=is%3Aopen+is%3Aissue+sort%3Areactions-%2B1-desc+author%3A{{ request.user.username }}"><i class="fi-social fi-social-github medium"></i> Top +1 Issues Created by You</a>
<a class="button gh-button track-btn" data-category="top+1" data-label="Assigned to You" href="https://github.com/issues?q=is%3Aopen+is%3Aissue+sort%3Areactions-%2B1-desc+assignee%3A{{ request.user.username }}"><i class="fi-social fi-social-github medium"></i> Top +1 Issues Assigned to You</a>
<a class="button gh-button track-btn" data-category="top+1" data-label="Mentioning You" href="https://github.com/issues?q=is%3Aopen+is%3Aissue+sort%3Areactions-%2B1-desc+mentions%3A{{ request.user.username }}"><i class="fi-social fi-social-github medium"></i> Top +1 Issues Mentioning You</a><br/>
<a class="button gh-button track-btn" data-category="top+1" data-label="Global" href="https://github.com/issues?utf8=%E2%9C%93&q=is%3Aopen+is%3Aissue+sort%3Areactions-%2B1-desc+"><i class="fi-social fi-social-github medium"></i> Global Top +1 Issues</a><br/>
{% else %}
<h3>Browser Extension Installed</h3>
<p>Add credit card.</p>
{% include "credit_card_row.html" %}
{% endif %}
</div>
{% endif %} {# end request.user.is_authenticated if #}
</div>