Files
@ 646735252f7d
Branch filter:
Location: symposion_app/pinaxcon/templates/symposion/teams/team_detail.html - annotation
646735252f7d
5.1 KiB
text/html
Upgrade django-easy-thumbnails to support new Pillow
Pillow dropped the Image.ANTIALIAS constant.
Pillow dropped the Image.ANTIALIAS constant.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 | 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 ef148ea48223 ef148ea48223 ef148ea48223 04f246d85071 ef148ea48223 04f246d85071 ef148ea48223 ef148ea48223 ef148ea48223 ef148ea48223 ef148ea48223 ef148ea48223 ef148ea48223 ef148ea48223 ef148ea48223 ef148ea48223 ef148ea48223 04f246d85071 ef148ea48223 ef148ea48223 ef148ea48223 ef148ea48223 ef148ea48223 ef148ea48223 ef148ea48223 ef148ea48223 ef148ea48223 04f246d85071 ef148ea48223 ef148ea48223 ef148ea48223 ef148ea48223 ef148ea48223 ef148ea48223 ef148ea48223 ef148ea48223 ef148ea48223 04f246d85071 ef148ea48223 ef148ea48223 ef148ea48223 ef148ea48223 ef148ea48223 ef148ea48223 ef148ea48223 ef148ea48223 ef148ea48223 ef148ea48223 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 ef148ea48223 04f246d85071 ef148ea48223 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 ef148ea48223 04f246d85071 ef148ea48223 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 ef148ea48223 04f246d85071 ef148ea48223 ef148ea48223 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 ef148ea48223 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 04f246d85071 bc07865ac00a 04f246d85071 | {% extends "site_base.html" %}
{% load bootstrap %}
{% block head_title %}{{ team.name }}{% endblock %}
{% block content %}
<div class="jumbotron">
<h1>{{ team.name }}</h1>
{% if team.description %}<p>{{ team.description }}</p>{% endif %}
<div>
<h2>Your Status {% if state %} <span class="badge badge-pill badge-primary">{{ state }}</span>{% endif %}</h2>
{% if state == "invited" %}
<p>
You have been invited to join this team.
<form class="form-horizontal" method="post" action="{% url "team_join" team.slug %}">
{% csrf_token %}
<input type="submit" class="btn btn-primary" value="Accept">
</form>
</p>
{% endif %}
{% if can_join %}
<p>
You are <strong>not</strong> a member of this team.
<form class="form-horizontal" method="post" action="{% url "team_join" team.slug %}">
{% csrf_token %}
<input type="submit" class="btn btn-primary" value="join">
</form>
</p>
{% endif %}
{% if can_leave %}
<p>
You are a member of this team.
<form class="form-horizontal" method="post" action="{% url "team_leave" team.slug %}">
{% csrf_token %}
<input type="submit" class="btn btn-secondary" value="leave">
</form>
</p>
{% endif %}
{% if can_apply %}
<p>
You are <strong>not</strong> a member of this team.
<form class="form-horizontal" method="post" action="{% url "team_apply" team.slug %}">
{% csrf_token %}
<input type="submit" class="btn btn-primary" value="apply">
</form>
</p>
{% endif %}
</div>
{% if user.is_staff or state == "manager" %}
{% if team.managers %}
<h2>Managers</h2>
<table class="table table-striped">
{% for membership in team.managers %}
<tr>
<td>{{ membership.user.get_full_name }} <{{ membership.user.email }}>{% if user == membership.user %} <span class="badge badge-info">you</span>{% endif %}</td>
<td>
<form class="form-horizontal" style="margin: 0;" method="post" action="{% url "team_demote" membership.pk %}">{% csrf_token %}<button type="submit" class="btn btn-sm btn-primary">demote</button></form>
</td>
</tr>
{% endfor %}
</table>
{% endif %}
{% if team.members %}
<h2>Team Members</h2>
<table class="table table-striped">
{% for membership in team.members %}
<tr>
<td>{{ membership.user.get_full_name }} <{{ membership.user.email }}>{% if user == membership.user %} <span class="badge badge-info">you</span>{% endif %}</td>
<td>
<form class="form-horizontal" style="margin: 0;" method="post" action="{% url "team_promote" membership.pk %}">{% csrf_token %}<button type="submit" class="btn btn-sm btn-primary">promote</button></form>
</td>
</tr>
{% endfor %}
</table>
{% endif %}
{% if team.applicants and team.access == "application" %}
<h2>Applicants</h2>
<table class="table table-striped">
{% for membership in team.applicants %}
<tr>
<td>{{ membership.user.get_full_name }} <{{ membership.user.email }}></td>
<td>
<form class="form-horizontal" style="margin: 0; float: left;" method="post" action="{% url "team_accept" membership.pk %}">{% csrf_token %}<button type="submit" class="btn btn-sm btn-primary">accept</button></form>
<form class="form-horizontal" style="margin: 0; float: left;" method="post" action="{% url "team_reject" membership.pk %}">{% csrf_token %}<button type="submit" class="btn btn-sm btn-secondary">reject</button></form>
</td>
</tr>
{% endfor %}
</table>
{% endif %}
{% if team.invitees %}
<h2>Invitees</h2>
<table class="table table-striped">
{% for membership in team.invitees %}
<tr>
<td>{{ membership.user.get_full_name }} <{{ membership.user.email }}></td>
</tr>
{% endfor %}
</table>
{% endif %}
{% if invite_form %}
<form method="POST" action="" class="form-horizontal">
{% csrf_token %}
<legend>Invite User to Team</legend>
{{ invite_form|bootstrap_horizontal }}
<div class="form-actions">
<input class="btn btn-primary" type="submit" value="Invite" />
</div>
</form>
{% endif %}
{% endif %}
</div>
{% endblock %}
|