summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2011-02-22 14:50:39 +0100
committerLeif Johansson <leifj@sunet.se>2011-02-22 14:50:39 +0100
commit9f4e2689bd0a1f51f32327eb4bffed7d65f303a5 (patch)
tree899fa2d023a77863205b33eb13b9664597b1d6f7 /templates
parent08579c6984f36e9bf7b76f35f9cf75e249984d65 (diff)
cleaner ui
Diffstat (limited to 'templates')
-rw-r--r--templates/apps/name/name.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/apps/name/name.html b/templates/apps/name/name.html
index 56d4229..d7be379 100644
--- a/templates/apps/name/name.html
+++ b/templates/apps/name/name.html
@@ -26,7 +26,7 @@
</div>
</div>
{% endif %}
- {% if memberships %}
+ {% if memberships and render.invite %}
<h3>Members</h3>
<div id="memberships">
{% for m in memberships.all %}
@@ -37,7 +37,7 @@
{% endfor %}
</div>
{% endif %}
- {% if invitations %}
+ {% if invitations and render.invite %}
<h3>Pending invitations</h3>
<div id="invitations">
{% for i in invitations.all %}
@@ -55,7 +55,7 @@
</div>
</div>
{% empty %}
- <p>There are no pending invitations.{% if render.invite %}<a class="tip" title="Invite user" href="/name/{{name.id}}/invite">Invite someone!</a>{% endif %}</p>
+ <p>There are no pending invitations. <a class="tip" title="Invite someone!" href="/name/{{name.id}}/invite">Invite someone!</a></p>
{% endfor %}
</div>
{% endif %}