%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 %define;of(xxx) [of%s:::xxx] %end;

### %nn; %if;(e.slices="on") [*display by slices/slice width/overlap/total width]0 %elseif;(e.m="D") %if;(e.t="TV")[*compact descendants tree] %else;[*descendants tree] %end; %elseif;(e.m="A")[*ascendants tree] %elseif;(e.m="RLM")[*multi relations graph] %elseif;(e.m="DAG")[*surnames branch][:] %e.sn; %elseif;(e.em="R")[*path between] %person_index.e.first_name; %person_index.e.surname; %sp;[and] %person_index.x.first_name; %person_index.x.surname; %( TODO reorganise evar so that main person is always i= %) %elseif;(e.m="RL")[*path between] %person_index.1.first_name; %person_index.1.surname; %sp;[and] %person_index.2.first_name; %person_index.2.surname; %else;[*shortest path] %end; %if;(e.m="A" or e.m="D") %apply;of%with;%apply;capitalize(e.p)%end; %apply;capitalize(e.n) %( !! %a_of_b or %self unavailable on dag !! %) %( but the new management of [d'|e ] is ok! %) (%e.v; %if;(e.v=1)[generation/generations]0%else;[generation/generations]1%end; %if;(e.oi!=""), [partial]%elseif;(e.dag="on"), [dag]%end;) %(%apply;togend(e.v) also unavailable %) %end;

%if;(not cancel_links) %if;(e.m="A" or e.m="D")
%include;buttons_dag
%elseif;(e.m="RL" or e.m="RLM")
%include;buttons_rel
%end; %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%else;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" or e.dag="on" or e.em="R") %else; %end; %end; %dag_cell.item; %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;js