Code Repositories xandikos / 1d47639
Fix templates for bare principal. Jelmer Vernooń≥ 4 months ago
2 changed file(s) with 5 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
1111 <h2>Subcollections</h2>
1212
1313 <ul>
14 {% for name, resource in getattr(principal, 'subcollections', list)() %}
14 {% for name, resource in principal.subcollections() %}
1515 <li><a href="{{ urljoin(self_url+'/', name+'/') }}">{{ name }}</a></li>
1616 {% endfor %}
1717 </ul>
761761 return render_jinja_page(
762762 'principal.html', accepted_content_languages, principal=self,
763763 self_url=self_url)
764
765 def subcollections(self):
766 # TODO(jelmer): Return members
767 return []
764768
765769
766770 class PrincipalCollection(Collection, Principal):