2026-10-05 09:36:20 +02:00
<!-- retoor <retoor@molodetz.nl> -->
{% extends "admin/base_admin.html" %}
{% block admin_content %}
2026-10-05 11:25:41 +02:00
< h1 > Join requests</ h1 >
2026-10-05 09:36:20 +02:00
< div class = "table-wrap" >
< table class = "admin-table" >
2026-10-05 11:25:41 +02:00
< thead >< tr >< th > Who</ th >< th > Contact</ th >< th > Work</ th >< th > Message</ th >< th > Status</ th >< th > Received</ th >< th ></ th ></ tr ></ thead >
2026-10-05 09:36:20 +02:00
< tbody >
{% for item in requests %}
< tr >
< td > {{ item.name }}</ td >
< td > {{ item.contact }}</ td >
2026-10-05 11:25:41 +02:00
< td > {% if item.repo_url %}< a href = "{{ item.repo_url }}" rel = "nofollow noopener" target = "_blank" > {{ item.repo_url }}</ a > {% if item.link_status %}< br >< span class = "muted" > {{ item.link_status }}{% if item.link_title %}: {{ item.link_title }}{% endif %}</ span > {% endif %}{% else %}< span class = "muted" > none</ span > {% endif %}</ td >
2026-10-05 09:36:20 +02:00
< td > {{ item.message }}</ td >
< td >< span class = "status {{ item.status }}" > {{ item.status }}</ span ></ td >
< td > {{ local_dt(item.created_at) }}</ td >
< td class = "actions" >
< form method = "post" action = "/admin/joins/{{ item.uid }}/status" >
< select name = "status" aria-label = "Status" > {% for value in ['open', 'contacted', 'accepted', 'declined'] %}< option value = "{{ value }}" {% if item . status = = value %} selected {% endif %} > {{ value }}</ option > {% endfor %}</ select >
2026-10-05 11:25:41 +02:00
< button class = "button ghost small" type = "submit" > Set</ button >
2026-10-05 09:36:20 +02:00
</ form >
2026-10-05 11:25:41 +02:00
{% if item.repo_url %}< form method = "post" action = "/admin/joins/{{ item.uid }}/check" >< button class = "button ghost small" type = "submit" data-loading > Check link</ button ></ form > {% endif %}
2026-10-05 09:36:20 +02:00
</ td >
</ tr >
{% else %}
2026-10-05 11:25:41 +02:00
< tr >< td colspan = "7" class = "muted" > No join requests yet.</ td ></ tr >
2026-10-05 09:36:20 +02:00
{% endfor %}
</ tbody >
</ table >
</ div >
{% endblock %}