add work request links to bounties
commitaaa7afd5b91d5e86e4ff33021cb5612cf95e885b
authorJosh Lehman <josh@substrate.attlocal.net>
dateWed 26 May 2021, 17:03 (5 years ago)
parent51fa6bf
content/grants/analytics-script.md+1−2
@@ -9,9 +9,8 @@ image = ""
99description = "Write a generator that exports chat data into a CSV."
1010reward = 1
1111assignee = ""
12−id = "1421596040"
1312completed = false
14−link = "https://airtable.com/shr4qt9t9kz7RaOIa?prefill_Bounty+ID=B0015&prefill_Bounty+Name=Analytics%20Script"
13+work_request_link = "https://airtable.com/shr4qt9t9kz7RaOIa?prefill_Bounty+ID=B0015&prefill_Bounty+Name=Analytics%20Script"
1514+++
1615
1716## Overview
content/grants/ucal-google-and-outlook-integration.md+1−1
@@ -11,7 +11,7 @@ reward = 1
1111assignee = ""
1212id = ""
1313completed = false
14−link = ""
14+work_request_link = "https://airtable.com/shr4qt9t9kz7RaOIa?prefill_Bounty+ID=B0014&prefill_Bounty+Name=ucal%20Google%20and%20Outlook%20Integration"
1515+++
1616### Purpose
1717
templates/grants/grant.html+5−2
@@ -40,15 +40,18 @@
4040
4141 {% if page.extra.completed %}
4242 <span class="db mb1">Completed</span>
43− {% else %}
43+ {% elif page.extra.assignee %}
4444 <span class="db mb1">WIP</span>
45+ {% elif page.extra.work_request_link %}
46+ <a href="{{ page.extra.work_request_link }}" target="_blank">
47+ Apply for this grant
48+ </a>
4549 {% endif %}
4650
4751 {% if page.extra.reward %}
4852 <span class="db mb1">Reward: {{ page.extra.reward }} Stars</span>
4953 {% endif %}
5054
51−
5255 {% if page.date %}
5356 <time class="mono db mv1 gray2 f5">{{ page.date | date(format="~%Y.%-m.%-d") }}</time>
5457 {% endif %}
templates/macros/macros.html+5−3
@@ -53,11 +53,13 @@
5353 {% if page.extra.assignee %}
5454 <span class="mr3 gray1 mono">{{ page.extra.assignee }}</span>
5555 {% endif %}
56− {% if page.extra.id and not page.extra.assignee %}
57− <a href="https://grants.urbit.org/{% if 'bounty' in page.taxonomies.grant_type %}bounties{% else %}proposals{% endif %}/{{ page.extra.id }}" target="_blank">Apply for this grant</a>
56+ {% if page.extra.work_request_link and not page.extra.assignee %}
57+ <a href="{{ page.extra.work_request_link }}" target="_blank">
58+ Apply for this grant
59+ </a>
5860 {% endif %}
5961 </div>
6062 </div>
6163 </article>
6264 {% endif %}
63−{% endmacro grant %}
65+{% endmacro grant %}