|
5 | 5 | {% if subscriptions %} |
6 | 6 | <div id="active-subscriptions"> |
7 | 7 | <p class="font-body font-weight-semibold subtitle mb-0"> |
8 | | - <i class="g-icon g-icon__dot-circle mr-2"></i>{% trans "Active Subscriptions" %} |
| 8 | + <i class="g-icon g-icon__dot-circle mr-2"></i>{% trans "Active Subscriptions" %} ({{subscriptions|length}}) |
9 | 9 | </p> |
10 | 10 | {% for subscription in subscriptions %} |
11 | 11 | <div class="py-3 mx-sm-0 row transaction-history"> |
|
56 | 56 | <hr> |
57 | 57 | <div id="contributions"> |
58 | 58 | <p class="font-body font-weight-semibold subtitle mb-0"> |
59 | | - <i class="g-icon g-icon__dot-circle mr-2"></i> {% trans "Contributions" %} |
| 59 | + <i class="g-icon g-icon__dot-circle mr-2"></i> {% trans "Contributions" %} ({{contributions|length}}) |
60 | 60 | </p> |
61 | 61 | {% for transaction in contributions %} |
62 | | - <div class="py-3 mx-sm-0 row transaction-history"> |
63 | | - <div class="d-none d-sm-block col-2 font-subheader text-center text-md-left my-auto"> |
64 | | - {{ transaction.created_on|date:"d M Y" }} |
65 | | - </div> |
66 | | - <div class="col-3 col-sm-2 col-md-1 justify-content-center special_tag"> |
67 | | - <a href="{% url 'profile' transaction.subscription.contributor_profile.handle %}"> |
68 | | - <img class="avatar rounded-circle" src="{{ transaction.subscription.contributor_profile.avatar_url }}"> |
69 | | - </a> |
70 | | - </div> |
71 | | - <div class="col-5 col-sm-4 my-auto"> |
72 | | - <div class="font-weight-bold font-body"> |
73 | | - <a href="{% url 'profile' transaction.subscription.contributor_profile.handle %}"> |
74 | | - {{ transaction.subscription.contributor_profile }} |
75 | | - </a> |
76 | | - </div> |
77 | | - <div class="info font-caption"> |
78 | | - {{ transaction.subscription.amount_per_period|floatformat:4|intcomma }} {{ transaction.subscription.token_symbol }} |
79 | | - {% if not transaction.tx_cleared %} (Pending) {% endif %} |
80 | | - {% if not transaction.success %} (Failed) {% endif %} |
81 | | - </div> |
82 | | - </div> |
83 | | - {% if not transaction.subscription.contributor_profile.hide_wallet_address %} |
84 | | - <div class="d-none d-md-block col-md-2 font-body my-auto txn-link"> |
85 | | - <a class="tx_link" href="https://etherscan.io/tx/{{ transaction.tx_id }}" target="_blank" rel="noopener noreferrer"> |
86 | | - {% if transaction.tx_id %} |
87 | | - View Etherscan |
88 | | - {% endif %} |
89 | | - </a> |
90 | | - </div> |
91 | | - {% endif %} |
92 | | - <div class="offset-lg-1 col-4 col-md-2 my-auto tags font-caption"> |
93 | | - <div class="tag tag-lg token"> |
94 | | - <p> |
95 | | - {{ transaction.subscription.amount_per_period|floatformat:4|intcomma }} |
96 | | - <span>{{ transaction.subscription.token_symbol }}</span> |
97 | | - </p> |
98 | | - </div> |
99 | | - {% if transaction.value_in_usdt_now %} |
100 | | - <div class="tag tag-lg usd"> |
101 | | - <p> |
102 | | - {{ transaction.value_in_usdt_now }} |
103 | | - <span>USD</span> |
104 | | - </p> |
105 | | - </div> |
106 | | - {% endif %} |
107 | | - </div> |
108 | | - </div> |
| 62 | + {% include 'grants/transaction.html' %} |
| 63 | + {% endfor %} |
| 64 | + </div> |
| 65 | + {% endif %} |
| 66 | + {% if voucher_fundings %} |
| 67 | + <hr> |
| 68 | + <div id="contributions"> |
| 69 | + <p class="font-body font-weight-semibold subtitle mb-0"> |
| 70 | + <i class="g-icon g-icon__dot-circle mr-2"></i> {% trans "Voucher Fundings" %} ({{voucher_fundings|length}}) |
| 71 | + </p> |
| 72 | + {% for transaction in voucher_fundings %} |
| 73 | + {% include 'grants/transaction.html' %} |
109 | 74 | {% endfor %} |
110 | 75 | </div> |
111 | 76 | {% endif %} |
112 | 77 | {% if cancelled_subscriptions %} |
113 | 78 | <hr> |
114 | 79 | <div id="cancelled-subscriptions"> |
115 | 80 | <p class="font-body font-weight-semibold subtitle mb-0"> |
116 | | - <i class="g-icon g-icon__dot-circle mr-2"></i> {% trans "Inactive Subscriptions" %} |
| 81 | + <i class="g-icon g-icon__dot-circle mr-2"></i> {% trans "Inactive Subscriptions" %} ({{cancelled_subscriptions|length}}) |
117 | 82 | </p> |
118 | 83 | {% for subscription in cancelled_subscriptions %} |
119 | 84 | <div class="py-3 mx-sm-0 row transaction-history"> |
|
0 commit comments