Skip to content

Commit

Permalink
Changes requested by @thelostone-mc (gitcoinco#3316)
Browse files Browse the repository at this point in the history
* Solve migration conflicts
* Fix indentation flaws
  • Loading branch information
Emilio Silva Schlenker committed Mar 19, 2019
1 parent d92d575 commit 3428359
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 32 deletions.
21 changes: 0 additions & 21 deletions app/dashboard/migrations/0016_auto_20190313_1358.py

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
# Generated by Django 2.1.7 on 2019-03-08 19:45
# Generated by Django 2.1.7 on 2019-03-19 12:29

import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

dependencies = [
('grants', '0015_merge_20190225_1422'),
('dashboard', '0014_merge_20190221_2246'),
('grants', '0017_matchpledge_end_date'),
('dashboard', '0020_auto_20190312_0739'),
]

operations = [
migrations.AddField(
model_name='activity',
name='grant',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='activities', to='grants.Grant'),
),
migrations.AddField(
model_name='activity',
name='subscription',
Expand Down
10 changes: 5 additions & 5 deletions app/dashboard/templates/shared/profile_activities_grant.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@
</div>
{% endif %}
{% if activity.grant.network != 'mainnet' %}
<div class="tag network_warning">
<p>
<span>{{ activity.grant.network }}</span>
</p>
</div>
<div class="tag network_warning">
<p>
<span>{{ activity.grant.network }}</span>
</p>
</div>
{% endif %}
</div>
</a>
4 changes: 2 additions & 2 deletions app/retail/templates/shared/activity.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@
{% elif row.metadata.value_in_eth %}
<span>{{ row.metadata.value_in_eth }} {{row.token_name}}</span>
{% elif row.grant %}
{{ row.metadata.value_in_token | floatformat:2 }} / {{ row.metadata.amount_goal | floatformat:2 }}
{{ row.metadata.token_name }}
{{ row.metadata.value_in_token | floatformat:2 }} / {{ row.metadata.amount_goal | floatformat:2 }}
{{ row.metadata.token_name }}
{% else %}
<span>{{row.metadata.value_in_token_old}} - {{row.metadata.value_in_token}} {{row.metadata.token_name}}</span>
{% endif %}
Expand Down

0 comments on commit 3428359

Please sign in to comment.