Skip to content

Commit

Permalink
fixup activity section
Browse files Browse the repository at this point in the history
  • Loading branch information
thelostone-mc committed Jan 10, 2020
1 parent 73be076 commit 98c024d
Showing 1 changed file with 42 additions and 38 deletions.
80 changes: 42 additions & 38 deletions app/retail/templates/shared/activity.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
{% endif %}
</div>
</div>
<div class="col-12 col-md-10 activity-info my-auto {% if row.secondary_avatar_url %} position-relative {% endif %}">
<div class="activity-status font-body mb-1">
<div class="col-12 col-md-10 activity-info my-auto {% if row.secondary_avatar_url %}position-relative{% endif %}">
<div class="activity-status font-body">
<a href="https://gitcoin.co/profile/{{ row.profile.handle }}" target="_blank">
@{{ row.profile.handle }}
</a>
Expand All @@ -45,7 +45,7 @@
{{ row.metadata.to_username }}
</a>
{% elif row.activity_type == 'new_grant' %}
{% trans "created" %}
{% trans "created a new grant" %}
<a href="{{ row.metadata.grant_url }}" target="_blank">
{{ row.metadata.title }}
</a>
Expand Down Expand Up @@ -118,43 +118,47 @@
{% endif %}
{% endif %}
</div>
<div class="font-caption" >
<div class="activity-tags activity-tag-first align-items-center">
{% if row.value_in_token_disp or row.metadata.value_in_eth or row.metadata.value_in_token %}
<div class="tag token">
<p>
{% if row.value_in_token_disp %}
<span class="value_in_token_disp">{{ row.value_in_token_disp }} {{row.token_name}}</span>
{% elif row.metadata.value_in_eth %}
<span class="value_in_eth">{{ row.metadata.value_in_eth }} {{row.token_name}}</span>
{% elif row.metadata.value_in_token %}
<span class="value_in_token">{{row.metadata.value_in_token}} {{row.metadata.token_name}}</span>
{% else %}
{% endif %}
</p>
</div>
{% endif %}
{% if row.value_in_usdt_now %}
<div class="tag usd">
<p>
<span>{{ row.value_in_usdt_now }} USD</span>
</p>
</div>
{% endif %}
{% if row.bounty.network and row.bounty.network != 'mainnet' %}
<div class="tag network_warning">
<p>
<span>{{ activity.bounty.network }}</span>
</p>
</div>
{% endif %}
<span class="mx-2">
{% if not hide_date %}
{{ row.created_human_time }}

{% if row.activity_type in 'new_bounty,increased_bounty,killed_bounty,new_grant_contribution,killed_grant_contribution,new_grant_subscription,new_tip,new_crowdfund' %}
<div class="font-caption mt-1">
<div class="activity-tags activity-tag-first align-items-center">
{% if row.value_in_token_disp or row.metadata.value_in_eth or row.metadata.value_in_token %}
<div class="tag token">
<p>
{% if row.value_in_token_disp %}
<span class="value_in_token_disp">{{ row.value_in_token_disp }} {{row.token_name}}</span>
{% elif row.metadata.value_in_eth %}
<span class="value_in_eth">{{ row.metadata.value_in_eth }} {{row.token_name}}</span>
{% elif row.metadata.value_in_token %}
<span class="value_in_token">{{row.metadata.value_in_token}} {{row.metadata.token_name}}</span>
{% endif %}
</p>
</div>
{% endif %}

{% if row.value_in_usdt_now %}
<div class="tag usd">
<p>
<span>{{ row.value_in_usdt_now }} USD</span>
</p>
</div>
{% endif %}

{% if row.bounty.network and row.bounty.network != 'mainnet' %}
<div class="tag network_warning">
<p>
<span>{{ activity.bounty.network }}</span>
</p>
</div>
{% endif %}
</span>
<span class="mr-2">
{% if not hide_date %}
{{ row.created_human_time }}
{% endif %}
</span>
</div>
</div>
</div>
{% endif %}
</div>
<div class="col-12 col-md-1 text-center my-auto">
{% if row.kudos %}
Expand Down

1 comment on commit 98c024d

@owocki
Copy link
Contributor

@owocki owocki commented on 98c024d Jan 10, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added a small fix here => f80a56e

Please sign in to comment.