% depth_colors = "#FFABAB #E7FFAC #AFF8DB #FBE4FF #DCD3FF #AFCBFF #FFB5E8 #D5AAFF #FF9CEE".split() % if isinstance(chontent, list): #no specific content: therefore index
% for knd, lnks in chontent: % topicdiv = False
{{knd}}
% for linktext,lnklvl,leaf,depth_a in lnks: % td = chutil.topic_depth(depth_a) % if td == 0: % if topicdiv: % end
% topicdiv = True % end % if not leaf: {{linktext}} % else: % lnk,lvl = lnklvl {{lnk}} {{linktext}} {{lvl}} % try: % authorid = lnk.split('.')[0] {{authorid}} % except: pass % end % end % end % if topicdiv:
% end % end % else: # specific content %if 'cheader' in chelf.request.params:

{{! chelf.request.params['cheader'] }}

%end %cq = chelf.chuery if '&&' in chelf.chuery else choblem.chuery %pe = course_labels(cq) %alinks = ['/'+chelf.request.chlang+'/contents?'+x for x in [start_qs(cq),next_qs(cq,-1),cq,next_qs(cq),end_qs(cq)]] %def qsnav(where,sign): %end % if choblems and not choblem.chanswered:
% end % if choblems and choblem.chanswered and chummary[0].counted > 2:

{{tsummary}} {{chutil.summary(*chummary)}}

% end {{! chontent }} % if not pe and ('bare' in chelf.request.params): % bhidden='display:none;' % else: % bhidden='' % end
% bottonwidth = 'grid_10' %pe2='' %if pe: % bottonwidth = 'grid_2' %qsnav(0,'1 <<') %qsnav(1,pe[1]+' <') %pe2=' '+pe[2] %end % if choblems and choblem.chanswered: % end % if choblems and not choblem.chanswered: %end %if pe: %qsnav(3,'> '+pe[3]) %qsnav(4,'>> '+pe[4]) %end
% if choblems and not choblem.chanswered:
% end % # ASSIGN % if choblems: % if chelf.request.user: % if 'bare' not in chelf.request.params: % teacher = chelf.request.student.key.parent().parent().get() % if teacher.userkey == chdb.idof(chelf.request.user): # chelf assignment is possible
% fieldset = False % for ee in chdb.assignable(teacher,chelf.request.user): % e = ee.key % kind = e.kind() % if kind =='Class': % if fieldset: % end
% fieldset = True
{{chutil.translate(kind)}} {{e.string_id()}}
% elif kind == 'Role':
{{e.string_id()}}
% end % end % if fieldset:
% end
{{tdue}}


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