From 74273f6346155dd6c817d176f43312a6e306d8c7 Mon Sep 17 00:00:00 2001 From: Dan Lipert Date: Mon, 25 May 2020 21:38:36 +0900 Subject: [PATCH] matic whitelabel grant creation and index --- app/assets/v2/images/grants/matic.png | Bin 0 -> 21677 bytes app/assets/v2/js/grants/new.js | 2 +- .../shared_bounty_mutation_estimate_gas.js | 4 ++- app/grants/models.py | 3 +- app/grants/urls.py | 3 +- app/grants/views.py | 31 +++++++++++++++++- 6 files changed, 38 insertions(+), 5 deletions(-) create mode 100644 app/assets/v2/images/grants/matic.png diff --git a/app/assets/v2/images/grants/matic.png b/app/assets/v2/images/grants/matic.png new file mode 100644 index 0000000000000000000000000000000000000000..6939d3a73cf0002fe2920a27bcaef0da8ee07c33 GIT binary patch literal 21677 zcmeF3^-~>9(C?4oc97t5kN^qpF2NlF1h)Xe-JOHGyE{Ay9tiG1g9dkZcL{cR->UmZ z+^YM-?AC78?zg(PXQyZSvm2qJB#nVej0yk%Fl1#UQ~?0s^;=^^MtnQN)%t1hZ3lE# zl@}n-6Q*W#S?D&#gpgd>@M5e{)?+J z%hb|w#cytK6ME#&bVM^pC{E*NT=2(_pB%Qh&RFbyl6Z<_{n$R6pffv0cv4%bFGHaV z^zk?R%cDO^vfvr&YNJm0r1V_$zAq!{7Pua`$q{ROCLC zB&+`a&Hp1lI2@$RKEwMjqxj)_vMR@D))_>7ffhe#{lih1#@}>j(q%1SI(NYqEF^~< zUO4-jtojsXFL(M>E0&8iuu+Wa!}fhnjsROQFoIJgMb&DT5uT}9+aRU=m?~60b+B$z z>x5!^j)USHN_!s~yimQfzj8A;C4algZ((FOk@$2RCUnDx)LK;Ikji$8!MSRdKrcCe z^nS!&c73Ip+GZt4nL0YJ%=1UGYM4nb*h}xe+V5&`vOzT0p6NxVZQUna7mSh!&-JJ|3_=l{rK#r#DVXieU`9QgXU6#N|*7z zJeLw6i$q*-F`$>eMw#qSG3NU8Sf%Xjaw-z^L> zH7>;{FqunSh)uj?vbO|%9+vOpLk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el, name='new_whitelabel'), re_path(r'^new', grant_new, name='new'), re_path(r'^categories', grant_categories, name='grant_categories'), path('//fund', grant_fund, name='fund'), diff --git a/app/grants/views.py b/app/grants/views.py index d47284e088b..f81270e4b57 100644 --- a/app/grants/views.py +++ b/app/grants/views.py @@ -329,6 +329,9 @@ def grants(request): health_grants_count = Grant.objects.filter( network=network, hidden=False, grant_type='health' ).count() + matic_grants_count = Grant.objects.filter( + network=network, hidden=False, grant_type='matic' + ).count() all_grants_count = Grant.objects.filter( network=network, hidden=False ).count() @@ -339,7 +342,9 @@ def grants(request): grant_types = [ {'label': 'Tech', 'keyword': 'tech', 'count': tech_grants_count}, {'label': 'Media', 'keyword': 'media', 'count': media_grants_count}, - {'label': 'Health', 'keyword': 'health', 'count': health_grants_count} + {'label': 'Health', 'keyword': 'health', 'count': health_grants_count}, + {'label': 'Matic', 'keyword': 'matic', 'count': matic_grants_count}, + ] title = matching_live + str(_('Grants')) has_real_grant_type = grant_type and grant_type != 'activity' @@ -601,6 +606,30 @@ def flag(request, grant_id): }) +@login_required +def grant_new_whitelabel(request): + """Create a new grant, with a branded creation form for specific tribe""" + + params = { + 'active': 'new_grant', + 'title': _('New Grant'), + 'card_desc': _('Provide sustainable funding for Open Source with Gitcoin Grants'), + 'profile': profile, + 'grant': {}, + 'keywords': get_keywords(), + 'recommend_gas_price': recommend_min_gas_price_to_confirm_in_time(4), + 'recommend_gas_price_slow': recommend_min_gas_price_to_confirm_in_time(120), + 'recommend_gas_price_avg': recommend_min_gas_price_to_confirm_in_time(15), + 'recommend_gas_price_fast': recommend_min_gas_price_to_confirm_in_time(1), + 'eth_usd_conv_rate': eth_usd_conv_rate(), + 'conf_time_spread': conf_time_spread(), + 'gas_advisories': gas_advisories(), + 'trusted_relayer': settings.GRANTS_OWNER_ACCOUNT + } + return TemplateResponse(request, 'grants/new-whitelabel.html', params) + + + @login_required def grant_new(request): """Handle new grant."""