diff options
Diffstat (limited to 'templates/group.html')
-rw-r--r-- | templates/group.html | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/templates/group.html b/templates/group.html index 38e078f..1d3205c 100644 --- a/templates/group.html +++ b/templates/group.html @@ -24,7 +24,7 @@ {% endif %} </div> -{% if not public_view %} +{% if membership.active %} <div class="panel panel-default"> <div class="panel-heading" style="border-bottom: 0"> <h3 class="panel-title">Pads</h3> @@ -56,7 +56,7 @@ <div class="panel-body">No pads created.</div> {% endfor %} - {% if admin %} + {% if membership.admin %} <div class="panel-footer"> <a href="{{ url_for('pad_create', group_name=group.name) }}"> Create pad @@ -77,7 +77,7 @@ </ul> </div> -{% if admin %} +{% if membership.admin %} {% for member in members|rejectattr("active") %} {% if loop.first %} <div class="panel panel-default"> @@ -139,6 +139,11 @@ </div> <div class="panel-body"> + {% if membership %} + <div class="text-center"> + Membership request pending. + </div> + {% else %} <form class="form-horizontal" role="form" method="POST"> <div class="form-group"> <div class="col-lg-offset-2 col-lg-8"> @@ -146,6 +151,7 @@ </div> </div> </form> + {% endif %} </div> </div> {% endif %} |