%nn; %if;(e.slices = "on")[*display by slices/slice width/overlap/total width]0%nn; %else;%apply;capitalize(head_title)%end;

%include;css %include;hed %message_to_wizard; %( TODO include;menubar %index, %foreach;family, do not work in this context %) %let;prefix_a;%prefix_base_password&p=%e.p;&n=%e.n;%nn; %if;(e.oc!="")&oc=%e.oc;%end;%in; %(%access does not work %)
%include;home

# %if;(e.slices="on") [*display by slices/slice width/overlap/total width]0 %else; %if;(e.m="D")[*descendants tree]%if;(e.t="TV") [compact] ou réduit ?%( TODO %)%end; %elseif;(e.m="A")[*ascendants tree] %else;[*relation/relations]0 ([shortest path])%end; %if;(e.oi!="") [partial]%end; %if;(e.dag="on") + [dag]%end; %end;

%if;(e.t="A" or e.t="C")

## %if;(e.t = "A")[*male line/female line]0%nn; %elseif;(e.t = "C")[*male line/female line]1%nn; %end;

%end; %if;not cancel_links;
%include;buttons_dag

%end; %if;(e.m="A" or e.m="D") %if;(e.slices = "on")

%hidden; %foreach;env_binding; %if;(env.key != "slices") %end; %end;

[*don't group the common branches together]
[*display by slices/slice width/overlap/total width]1
[*display by slices/slice width/overlap/total width]2
[*display by slices/slice width/overlap/total width]3 (%dag.min_wid;-%dag.max_wid;)

%end; %end; %( TODO how to write ind name on navigation link? %dag_cell.index; seems empty?! %) %if;(e.slices!="on") %if;(link_next!="" and not cancel_links) %include;buttons_rel %end; %if;(e.notab = "on" or e.pos2 != "") %let;dpos;%if;(e.dpos != "")%e.dpos;%else;78%end;%in; %let;pos1;%if;(e.pos1 != "")%e.pos1;%else;0%end;%in; %let;pos2;%if;(e.pos2 != "")%e.pos2;%else;%dpos;%end;%in; %let;overlap;%if;(e.overlap != "")%e.overlap;%else;10%end;%in; %if;(pos1 != 0 or pos2 < dag.ncol)
%if;(pos1 = 0) %nn; %else; << %end;%nl %if;(pos2 >= dag.ncol) %nn; %else; >> %end;%nl;
%end;

        %foreach;dag_line;
          %foreach;dag_line_pre;
            %foreach;dag_cell_pre;
              %dag_cell_pre;%nn;
            %end;%nl;
          %end;
        %end;

%else;

%foreach;dag_line;
%foreach;dag_cell; 1) colspan="%dag_cell.colspan;"%end; style="line-height:%if;(dag_cell.item!="")1%nn; %elseif;dag_cell.is_bar;1%nn; %elseif;dag_cell.is_nothing;0%end;;"%nn; %if;(e.im="") valign="bottom"%end; align="%dag_cell.align;"> %if;dag_cell.is_nothing; %nn; %elseif;dag_cell.is_bar; %if;(dag_cell.bar_link != "" and not cancel_links and e.em!="R") %( added em!=R here condition because first button_rel is static and does the same %) │%nn; %else;│%end; %elseif;(dag_cell.text != "")%dag_cell.text; %elseif;(dag_cell.item != "") %if;(line_nbr!=0 and dag_cell.index!="-1") %if;(e.m="RLM") %else; %end; %end; %dag_cell.item; %if;(line_nbr!=0 and dag_cell.index!="-1") %end; %else; %( TODO : trouver une condition pour un hr stylisé pour les conjoints %) %if;dag_cell.is_hr_left; %nn; %elseif;dag_cell.is_hr_right; %nn; %else; %nn; %end; %end; %end;
%end;

%end; %end; %base_trailer; %include;copyr
%include;js