Commit 48f0b7f7 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou

astakos: Do no link to members view if project is not alive

parent 14286a62
...@@ -324,8 +324,9 @@ class UserProjectsTable(UserTable): ...@@ -324,8 +324,9 @@ class UserProjectsTable(UserTable):
kwargs={'project_uuid': record.uuid}) kwargs={'project_uuid': record.uuid})
members_count = len(self.accepted.get(project.id, [])) members_count = len(self.accepted.get(project.id, []))
if self.user.owns_project(record) or self.user.is_project_admin(): if self.user.owns_project(record) or self.user.is_project_admin():
members_count = '<a href="%s">%d</a>' % (members_url, if project.is_alive:
members_count) members_count = '<a href="%s">%d</a>' % (members_url,
members_count)
return mark_safe(str(members_count) + append) return mark_safe(str(members_count) + append)
class Meta: class Meta:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment