Skip to content

Commit

Permalink
GITC-169 add flag to show/hide date on trust banner (#9288)
Browse files Browse the repository at this point in the history
* add flag to show/hide date on trust banner

* remove date on trust profile
  • Loading branch information
octavioamu authored Jul 12, 2021
1 parent c6ef6c1 commit 1c8bd0f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
8 changes: 5 additions & 3 deletions app/dashboard/templates/profiles/trust-vue.html
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,11 @@ <h5 class="modal-title" id="exampleModalLabel">Generate your Proof of Personhood
<h2>Increase Your Impact Up to 150%</h2>
<span class="font-smaller-1 line-height-2">On Gitcoin verified users have 100% (or more) of their donation amount count towards the match fund algorithm. Unverified users begin with 50%. To ensure sybil resistance and protect Quadratic Funding, please verify your account below.</span>
<div class="row spacer-mt-2 font-smaller-1 line-height-2">
<div class="col-12 col-lg-6 spacer-mt-2">
<a><i class="far fa-calendar-alt spacer-pr-2"></i> Verify during [[round_start_date]] - [[round_end_date]]</a>
</div>
{% if round_active %}
<div class="col-12 col-lg-6 spacer-mt-2">
<a><i class="far fa-calendar-alt spacer-pr-2"></i> Verify during [[round_start_date]] - [[round_end_date]]</a>
</div>
{% endif %}
<div class="col-12 col-lg-6 spacer-mt-2">
<span @click="showModal('why-this-matters-modal')" class="cursor-pointer hover-underline"><i class="fas fa-play-circle spacer-pr-2"></i> Why this matters</span>
</div>
Expand Down
1 change: 1 addition & 0 deletions app/dashboard/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2957,6 +2957,7 @@ def get_profile_tab(request, profile, tab, prev_context):
# place clr dates (as unix ts)
context['round_start_date'] = calendar.timegm(round_start_date.utctimetuple())
context['round_end_date'] = calendar.timegm(round_end_date.utctimetuple())
context['round_active'] = round_active

# detail available services
services = [
Expand Down
13 changes: 7 additions & 6 deletions app/grants/templates/grants/shared/landing_qf_active.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<div class="container bg-white">

<!-- Trust banner -->

<div v-if="{{trust_bonus}} && {{trust_bonus}} < 150" v-cloak class="alert alert-primary spacer-mt-4 border-1 border-primary">
<i :class="'far font-weight-bold mr-4 mt-1 position-absolute cursor-pointer' + (!bannerCollapsed ? ' fa-minus' : ' fa-plus')" @click="toggleBannerCollapse" style="right: 0px; z-index: 2"></i>
<div class="row">
Expand All @@ -13,11 +12,13 @@
<h6 class="gc-font-base mt-1">Maximize Your Impact! Your current match is {{ trust_bonus }}%</h6>
<span v-if="!bannerCollapsed" class="font-smaller-1 line-height-2">Verified users have up to 150% of their donation amount count towards the match fund algorithm. Unverified users — only 50%. Maximize your match by verifying with identity partners.</span>
<div v-if="!bannerCollapsed" class="row spacer-mt-2 font-smaller-1 line-height-2">
<div class="col-12 col-lg-6 spacer-mt-2">
{% timezone "US/Mountain" %}
<a><i class="far fa-calendar-alt spacer-pr-2 text-primary"></i> Verify during {{ round_start_date|localtime|date:"F j" }} - {{ round_end_date|localtime|date:"F j" }}</a>
{% endtimezone %}
</div>
{% if round_active %}
<div class="col-12 col-lg-6 spacer-mt-2">
{% timezone "US/Mountain" %}
<a><i class="far fa-calendar-alt spacer-pr-2 text-primary"></i> Verify during {{ round_start_date|localtime|date:"F j" }} - {{ round_end_date|localtime|date:"F j" }}</a>
{% endtimezone %}
</div>
{% endif %}
<div class="col-12 col-lg-6 spacer-mt-2">
<span @click="showModal('why-this-matters-modal')" class="cursor-pointer hover-underline"><i class="fas fa-play-circle spacer-pr-2 text-primary"></i> Why this matters</span>
</div>
Expand Down

0 comments on commit 1c8bd0f

Please sign in to comment.