[% META level = 20 title = '- id = q.param("id"); IF id; n = get(id); ntitle = n.desig; END; DEFAULT ntitle = q.param("code"); lc = q.param("lc"); DEFAULT lc = lang; l = get({code=lc, is=C.language}); GET loc("Update [_1] in [_3]", locescape(ntitle), pred, l.desig); ' next_action = "translate_page_part" %] [% code_in = q.param('code'); IF code_in; n = set_one({code => code_in, is => 'website_text'}, { activate_new_arcs => 1}); id = n.id; ELSE; id = q.param('id'); n = get(id); END; node = n; pred = q.param('pred'); DEFAULT pred = 'has_html_content'; lc = q.param('lc'); DEFAULT lc = lang; l = get({code=lc, is=C.language}); lc2 = q.param('lc2'); UNLESS lc2; FOREACH alt IN req.lang.alternatives; NEXT IF alt == lc; lc2=alt; LAST; END; END; DEFAULT lc2=lc; l2 = get({code=lc2, is=C.language}); place = n.code.loc; ppath = place.replace('#.*',''); plink = ppath _ '.tt'; %]

[% PROCESS node_menu.tt %]

[ [% jump("W-page", "$home/rb/w/", id=id) +%] | [% jump("iFrame", "$home/rb/i/", id=id) +%] ]

[% id %]   [% jump(place, "$home$plink", run='remove_step') %]

[% previous = n.list(pred, {is_of_language=l2}).loc %] [% IF previous %]

Other languages: [% FOREACH lc2n IN req.lang.alternatives %] [% jump(lc2n, me, lc=lc, lc2=lc2n, id=id, pred=pred) +%] [%+ END %]

[% loc("Content in [_1]", l2.wu_jump) %]

[% n.list(pred, {is_of_language=l2}).loc %]
[% ELSE %]

No previous content

[% END %]

[% jump("Content title", "$home/rb/translation/node.tt", id=id, run='mark') %]: [%+ IF n.name %][% n.name.loc | html %] [% ELSE %]none[% END %]

Other languages: [% FOREACH lcn IN req.lang.alternatives %] [% jump(lcn, me, lc=lcn, lc2=lc2, id=id, pred=pred) +%] [%+ END %]

[% loc("Content in [_1]", l.wu_jump) %]

[% hidden('id', id) %] [% hidden('lc', lc) %]

[% step %]