0001-access-context-through-table-object-31092.patch
src/authentic2/manager/templates/authentic2/manager/table.html | ||
---|---|---|
20 | 20 | |
21 | 21 |
{% block table.tbody.row %} |
22 | 22 |
<tr |
23 |
{% if row_link %} |
|
23 |
{% if table.context.row_link %}
|
|
24 | 24 |
{% if popup_edit %} |
25 | 25 |
rel="popup" |
26 | 26 |
{% endif %} |
tests/test_manager.py | ||
---|---|---|
708 | 708 |
ou2 = OU.objects.get(name='ou2') |
709 | 709 |
assert set([e.text for e in ou_homepage.pyquery('td.name')]) == set(['OU1', 'Default organizational unit', 'ou2']) |
710 | 710 |
assert len(ou_homepage.pyquery('tr[data-pk="%s"] td.default span.true' % ou2.pk)) == 1 |
711 |
assert len(ou_homepage.pyquery('tr[data-url="%s/"] td.default span.true' % ou2.pk)) == 1 |
|
711 | 712 | |
712 | 713 |
# FIXME: table lines are not clickable as they do not contain an anchor |
713 | 714 |
# default ou cannot be deleted |
714 |
- |