From 72e5c3ee44cc45cb80459e8b9e63a9e25f089618 Mon Sep 17 00:00:00 2001 From: Miguel Angel G Date: Fri, 18 Sep 2020 12:31:30 -0500 Subject: [PATCH 1/4] Add hackathons events --- app/assets/onepager/css/main.css | 17 +++ app/dashboard/gas_views.py | 12 +++ app/retail/templates/gas_history.html | 147 +++++++++++++++++++++----- 3 files changed, 149 insertions(+), 27 deletions(-) diff --git a/app/assets/onepager/css/main.css b/app/assets/onepager/css/main.css index 139e80ef99f..f8dc6719dc4 100644 --- a/app/assets/onepager/css/main.css +++ b/app/assets/onepager/css/main.css @@ -544,6 +544,23 @@ body #main a:not(.button):hover { color: #ec5597; } + +body #main a.no-pink { + color: var(--gc-blue); +} + +body #main a.no-pink:hover { + color: var(--gc-blue-hover); +} + +body #main a.no-pink.btn-gc-blue { + color: #ffffff; +} + +body #main a.text-black.no-pink { + color: black; +} + .proPic { width: 25vmin; margin: 0.75vmin; diff --git a/app/dashboard/gas_views.py b/app/dashboard/gas_views.py index c7335900dcd..9c04f64f46a 100644 --- a/app/dashboard/gas_views.py +++ b/app/dashboard/gas_views.py @@ -245,6 +245,15 @@ def gas_history_view(request): for gh in gas_histories[i]: max_y = max(gh[0], max_y) breakdown_ui = breakdown.replace('ly', '') if breakdown != 'daily' else 'day' + + events = JSONStore.objects.get(key='hackathons', view='hackathons').data[1] + default_tab = 'current' + + tabs = [ + ('current', 'happening now'), + ('upcoming', 'upcoming'), + ('finished', 'completed'), + ] context = { 'title': _('Live Ethereum (ETH) Gas History'), 'card_desc': _('See and comment on the Ethereum (ETH) Gas - Hourly History Graph'), @@ -254,5 +263,8 @@ def gas_history_view(request): 'breakdown': breakdown, 'breakdown_ui': breakdown_ui, 'granularity_options': granularity_options, + 'events': events, + 'tabs': tabs, + 'default_tab': default_tab } return TemplateResponse(request, 'gas_history.html', context) diff --git a/app/retail/templates/gas_history.html b/app/retail/templates/gas_history.html index a94f1420fce..8cf147d35d4 100644 --- a/app/retail/templates/gas_history.html +++ b/app/retail/templates/gas_history.html @@ -1,7 +1,8 @@ {% extends 'onepager/base.html' %} -{% load i18n static %} +{% load i18n static date_fromisoformat timesince_fromisoformat %} {% block 'scripts' %} + {% endblock %} @@ -13,42 +14,134 @@ {% block 'main' %}
-{% include 'shared/gas_nav.html' %} +
+ {% include 'shared/gas_nav.html' %} -

{% trans "Gas History" %} ({{breakdown}}) {% trans "Alpha" %}

+

{% trans "Gas History" %} ({{breakdown}}) {% trans "Alpha" %}

- + -
- {% for key, val in lines.items %} -

{% trans "Gas price needed to confirm within" %} {{key}} {% trans "minute" %}{{key|pluralize}}

- {% endfor %} +
+ {% for key, val in lines.items %} +

{% trans "Gas price needed to confirm within" %} {{key}} {% trans "minute" %}{{key|pluralize}}

+ {% endfor %} +
+ + {% if gas_histories == '[]' %} +

+ {% blocktrans %} We are unable to sync gas data at this time. We recommend you check out ETH Gas Station instead.{% endblocktrans %} +

+ {% else %} + + {% include 'shared/gas_history.html' with y_axis="Gas Price (gwei)" %} + {% endif %}
+
+
+
+ +
+
-{% if gas_histories == '[]' %} -

- {% blocktrans %} We are unable to sync gas data at this time. We recommend you check out ETH Gas Station instead.{% endblocktrans %} -

-{% else %} - - {% include 'shared/gas_history.html' with y_axis="Gas Price (gwei)" %} - {% include 'shared/disqus.html' with page_url='https://gitcoin.co/gas/history?' %} +
+ {% if events|length %} +
+
+ {% for event in events %} + -
+
-
- +
+ -{% endif %} +
+
+ + {{ event.name }} + +
+
+ From + + To + +
+
+

{{ event.summary }}

+
+ {% if event.sponsor_profiles|length %} +
+ Sponsored by + {% for sponsor in event.sponsor_profiles %} + + {% endfor %} +
+ {% endif %} +
+ {% if event.end_date|timesince_fromisoformat <= "1 min" %} + + + Join + + {% endif %} + {% if event.display_showcase %} + + + + Showcase + + {% endif %} + {% if event.start_date|timesince_fromisoformat >= "1 min" and event.end_date|timesince_fromisoformat <= "1 min"%} + + + Prizes + + {% endif %} + {% if event.show_results %} + + + Projects + + {% endif %} +
+
+
+
+ {% endfor %} +
+
+ {% endif %} +
+
From 121204b2bc49459650e18f63cac87d996207fc18 Mon Sep 17 00:00:00 2001 From: Miguel Angel G Date: Wed, 23 Sep 2020 00:21:32 -0500 Subject: [PATCH 2/4] Add UTMs to hypercharge mode --- app/assets/v2/js/shared.js | 4 ++++ app/dashboard/models.py | 4 +++- app/dashboard/notifications.py | 7 +++++-- app/dashboard/router.py | 2 +- app/dashboard/templates/dashboard/explorer.html | 3 ++- app/marketing/management/commands/hypercharge_mode.py | 3 ++- app/retail/templates/emails/bounty.html | 6 +++--- app/retail/templates/emails/bounty_hypercharged.html | 2 +- app/retail/templates/emails/new_bounty.html | 2 +- app/retail/templates/emails/shared_bounty_actions.html | 6 +++++- 10 files changed, 27 insertions(+), 12 deletions(-) diff --git a/app/assets/v2/js/shared.js b/app/assets/v2/js/shared.js index 0c60fb04b9e..ae3c299219e 100644 --- a/app/assets/v2/js/shared.js +++ b/app/assets/v2/js/shared.js @@ -858,6 +858,10 @@ const renderFeaturedBountiesFromResults = (results, renderForExplorer) => { if (relatedTokenDetails && relatedTokenDetails.decimals) { decimals = relatedTokenDetails.decimals; } + if (result.metadata.hypercharge_mode) { + result['url'] = `${result['url']}?utm_source=hypercharge-auto-hack-explorer&utm_medium=gitcoin&utm_campaign=${result['title']}`; + } + result['rounded_amount'] = normalizeAmount(result['value_in_token'], decimals); html += tmpl.render(result); diff --git a/app/dashboard/models.py b/app/dashboard/models.py index e4e2c62e921..208ac073136 100644 --- a/app/dashboard/models.py +++ b/app/dashboard/models.py @@ -1333,11 +1333,13 @@ def post_save_bounty(sender, instance, created, **kwargs): # Publish and pin on townsquare profile = Profile.objects.filter(handle=HYPERCHARGE_BOUNTIES_PROFILE_HANDLE).first() + + utm = f'utm_source=hypercharge-auto-pinned-post&utm_medium=twitter&utm_campaign={instance.title}' if profile: metadata = { 'title': title, 'description': truncatechars(instance.issue_description_text, 500), - 'url': instance.get_absolute_url(), + 'url': f'{instance.get_absolute_url()}?{utm}', 'ask': '#announce' } activity = Activity.objects.create(profile=profile, activity_type='hypercharge_bounty', diff --git a/app/dashboard/notifications.py b/app/dashboard/notifications.py index 8b48ebb0300..ddda0d8024b 100644 --- a/app/dashboard/notifications.py +++ b/app/dashboard/notifications.py @@ -156,8 +156,11 @@ def maybe_market_to_twitter(bounty, event_name): random.shuffle(tweet_txts) tweet_txt = tweet_txts[0] + utm = '' + if bounty.metadata.get('hyper_tweet_counter', False): + utm = f'utm_source=hypercharge-auto&utm_medium=twitter&utm_campaign={bounty.title}' - url = bounty.get_absolute_url() + url = f'{bounty.get_absolute_url()}?{utm}' is_short = False for shortener in ['Tinyurl', 'Adfly', 'Isgd', 'QrCx']: try: @@ -539,7 +542,7 @@ def build_github_notification(bounty, event_name, profile_pairs=None): issue_message = interest.issue_message.strip() if issue_message: msg += f"\n\n{issue_message}" - + msg += f"\n\nLearn more [on the Gitcoin Issue Details page]({absolute_url}).\n\n" elif event_name == 'work_submitted': diff --git a/app/dashboard/router.py b/app/dashboard/router.py index 15a13c647ab..daaa9b0009a 100644 --- a/app/dashboard/router.py +++ b/app/dashboard/router.py @@ -307,7 +307,7 @@ class Meta: 'fulfillment_started_on', 'fulfillment_submitted_on', 'canceled_on', 'web3_created', 'bounty_owner_address', 'avatar_url', 'network', 'standard_bounties_id', 'github_org_name', 'interested', 'token_name', 'value_in_usdt', 'keywords', 'value_in_token', 'project_type', 'is_open', 'expires_date', 'latest_activity', 'token_address', - 'bounty_categories' + 'bounty_categories', 'metadata' ) diff --git a/app/dashboard/templates/dashboard/explorer.html b/app/dashboard/templates/dashboard/explorer.html index 2a32ebe0cf3..a436e13c8b1 100644 --- a/app/dashboard/templates/dashboard/explorer.html +++ b/app/dashboard/templates/dashboard/explorer.html @@ -405,7 +405,8 @@

{% trans "Checkout this bounty worth" %} {{ bounty.value_true|floatformat }}

Work on "{{ bounty.title }}" and receive {{ bounty.value_true|floatformat }} {{ bounty.token_name }}

- {% trans "View on Gitcoin.co" %} + {% trans "View on Gitcoin.co" %}

diff --git a/app/retail/templates/emails/new_bounty.html b/app/retail/templates/emails/new_bounty.html index 02b4f87b109..84b292ae3c1 100644 --- a/app/retail/templates/emails/new_bounty.html +++ b/app/retail/templates/emails/new_bounty.html @@ -106,7 +106,7 @@

{{email_ann

{% trans " Featured bounties for you!" %}

{% for bounty in featured_bounties %} - {% include 'emails/bounty.html' with bounty=bounty count=forloop.counter small=1%} + {% include 'emails/bounty.html' with bounty=bounty count=forloop.counter small=1 featured=True %} {% endfor %} diff --git a/app/retail/templates/emails/shared_bounty_actions.html b/app/retail/templates/emails/shared_bounty_actions.html index 9ff55b13b85..31bba50ce18 100644 --- a/app/retail/templates/emails/shared_bounty_actions.html +++ b/app/retail/templates/emails/shared_bounty_actions.html @@ -20,7 +20,11 @@ {% else %}
- {% trans "View on Gitcoin.co" %} + {% if featured %} + {% trans "View on Gitcoin.co" %} + {% else %} + {% trans "View on Gitcoin.co" %} + {% endif %}
{% endif %} {% if action2 == 'custom' %} From 5cede857bf476f52cb8381c17b42f656d737a692 Mon Sep 17 00:00:00 2001 From: Miguel Angel G Date: Wed, 30 Sep 2020 00:06:24 -0500 Subject: [PATCH 3/4] DRY hackathonslist and change color footer on roundup --- app/app/templates/shared/hackathon-list.html | 87 +++++++++++++++++ app/assets/v2/images/social/facebook-mint.png | Bin 0 -> 1215 bytes app/assets/v2/images/social/medium-mint.png | Bin 0 -> 1555 bytes app/assets/v2/images/social/reddit-mint.png | Bin 0 -> 1724 bytes app/assets/v2/images/social/slack-mint.png | Bin 0 -> 1830 bytes app/assets/v2/images/social/twitter-mint.png | Bin 0 -> 1599 bytes .../dashboard/hackathon/hackathons.html | 89 +----------------- app/dashboard/templates/onepager/base.html | 5 + .../templates/emails/bounty_roundup.html | 23 ++++- app/retail/templates/emails/template.html | 2 + app/retail/templates/gas_history.html | 87 +---------------- 11 files changed, 118 insertions(+), 175 deletions(-) create mode 100644 app/app/templates/shared/hackathon-list.html create mode 100644 app/assets/v2/images/social/facebook-mint.png create mode 100644 app/assets/v2/images/social/medium-mint.png create mode 100644 app/assets/v2/images/social/reddit-mint.png create mode 100644 app/assets/v2/images/social/slack-mint.png create mode 100644 app/assets/v2/images/social/twitter-mint.png diff --git a/app/app/templates/shared/hackathon-list.html b/app/app/templates/shared/hackathon-list.html new file mode 100644 index 00000000000..7d67b67dcc9 --- /dev/null +++ b/app/app/templates/shared/hackathon-list.html @@ -0,0 +1,87 @@ +{% load date_fromisoformat timesince_fromisoformat %} +
+ {% if events|length %} +
+
+ {% for event in events %} + + +
+ +
+ + +
+
+ + {{ event.name }} + +
+ +
+ From + + To + +
+
+

{{ event.summary }}

+
+ {% if event.sponsor_profiles|length %} +
+ Sponsored by + {% for sponsor in event.sponsor_profiles %} + + {% endfor %} +
+ {% endif %} + +
+ {% if event.end_date|timesince_fromisoformat <= "1 min" %} + + + Join + + {% endif %} + {% if event.display_showcase %} + + + + Showcase + + {% endif %} + {% if event.start_date|timesince_fromisoformat >= "1 min" and event.end_date|timesince_fromisoformat <= "1 min"%} + + + Prizes + + {% endif %} + {% if event.show_results %} + + + Projects + + {% endif %} +
+
+
+
+ {% endfor %} +
+
+ {% endif %} +
diff --git a/app/assets/v2/images/social/facebook-mint.png b/app/assets/v2/images/social/facebook-mint.png new file mode 100644 index 0000000000000000000000000000000000000000..016b5fd3db371226e0ac9426e5bdfed95a780d7c GIT binary patch literal 1215 zcmV;w1VH#Xgych*_^BYA(!j%9!Mz4`Ix4MW0M`(Nf@ z7+Elu?G!ef4xXQ=*>9CPwE-GE@+&i~kiT;&{SdYH848yoJAuEL<8Q;G5 zMrkKX-AKY(u2)W|EsaWL@9cVMSf!!DRv+J>-mZc)!Et-<%=(oaagkxm9$ zj`w?D?U!?2n@TUmiwEVceh>Q!Gv>t4$JtRtfl0Cb-ap^u!=8l-^WH?tMYT~qiyV%ei)J&0fPjD zC1I@(<}V~J%17qC*sn#WjrrCRMQG;oi3>-{s9pW^;&(g~b?AhfW>KBC>AE9~8zPSc zI3HrIox@*It^Wz#Fvd5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zx?cyDQFCSt3D*Gz!cPd|Y(Xy!Hkao@#IdgX%dFKNQ9T(sWn#<0qF`XuQS#t}IhO9| zV?Ku3&<#{HOZi9k{f0K~Dtq49^zU|@)6?Pfl%N+rT0b(X783!O0TUDwZSCZ``E3fmI zk)n`*J3>U<9rqFlRXBBHJabp0(w9m6Ex2OVi1W;uLV*pw$}SnyB5oj#F>%!eS7d+V zXp2X(Yb3=7?U!(fA5;*i^5@%+1gaeopI-S6LJ_2V}RRzOA-ZbMlzL{uBIU|KSG2|2-QXqp^N#y=5s~Z7yKJDSggPfo* zywq5Tmhx8!2fh~b*h1kosj@rjy4{tRH))(zZEnqb0*SiPjUAfLkWv)0w^9BN>pM~e zB-{(tVg{q{2e0KhSXdR3-=QsTKR)gJE+b||B9o+OwR6v|+T{{RK#H%d-LzF~;PFp% zEmPUa9W{zsCr>%Dj^7i{|0HGPsca3uA}jBGa52V09~sJ-jr{rzkIbuP2z)ij~RqR@)}wJ0IgL zKFXzklHM}dr1JRzzr7zd=PFoCH7z+`b6?atp-5``Dc=ECo`kVma*k6kxf%h)6qEYA z7AZh^X&}*gVwBg#l{Sww1~SeuHK0NY(4IEqb(6s_-o-lY(1Gi5`Wa`Xp47Q6@Or@B z`#%hmNn?#ADC7BTb|lCSxX}9*>rD_A;(N`o+h1M?u`#o5J4~_Pf~O6`(i8`DNfyY+ zq~!UOwHleO$ClcE~xpvfb4NSHbs_vDh-h|t$gw?MM2QP|Dp&J U`{!J%82|tP07*qoM6N<$g07%si~s-t literal 0 HcmV?d00001 diff --git a/app/assets/v2/images/social/twitter-mint.png b/app/assets/v2/images/social/twitter-mint.png new file mode 100644 index 0000000000000000000000000000000000000000..20e03aa61871d3ea2596322fa147ec1c8149d7df GIT binary patch literal 1599 zcmV-F2Eh4=P) zdI1FDR0*fORBA%@LM5P54F}u;AxRS;vAr{WZxbhR;vYM^>)?DOXE)y2^?v8Qc{6Wj z1nP*L{k|QR)dC?}mcA?$GML*ub7$79>=c1soy~HlW*~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%_1mwveR2Fj`|DldpXgc}H*H@fQyZL-ikey_q_WMOG zjx8g!PSfZ7XoyXXk?hRmg=DQox350wn+d literal 0 HcmV?d00001 diff --git a/app/dashboard/templates/dashboard/hackathon/hackathons.html b/app/dashboard/templates/dashboard/hackathon/hackathons.html index d44c89e7785..42714afb212 100644 --- a/app/dashboard/templates/dashboard/hackathon/hackathons.html +++ b/app/dashboard/templates/dashboard/hackathon/hackathons.html @@ -113,94 +113,7 @@

Build with the coolest Web3 projects

- -
- {% if events|length %} - {% load date_fromisoformat timesince_fromisoformat %} -
-
- {% for event in events %} - - -
- -
- - - -
-
- - {{ event.name }} - -
-
- From - - To - -
-
-

{{ event.summary }}

-
- {% if event.sponsor_profiles|length %} -
- Sponsored by - {% for sponsor in event.sponsor_profiles %} - - {% endfor %} -
- {% endif %} -
- {% if event.end_date|timesince_fromisoformat <= "1 min" %} - - - Join - - {% endif %} - {% if event.display_showcase %} - - - - Showcase - - {% endif %} - {% if event.start_date|timesince_fromisoformat >= "1 min" and event.end_date|timesince_fromisoformat <= "1 min"%} - - - Prizes - - {% endif %} - {% if event.show_results %} - - - Projects - - {% endif %} -
-
-
-
- {% endfor %} -
-
- {% endif %} -
- + {% include 'shared/hackathon-list.html' %} {% include 'shared/analytics.html' %} {% include 'shared/footer_scripts.html' %} diff --git a/app/dashboard/templates/onepager/base.html b/app/dashboard/templates/onepager/base.html index a32b952255b..06245e49330 100644 --- a/app/dashboard/templates/onepager/base.html +++ b/app/dashboard/templates/onepager/base.html @@ -55,6 +55,11 @@ .select2-container--default .select2-selection--single .select2-selection__arrow { height: 32px; } + + img.hackathon-card-logo { + max-height: 12rem; + max-width: 9rem; + }