Revision 3e3743f2 snf-astakos-app/astakos/im/tables.py
b/snf-astakos-app/astakos/im/tables.py | ||
---|---|---|
237 | 237 |
|
238 | 238 |
super(UserTable, self).__init__(*args, **kwargs) |
239 | 239 |
|
240 |
|
|
241 | 240 |
def project_name_append(application, column): |
242 | 241 |
if application.has_pending_modifications(): |
243 | 242 |
return mark_safe("<br /><i class='tiny'>%s</i>" % \ |
244 |
_('modifications pending'))
|
|
243 |
_('modifications pending')) |
|
245 | 244 |
return u'' |
246 | 245 |
|
247 | 246 |
# Table classes |
... | ... | |
332 | 331 |
confirm=confirms[i])) |
333 | 332 |
return context |
334 | 333 |
|
335 |
class ProjectApplicationMembersTable(UserTable):
|
|
334 |
class ProjectMembersTable(UserTable): |
|
336 | 335 |
name = tables.Column(accessor="person.last_name", verbose_name=_('Name')) |
337 | 336 |
status = tables.Column(accessor="state", verbose_name=_('Status')) |
338 | 337 |
project_action = RichLinkColumn(verbose_name=_('Action'), |
... | ... | |
342 | 341 |
|
343 | 342 |
def __init__(self, project, *args, **kwargs): |
344 | 343 |
self.project = project |
345 |
super(ProjectApplicationMembersTable, self).__init__(*args, **kwargs)
|
|
344 |
super(ProjectMembersTable, self).__init__(*args, **kwargs) |
|
346 | 345 |
if not self.user.owns_project(self.project): |
347 | 346 |
self.exclude = ('project_action', ) |
348 | 347 |
|
Also available in: Unified diff