diff --git a/app/grants/admin.py b/app/grants/admin.py
deleted file mode 100644
index 8c38f3f3dad..00000000000
--- a/app/grants/admin.py
+++ /dev/null
@@ -1,3 +0,0 @@
-from django.contrib import admin
-
-# Register your models here.
diff --git a/app/grants/apps.py b/app/grants/apps.py
index bc21e364102..1c3e315af52 100644
--- a/app/grants/apps.py
+++ b/app/grants/apps.py
@@ -1,5 +1,27 @@
+# -*- coding: utf-8 -*-
+"""Define the Grants application configuration.
+
+Copyright (C) 2018 Gitcoin Core
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as published
+by the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program. If not, see .
+
+"""
from django.apps import AppConfig
class GrantsConfig(AppConfig):
+ """Define the Grants application configuration."""
+
name = 'grants'
+ verbose_name = 'Grants'
diff --git a/app/grants/migrations/0001_initial.py b/app/grants/migrations/0001_initial.py
index 42f200492a7..57dff678217 100644
--- a/app/grants/migrations/0001_initial.py
+++ b/app/grants/migrations/0001_initial.py
@@ -1,4 +1,4 @@
-# Generated by Django 2.1.1 on 2018-09-17 21:37
+# Generated by Django 2.1.1 on 2018-10-09 13:20
from django.db import migrations, models
import django.db.models.deletion
@@ -14,32 +14,69 @@ class Migration(migrations.Migration):
]
operations = [
+ migrations.CreateModel(
+ name='Contribution',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('created_on', models.DateTimeField(db_index=True, default=economy.models.get_time)),
+ ('modified_on', models.DateTimeField(default=economy.models.get_time)),
+ ('tx_id', models.CharField(default='0x0', max_length=255)),
+ ],
+ options={
+ 'abstract': False,
+ },
+ ),
migrations.CreateModel(
name='Grant',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created_on', models.DateTimeField(db_index=True, default=economy.models.get_time)),
('modified_on', models.DateTimeField(default=economy.models.get_time)),
- ('title', models.CharField(max_length=255)),
- ('pitch', models.CharField(default='', max_length=255)),
+ ('status', models.BooleanField(default=True)),
+ ('title', models.CharField(default='', max_length=255)),
('description', models.TextField(blank=True, default='')),
('reference_url', models.URLField(db_index=True)),
- ('current_funding', models.DecimalField(decimal_places=4, default=0, max_digits=50)),
- ('goal_funding', models.DecimalField(decimal_places=4, default=0, max_digits=50)),
- ('profile', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='grants', to='dashboard.Profile')),
+ ('image_url', models.URLField(default='')),
+ ('admin_address', models.CharField(default='0x0', max_length=255)),
+ ('frequency', models.DecimalField(decimal_places=0, default=30, max_digits=50)),
+ ('amount_goal', models.DecimalField(decimal_places=4, default=1, max_digits=50)),
+ ('amount_received', models.DecimalField(decimal_places=4, default=0, max_digits=50)),
+ ('token_address', models.CharField(default='0x0', max_length=255)),
+ ('contract_address', models.CharField(default='0x0', max_length=255)),
+ ('transaction_hash', models.CharField(default='0x0', max_length=255)),
+ ('network', models.CharField(default='0x0', max_length=255)),
+ ('required_gas_price', models.DecimalField(decimal_places=0, default='0', max_digits=50)),
+ ('admin_profile', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='grant_admin', to='dashboard.Profile')),
+ ('team_member_profiles', models.ManyToManyField(related_name='grant_team_members', to='dashboard.Profile')),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
- name='Stakeholder',
+ name='Subscription',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('eth_address', models.CharField(max_length=50)),
- ('name', models.CharField(blank=True, max_length=255)),
- ('role', models.CharField(blank=True, max_length=255)),
- ('url', models.URLField(db_index=True)),
+ ('created_on', models.DateTimeField(db_index=True, default=economy.models.get_time)),
+ ('modified_on', models.DateTimeField(default=economy.models.get_time)),
+ ('status', models.BooleanField(default=True)),
+ ('subscription_hash', models.CharField(default='', max_length=255)),
+ ('contributor_signature', models.CharField(default='', max_length=255)),
+ ('contributor_address', models.CharField(default='', max_length=255)),
+ ('amount_per_period', models.DecimalField(decimal_places=4, default=1, max_digits=50)),
+ ('token_address', models.CharField(default='0x0', max_length=255)),
+ ('gas_price', models.DecimalField(decimal_places=4, default=1, max_digits=50)),
+ ('network', models.CharField(default='0x0', max_length=255)),
+ ('contributor_profile', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='grant_contributor', to='dashboard.Profile')),
+ ('grant', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='subscriptions', to='grants.Grant')),
],
+ options={
+ 'abstract': False,
+ },
+ ),
+ migrations.AddField(
+ model_name='contribution',
+ name='subscription',
+ field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='subscription_contribution', to='grants.Subscription'),
),
]
diff --git a/app/grants/migrations/0002_auto_20180918_1844.py b/app/grants/migrations/0002_auto_20180918_1844.py
deleted file mode 100644
index a2ac912cda5..00000000000
--- a/app/grants/migrations/0002_auto_20180918_1844.py
+++ /dev/null
@@ -1,68 +0,0 @@
-# Generated by Django 2.1.1 on 2018-09-18 18:44
-
-from django.db import migrations, models
-import django.db.models.deletion
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('dashboard', '0108_auto_20180917_2137'),
- ('grants', '0001_initial'),
- ]
-
- operations = [
- migrations.RenameField(
- model_name='grant',
- old_name='current_funding',
- new_name='amountGoal',
- ),
- migrations.RenameField(
- model_name='grant',
- old_name='goal_funding',
- new_name='amountReceived',
- ),
- migrations.RemoveField(
- model_name='grant',
- name='pitch',
- ),
- migrations.RemoveField(
- model_name='grant',
- name='profile',
- ),
- migrations.AddField(
- model_name='grant',
- name='adminAddress',
- field=models.CharField(default='0x0', max_length=255),
- ),
- migrations.AddField(
- model_name='grant',
- name='adminProfile',
- field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='grant_admin', to='dashboard.Profile'),
- ),
- migrations.AddField(
- model_name='grant',
- name='frequency',
- field=models.DecimalField(decimal_places=0, default=0, max_digits=50),
- ),
- migrations.AddField(
- model_name='grant',
- name='image_url',
- field=models.URLField(default=''),
- ),
- migrations.AddField(
- model_name='grant',
- name='status',
- field=models.BooleanField(default=True),
- ),
- migrations.AddField(
- model_name='grant',
- name='teamMemberProfiles',
- field=models.ManyToManyField(related_name='grant_team_members', to='dashboard.Profile'),
- ),
- migrations.AlterField(
- model_name='grant',
- name='title',
- field=models.CharField(default='Very grant. Much cool.', max_length=255),
- ),
- ]
diff --git a/app/grants/migrations/0003_auto_20180918_2234.py b/app/grants/migrations/0003_auto_20180918_2234.py
deleted file mode 100644
index 7cb3590834e..00000000000
--- a/app/grants/migrations/0003_auto_20180918_2234.py
+++ /dev/null
@@ -1,18 +0,0 @@
-# Generated by Django 2.1.1 on 2018-09-18 22:34
-
-from django.db import migrations, models
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('grants', '0002_auto_20180918_1844'),
- ]
-
- operations = [
- migrations.AlterField(
- model_name='grant',
- name='title',
- field=models.CharField(default='', max_length=255),
- ),
- ]
diff --git a/app/grants/migrations/0004_auto_20180918_2322.py b/app/grants/migrations/0004_auto_20180918_2322.py
deleted file mode 100644
index d30a54ca0e9..00000000000
--- a/app/grants/migrations/0004_auto_20180918_2322.py
+++ /dev/null
@@ -1,18 +0,0 @@
-# Generated by Django 2.1.1 on 2018-09-18 23:22
-
-from django.db import migrations, models
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('grants', '0003_auto_20180918_2234'),
- ]
-
- operations = [
- migrations.AlterField(
- model_name='grant',
- name='amountGoal',
- field=models.DecimalField(decimal_places=4, default=1, max_digits=50),
- ),
- ]
diff --git a/app/grants/migrations/0005_auto_20180918_2328.py b/app/grants/migrations/0005_auto_20180918_2328.py
deleted file mode 100644
index df0f6a6c613..00000000000
--- a/app/grants/migrations/0005_auto_20180918_2328.py
+++ /dev/null
@@ -1,18 +0,0 @@
-# Generated by Django 2.1.1 on 2018-09-18 23:28
-
-from django.db import migrations, models
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('grants', '0004_auto_20180918_2322'),
- ]
-
- operations = [
- migrations.AlterField(
- model_name='grant',
- name='frequency',
- field=models.DecimalField(decimal_places=0, default=30, max_digits=50),
- ),
- ]
diff --git a/app/grants/migrations/0006_grant_tokenaddress.py b/app/grants/migrations/0006_grant_tokenaddress.py
deleted file mode 100644
index 40edcc8c575..00000000000
--- a/app/grants/migrations/0006_grant_tokenaddress.py
+++ /dev/null
@@ -1,18 +0,0 @@
-# Generated by Django 2.1.1 on 2018-09-19 15:34
-
-from django.db import migrations, models
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('grants', '0005_auto_20180918_2328'),
- ]
-
- operations = [
- migrations.AddField(
- model_name='grant',
- name='tokenAddress',
- field=models.CharField(default='0x0', max_length=255),
- ),
- ]
diff --git a/app/grants/migrations/0007_auto_20180920_2115.py b/app/grants/migrations/0007_auto_20180920_2115.py
deleted file mode 100644
index 8cae68a9fb4..00000000000
--- a/app/grants/migrations/0007_auto_20180920_2115.py
+++ /dev/null
@@ -1,57 +0,0 @@
-# Generated by Django 2.1.1 on 2018-09-20 21:15
-
-from django.db import migrations, models
-import django.db.models.deletion
-import economy.models
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('dashboard', '0108_auto_20180917_2137'),
- ('grants', '0006_grant_tokenaddress'),
- ]
-
- operations = [
- migrations.CreateModel(
- name='Contribution',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('created_on', models.DateTimeField(db_index=True, default=economy.models.get_time)),
- ('modified_on', models.DateTimeField(default=economy.models.get_time)),
- ('txId', models.CharField(default='0x0', max_length=255)),
- ],
- options={
- 'abstract': False,
- },
- ),
- migrations.CreateModel(
- name='Subscription',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('created_on', models.DateTimeField(db_index=True, default=economy.models.get_time)),
- ('modified_on', models.DateTimeField(default=economy.models.get_time)),
- ('status', models.BooleanField(default=True)),
- ('subscriptionHash', models.CharField(default='', max_length=255)),
- ('contributorSignature', models.CharField(default='', max_length=255)),
- ('contributorAddress', models.CharField(default='', max_length=255)),
- ('amountPerPeriod', models.DecimalField(decimal_places=4, default=1, max_digits=50)),
- ('tokenAddress', models.CharField(default='0x0', max_length=255)),
- ('gasPrice', models.DecimalField(decimal_places=4, default=1, max_digits=50)),
- ('network', models.CharField(default='0x0', max_length=255)),
- ('contributorProfile', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='grant_contributor', to='dashboard.Profile')),
- ('grantPk', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='grant_subscription', to='grants.Grant')),
- ],
- options={
- 'abstract': False,
- },
- ),
- migrations.DeleteModel(
- name='Stakeholder',
- ),
- migrations.AddField(
- model_name='contribution',
- name='subscriptionPk',
- field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='subscription_contribution', to='grants.Subscription'),
- ),
- ]
diff --git a/app/grants/migrations/0008_auto_20180927_1537.py b/app/grants/migrations/0008_auto_20180927_1537.py
deleted file mode 100644
index 9b0fd5ac3d0..00000000000
--- a/app/grants/migrations/0008_auto_20180927_1537.py
+++ /dev/null
@@ -1,43 +0,0 @@
-# Generated by Django 2.1.1 on 2018-09-27 15:37
-
-from django.db import migrations, models
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('grants', '0007_auto_20180920_2115'),
- ]
-
- operations = [
- migrations.RenameField(
- model_name='grant',
- old_name='adminAddress',
- new_name='admin_address',
- ),
- migrations.RenameField(
- model_name='grant',
- old_name='amountGoal',
- new_name='amount_goal',
- ),
- migrations.RenameField(
- model_name='grant',
- old_name='amountReceived',
- new_name='amount_received',
- ),
- migrations.RenameField(
- model_name='grant',
- old_name='tokenAddress',
- new_name='contract_address',
- ),
- migrations.AddField(
- model_name='grant',
- name='network',
- field=models.CharField(default='0x0', max_length=255),
- ),
- migrations.AddField(
- model_name='grant',
- name='token_address',
- field=models.CharField(default='0x0', max_length=255),
- ),
- ]
diff --git a/app/grants/migrations/0009_auto_20180927_1544.py b/app/grants/migrations/0009_auto_20180927_1544.py
deleted file mode 100644
index d8bc8cd5665..00000000000
--- a/app/grants/migrations/0009_auto_20180927_1544.py
+++ /dev/null
@@ -1,23 +0,0 @@
-# Generated by Django 2.1.1 on 2018-09-27 15:44
-
-from django.db import migrations
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('grants', '0008_auto_20180927_1537'),
- ]
-
- operations = [
- migrations.RenameField(
- model_name='grant',
- old_name='adminProfile',
- new_name='admin_profile',
- ),
- migrations.RenameField(
- model_name='grant',
- old_name='teamMemberProfiles',
- new_name='team_member_profiles',
- ),
- ]
diff --git a/app/grants/migrations/0010_auto_20180927_1643.py b/app/grants/migrations/0010_auto_20180927_1643.py
deleted file mode 100644
index 86ca7eaafb8..00000000000
--- a/app/grants/migrations/0010_auto_20180927_1643.py
+++ /dev/null
@@ -1,63 +0,0 @@
-# Generated by Django 2.1.1 on 2018-09-27 16:43
-
-from django.db import migrations
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('grants', '0009_auto_20180927_1544'),
- ]
-
- operations = [
- migrations.RenameField(
- model_name='contribution',
- old_name='subscriptionPk',
- new_name='subscription_pk',
- ),
- migrations.RenameField(
- model_name='contribution',
- old_name='txId',
- new_name='tx_id',
- ),
- migrations.RenameField(
- model_name='subscription',
- old_name='amountPerPeriod',
- new_name='amount_per_period',
- ),
- migrations.RenameField(
- model_name='subscription',
- old_name='contributorAddress',
- new_name='contributor_address',
- ),
- migrations.RenameField(
- model_name='subscription',
- old_name='contributorProfile',
- new_name='contributor_profile',
- ),
- migrations.RenameField(
- model_name='subscription',
- old_name='contributorSignature',
- new_name='contributor_signature',
- ),
- migrations.RenameField(
- model_name='subscription',
- old_name='gasPrice',
- new_name='gas_price',
- ),
- migrations.RenameField(
- model_name='subscription',
- old_name='grantPk',
- new_name='grant_pk',
- ),
- migrations.RenameField(
- model_name='subscription',
- old_name='subscriptionHash',
- new_name='subscription_hash',
- ),
- migrations.RenameField(
- model_name='subscription',
- old_name='tokenAddress',
- new_name='token_address',
- ),
- ]
diff --git a/app/grants/migrations/0011_grant_required_gas_price.py b/app/grants/migrations/0011_grant_required_gas_price.py
deleted file mode 100644
index be897f545d0..00000000000
--- a/app/grants/migrations/0011_grant_required_gas_price.py
+++ /dev/null
@@ -1,18 +0,0 @@
-# Generated by Django 2.1.1 on 2018-09-27 19:51
-
-from django.db import migrations, models
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('grants', '0010_auto_20180927_1643'),
- ]
-
- operations = [
- migrations.AddField(
- model_name='grant',
- name='required_gas_price',
- field=models.DecimalField(decimal_places=0, default='0', max_digits=50),
- ),
- ]
diff --git a/app/grants/migrations/0012_auto_20181001_0010.py b/app/grants/migrations/0012_auto_20181001_0010.py
deleted file mode 100644
index ec253f89a90..00000000000
--- a/app/grants/migrations/0012_auto_20181001_0010.py
+++ /dev/null
@@ -1,28 +0,0 @@
-# Generated by Django 2.1.1 on 2018-10-01 00:10
-
-from django.db import migrations, models
-import django.db.models.deletion
-
-
-class Migration(migrations.Migration):
-
- dependencies = [
- ('grants', '0011_grant_required_gas_price'),
- ]
-
- operations = [
- migrations.RemoveField(
- model_name='subscription',
- name='grant_pk',
- ),
- migrations.AddField(
- model_name='grant',
- name='transaction_hash',
- field=models.CharField(default='0x0', max_length=255),
- ),
- migrations.AddField(
- model_name='subscription',
- name='grant',
- field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='subscriptions', to='grants.Grant'),
- ),
- ]
diff --git a/app/grants/models.py b/app/grants/models.py
index 889c5b8e9cb..f11be160ed4 100644
--- a/app/grants/models.py
+++ b/app/grants/models.py
@@ -1,5 +1,24 @@
+# -*- coding: utf-8 -*-
+"""Define the Grant models.
+
+Copyright (C) 2018 Gitcoin Core
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU Affero General Public License as published
+by the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU Affero General Public License for more details.
+
+You should have received a copy of the GNU Affero General Public License
+along with this program. If not, see .
+
+"""
from django.db import models
-from django.contrib.humanize.templatetags.humanize import naturalday, naturaltime
+
from economy.models import SuperModel
@@ -20,18 +39,23 @@ class Grant(SuperModel):
transaction_hash = models.CharField(max_length=255, default='0x0')
network = models.CharField(max_length=255, default='0x0')
required_gas_price = models.DecimalField(default='0', decimal_places=0, max_digits=50)
-
admin_profile = models.ForeignKey('dashboard.Profile', related_name='grant_admin', on_delete=models.CASCADE, null=True)
team_member_profiles = models.ManyToManyField('dashboard.Profile', related_name='grant_team_members')
def percentage_done(self):
- # import ipdb; ipdb.set_trace()
return ((self.amount_received / self.amount_goal) * 100)
-
def __str__(self):
"""Return the string representation of a Grant."""
- return f" id: {self.pk}, status: {self.status}, title: {self.title}, description: {self.description}, reference_url: {self.reference_url}, image_url: {self.image_url}, admin_address: {self.admin_address}, frequency: {self.frequency}, amount_goal: {self.amount_goal}, amount_received: {self.amount_received}, token_address: {self.token_address}, contract_address: {self.contract_address}, transaction_hash: {self.transaction_hash}, network: {self.network}, admin_profile: {self.admin_profile}, team_member_profiles: {self.team_member_profiles} @ {naturaltime(self.created_on)}"
+ # , reference_url: {self.reference_url}, image_url: {self.image_url},
+ # admin_address: {self.admin_address}, frequency: {self.frequency},
+ # amount_goal: {self.amount_goal}, amount_received: {self.amount_received},
+ # token_address: {self.token_address}, contract_address: {self.contract_address},
+ # transaction_hash: {self.transaction_hash}, network: {self.network},
+ # admin_profile: {self.admin_profile}, team_member_profiles:
+ # {self.team_member_profiles} @ {naturaltime(self.created_on)}
+ return f"id: {self.pk}, status: {self.status}, title: {self.title}, description: {self.description}"
+
class Subscription(SuperModel):
"""Define the structure of a subscription agreement"""
@@ -44,18 +68,25 @@ class Subscription(SuperModel):
token_address = models.CharField(max_length=255, default='0x0')
gas_price = models.DecimalField(default=1, decimal_places=4, max_digits=50)
network = models.CharField(max_length=255, default='0x0')
-
-
grant = models.ForeignKey('Grant', related_name='subscriptions', on_delete=models.CASCADE, null=True)
- contributor_profile = models.ForeignKey('dashboard.Profile', related_name='grant_contributor', on_delete=models.CASCADE, null=True)
+ contributor_profile = models.ForeignKey(
+ 'dashboard.Profile', related_name='grant_contributor', on_delete=models.CASCADE, null=True
+ )
def __str__(self):
"""Return the string representation of a Subscription."""
- return f" id: {self.pk}, status: {self.status}, subscription_hash: {self.subscription_hash}, contributor_signature: {self.contributor_signature}, contributor_address: {self.contributor_address}, contributor_profile: {self.contributor_profile}, amount_per_period: {self.amount_per_period}, token_address: {self.token_address}, gas_price: {self.gas_price}, network: {self.network}, @ {naturaltime(self.created_on)}, grant: {self.grant_pk}"
+ # f" contributor_signature: {self.contributor_signature}, contributor_address:" \
+ # f" {self.contributor_address}, contributor_profile: {self.contributor_profile}," \
+ # f" amount_per_period: {self.amount_per_period}, token_address: {self.token_address}," \
+ # f" gas_price: {self.gas_price}, network: {self.network}, @ {naturaltime(self.created_on)}," \
+ # f" grant: {self.grant_pk}"
+ return f"id: {self.pk}, status: {self.status}, subscription_hash: {self.subscription_hash}"
+
class Contribution(SuperModel):
"""Define the structure of a subscription agreement"""
tx_id = models.CharField(max_length=255, default='0x0')
-
- subscription_pk = models.ForeignKey('Subscription', related_name='subscription_contribution', on_delete=models.CASCADE, null=True)
+ subscription = models.ForeignKey(
+ 'grants.Subscription', related_name='subscription_contribution', on_delete=models.CASCADE, null=True
+ )
diff --git a/app/grants/templates/grants/cancel.html b/app/grants/templates/grants/cancel.html
index 69aa8c54072..815711b92a6 100644
--- a/app/grants/templates/grants/cancel.html
+++ b/app/grants/templates/grants/cancel.html
@@ -1,105 +1,117 @@
-{% load static %}
-{% load humanize %}
+{% comment %}
+ Copyright (C) 2018 Gitcoin Core
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published
+ by the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see .
+{% endcomment %}
+{% load static humanize %}
-
- {% include 'shared/head.html' %}
- {% include 'shared/cards.html' %}
-
-
-{% include 'shared/tag_manager_2.html' %}
-
-
-
+
+ {% include 'shared/head.html' %}
+ {% include 'shared/cards.html' %}
+
+
+ {% include 'shared/tag_manager_2.html' %}
+
+
+
-
+
+
+
+
+
+
+
+
+
10 ETH
+
{% trans "Your contribution" %}
+
+
+
-
-
-
-
-
-
-
-
-
10 ETH
-
Your contribution
+
+
+
+
344.ETH
+
{% trans "Current" %}
+
+
+
500.ETH
+
{% trans "Goal" %}
+
+
-
-
-
+
-
344.ETH
-
Current
+ {% trans "Start date:" %}05/05/2018
-
500.ETH
-
Goal
+ {% trans "Effective date of cancel:" %} 05/12/2018
-
-
-
-
- Start date: 05/05/2018
-
-
- Effective date of cancel: 05/12/2018
+
+
+ {% trans "Cancel" %}
+
+
+
+
+
-
-
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit.
- Mauris sodales magna sit amet mattis feugiat.
- Etiam dapibus semper dapibus.
- Sed sit amet vestibulum ligula, sit amet imperdiet risus.
+
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+ Mauris sodales magna sit amet mattis feugiat.
+ Etiam dapibus semper dapibus.
+ Sed sit amet vestibulum ligula, sit amet imperdiet risus.
- Etiam efficitur sem vel arcu porta finibus.
- Nullam sit amet dapibus nisi. Praesent elementum orci felis, id aliquet purus commodo ut.
- Donec ut consequat purus, ornare malesuada dolor. Donec ligula lacus, facilisis ut sollicitudin vel, aliquam quis tellus.
+ Etiam efficitur sem vel arcu porta finibus.
+ Nullam sit amet dapibus nisi. Praesent elementum orci felis, id aliquet purus commodo ut.
+ Donec ut consequat purus, ornare malesuada dolor. Donec ligula lacus, facilisis ut sollicitudin vel, aliquam quis tellus.
- Lorem ipsum dolor sit amet, consectetur adipiscing elit.
- Mauris sodales magna sit amet mattis feugiat.
- Etiam dapibus semper dapibus.
- Sed sit amet vestibulum ligula, sit amet imperdiet risus.
-
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+ Mauris sodales magna sit amet mattis feugiat.
+ Etiam dapibus semper dapibus.
+ Sed sit amet vestibulum ligula, sit amet imperdiet risus.
+
+
+
-
-
-
-{% include 'shared/bottom_notification.html' %}
-{% include 'shared/analytics.html' %}
-{% include 'shared/footer_scripts.html' %}
-{% include 'shared/footer.html' %}
-
-
-
-
-
-
-
-
+ {% include 'shared/bottom_notification.html' %}
+ {% include 'shared/analytics.html' %}
+ {% include 'shared/footer_scripts.html' %}
+ {% include 'shared/footer.html' %}
+
+
+
+
+
+
+
+
diff --git a/app/grants/templates/grants/fund.html b/app/grants/templates/grants/fund.html
index 5c8120b3611..c9b64eb40de 100644
--- a/app/grants/templates/grants/fund.html
+++ b/app/grants/templates/grants/fund.html
@@ -1,150 +1,149 @@
-{% load static %}
-{% load humanize %}
+{% comment %}
+ Copyright (C) 2018 Gitcoin Core
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Affero General Public License as published
+ by the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Affero General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
+ along with this program. If not, see
.
+{% endcomment %}
+{% load static humanize %}
-
- {% include 'shared/head.html' %}
- {% include 'shared/cards.html' %}
-
-
-
-{% include 'shared/tag_manager_2.html' %}
-
-
-
-
-
-
-