@@ -21,79 +21,86 @@ <h2 class="font-title my-3 pb-3 title">
2121 {% trans "Grant Contribution History" %}
2222 {% if total_grant_contributions %} ({{total_grant_contributions}}) {% endif %}
2323 </ h2 >
24- < h3 class ="font-body mt-1 mb-1 "> Monthly Summary</ h3 >
24+ < h3 class ="font-body mt-1 mb-2 font-weight-semibold "> Monthly Summary</ h3 >
25+
2526 {% include "profiles/earningsgraph.html" with graph_type="grants" %}
2627
27- < h3 class ="font-body mt-1 mb-1 "> Grants Created ({{profile.grant_admin.count}})</ h3 >
28+ < h2 class ="font-body m-3 pb-3 title "> Grants Created ({{profile.grant_admin.count}})</ h3 >
29+
2830 {% if not profile.grant_admin.count %}
29- < p class ="p-3 ">
30- No Grants Created. < a href =grants/new > Create a Grant ></ a >
31- </ p >
31+ < h2 class ="font-title m-3 pb-3 title ">
32+ No Grants Created. < a href =grants/new > Create a Grant ></ a >
33+ </ h2 >
3234 {% endif %}
35+
3336 {% for transaction in profile.grant_admin.all %}
34- < div class ="py-3 mx-sm-0 row transaction-history ">
35- < div class ="col-3 col-md-2 font-subheader text-center my-auto ">
36- {{ transaction.created_on|date:"Y-m-d" }}
37- </ div >
38- < div class ="col-2 col-md-2 justify-content-center special_tag ">
39- < img class ="avatar " style ="max-width: 70px; " src ="{% if transaction.logo and transaction.logo.url %}{{ transaction.logo.url }}{% else %}{% with grant_logo='v2/images/grants/logos/' id=transaction.id|modulo:3 %} {% static grant_logo|addstr:id|add:'.png' %} {% endwith %} {% endif %} ">
40- </ div >
41- < div class ="col-7 col-md-5 my-auto ">
42- < div class ="title font-body ">
43- < a href ="{{ transaction.url }} "> {{ transaction.title }}</ a >
44- </ div >
45- < div class ="info font-caption ">
46- </ div >
47- </ div >
37+ < div class ="py-3 mx-sm-0 px-lg-0 row transaction-history bounty_row ">
38+ < div class ="col-5 col-sm-4 col-md-2 font-body my-auto ">
39+ {{ transaction.created_on|date:"Y-m-d" }}
40+ </ div >
41+ < div class ="col-2 col-md-2 px-0 justify-content-center special_tag ">
42+ < img class ="avatar " style ="max-width: 70px; " src ="{% if transaction.logo and transaction.logo.url %}{{ transaction.logo.url }}{% else %}{% with grant_logo='v2/images/grants/logos/' id=transaction.id|modulo:3 %} {% static grant_logo|addstr:id|add:'.png' %} {% endwith %} {% endif %} ">
43+ </ div >
44+ < div class ="col-5 col-md-4 my-auto ">
45+ < div class ="title font-body ">
46+ < a href ="{{ transaction.url }} "> {{ transaction.title }}</ a >
47+ </ div >
48+ </ div >
49+ < div class ="col-12 col-sm-6 col-md-2 my-auto ">
50+ < div class ="info font-caption mt-4 mt-md-0 text-center text-sm-left ">
51+ < span class ="font-weight-semibold "> Goal: </ span > {{ transaction.amount_goal}}< br >
52+ < span class ="font-weight-semibold "> Received:</ span > {{ transaction.amount_received }}< br >
4853 </ div >
54+ </ div >
55+ < div class ="col-12 col-sm-6 col-md-2 my-auto ">
56+ < div class ="info font-caption mt-sm-4 mt-md-0 text-center text-sm-left ">
57+ < span class ="font-weight-semibold "> Contributons Count:</ span > {{ transaction.contribution_count }} < br >
58+ < span class ="font-weight-semibold "> Contributors Count:</ span > {{ transaction.contributor_count }}
59+ </ div >
60+ </ div >
61+ </ div >
4962 {% endfor %}
50- < h3 class ="font-body mt-1 mb-1 "> Grant Contribution History ({{history|length}})</ h3 >
51- {% for transaction in history %}
52- < div class ="py-3 mx-sm-0 row transaction-history ">
53- < div class ="col-3 col-md-2 font-subheader text-center my-auto ">
54- {{ transaction.created_on }}
55- </ div >
56- < div class ="col-2 col-md-1 justify-content-center special_tag ">
57- < img class ="avatar " style ="max-width: 70px; " src ="{% if transaction.logo %}{{ transaction.logo }}{% else %}{% with grant_logo='v2/images/grants/logos/' id=transaction.id|modulo:3 %} {% static grant_logo|addstr:id|add:'.png' %} {% endwith %} {% endif %} ">
58- </ div >
59- < div class ="col-7 col-md-4 my-auto ">
60- < div class ="title font-body ">
61- < a href ="{{ transaction.url }} "> {{ transaction.title }}</ a >
62- </ div >
63- < div class ="info font-caption ">
6463
65- {{ transaction.amount_per_period|floatformat:4|intcomma }} {{ transaction.token_symbol }}
66- {% if transaction.num_tx_approved > 1 %}
67- / {{ transaction.frequency }} {{ transaction.frequency_unit }},
68- {% endif %}
69- {{transaction.num_tx_approved|floatformat}} time{{ transaction.num_tx_approved|pluralize }}
64+ < h2 class ="font-body mx-3 pb-2 mt-5 title "> Grant Contribution History ({{history|length}})</ h2 >
7065
71- </ div >
72- </ div >
73- < div class ="col-5 col-md-2 font-body my-auto txn-link ">
74- < a id ="tx_link " href ="https://etherscan.io/tx/{{transaction.cont.tx_id}} " target ="_blank " rel ="noopener noreferrer ">
75- {% if transaction.tx_id %}
76- View Etherscan
77- {% endif %}
78- </ a >
79- < input type ="hidden " id ="tx_id " name ="tx_id " value ="{{ transaction.cont.tx_id }} "/>
80- </ div >
81- < div class ="offset-lg-1 col-7 col-md-2 my-auto tags font-caption ">
82- < div class ="tag tag-lg token ">
83- < p >
84- {{ transaction.amount_per_period|floatformat:4|intcomma }}
85- < span > {{ transaction.token_symbol }}</ span >
86- </ p >
87- </ div >
88- {% if transaction.amount_per_period_usdt %}
89- < div class ="tag tag-lg usd ">
90- < p >
91- {{ transaction.amount_per_period_usdt|floatformat:2 }}
92- < span > USD</ span >
93- </ p >
94- </ div >
95- {% endif %}
96- </ div >
66+ {% for transaction in history %}
67+ < div class ="py-3 mx-sm-0 px-lg-0 row transaction-history bounty_row ">
68+ < div class ="col-5 col-sm-4 col-md-2 font-body my-auto ">
69+ {{ transaction.created_on }}
70+ </ div >
71+ < div class ="col-2 col-md-2 px-0 justify-content-center special_tag ">
72+ < img class ="avatar " style ="max-width: 70px; " src ="{% if transaction.logo %}{{ transaction.logo }}{% else %}{% with grant_logo='v2/images/grants/logos/' id=transaction.id|modulo:3 %} {% static grant_logo|addstr:id|add:'.png' %} {% endwith %} {% endif %} ">
73+ </ div >
74+ < div class ="col-5 col-md-4 my-auto ">
75+ < div class ="title font-body ">
76+ < a href ="{{ transaction.url }} "> {{ transaction.title }}</ a >
77+ </ div >
78+ </ div >
79+ < div class ="col-5 col-md-2 font-caption my-auto txn-link pt-3 pt-md-0 ">
80+ {% if transaction.tx_id %}
81+ < a id ="tx_link " href ="https://etherscan.io/tx/{{transaction.cont.tx_id}} " target ="_blank " rel ="noopener noreferrer ">
82+ View Etherscan
83+ </ a >
84+ {% endif %}
85+
86+ < input type ="hidden " id ="tx_id " name ="tx_id " value ="{{ transaction.cont.tx_id }} "/>
87+ </ div >
88+ < div class ="col-7 col-md-2 my-auto tags font-caption pt-3 pt-md-0 ">
89+ < div class ="tag tag-lg token ">
90+ < p >
91+ {{ transaction.amount_per_period|floatformat:4|intcomma }}
92+ < span > {{ transaction.token_symbol }}</ span >
93+ </ p >
9794 </ div >
95+ {% if transaction.amount_per_period_usdt %}
96+ < div class ="tag tag-lg usd ">
97+ < p >
98+ {{ transaction.amount_per_period_usdt|floatformat:2 }}
99+ < span > USD</ span >
100+ </ p >
101+ </ div >
102+ {% endif %}
103+ </ div >
104+ </ div >
98105 {% endfor %}
99106 </ div >
0 commit comments