| 1 |
{% if memberships.is_empty() %} |
| 2 |
<div class="content-section"> |
| 3 |
<p class="muted">You haven't joined any forum communities yet.</p> |
| 4 |
{% if !mt_base_url.is_empty() %} |
| 5 |
<p class="mt-4"> |
| 6 |
<a href="{{ mt_base_url }}" class="btn-primary btn-link">Browse Communities</a> |
| 7 |
</p> |
| 8 |
{% endif %} |
| 9 |
</div> |
| 10 |
{% else %} |
| 11 |
<div class="content-section"> |
| 12 |
<p class="form-hint mb-5">Your memberships across <a href="{{ mt_base_url }}">Multithreaded</a> forum communities.</p> |
| 13 |
<div class="scroll-x"> |
| 14 |
<table class="data-table"> |
| 15 |
<thead> |
| 16 |
<tr> |
| 17 |
<th>Community</th> |
| 18 |
<th>Role</th> |
| 19 |
<th>Posts</th> |
| 20 |
<th>Joined</th> |
| 21 |
</tr> |
| 22 |
</thead> |
| 23 |
<tbody> |
| 24 |
{% for m in memberships %} |
| 25 |
<tr> |
| 26 |
<td><a href="{{ m.profile_url }}">{{ m.community_name }}</a></td> |
| 27 |
<td><span class="badge">{{ m.role }}</span></td> |
| 28 |
<td>{{ m.post_count }}</td> |
| 29 |
<td>{{ m.joined }}</td> |
| 30 |
</tr> |
| 31 |
{% endfor %} |
| 32 |
</tbody> |
| 33 |
</table> |
| 34 |
</div> |
| 35 |
</div> |
| 36 |
{% endif %} |
| 37 |
|