% if isinstance(content, list): #no specific content: therefore index

{{texplain}}

% for knd, lnks in content:

{{knd}}
% for linktext,lnklvl,leaf,depth in lnks: % if not leaf: ({{depth}}){{linktext}}: % else: % lnk,lvl = lnklvl ({{depth}}){{linktext}} % try: % authorid = lnk.split('.')[0] ({{authorid}}) % except: pass %end {{lvl}} % end % end % end


% else: # specific content % if with_problems and not problem.answered:
% end % if with_problems and problem.answered and summary[0].counted > 2:

{{tsummary}} {{util.summary(*summary)}}

% end {{! content }} %qs = query_string %pe = course_labels(qs) %alinks = ['/'+request.lang+'/content?'+x for x in [start_qs(qs),next_qs(qs,-1),qs,next_qs(qs),end_qs(qs)]] %def qsnav(where,sign): %end

% bottonwidth = 'grid_10' %pe2='' %if pe: % bottonwidth = 'grid_6' %qsnav(0,'⯈') %qsnav(1,pe[1]+'⯇') %pe2=' '+pe[2] %end % if with_problems and problem.answered: % end % if with_problems and not problem.answered: %end %if pe: %qsnav(3,'⯈'+pe[3]) %qsnav(4,'⯇'+pe[4]) %end


% if with_problems and not problem.answered:
% end % if not problem.answered and request.user: % teacher = request.student.key.parent().parent().get() % if teacher.userkey == db.idof(request.user): #self assignment is possible
% fieldset = False % for ee in db.assignable(teacher,request.user): % e = ee.key % kind = e.kind() % if kind =='Class': % if fieldset: % end
% fieldset = True
{{util.translate(kind)}} {{e.string_id()}}
% elif kind == 'Student':
{{e.string_id()}}
% end % end % if fieldset:
% end
{{tdue}}


% end % end % end % include('chcko/main')