[%# Frontend for finding and editing strings in the translation system. # # Authors: # import r26.1 livejournal -- original page # Jen Griffin -- TT conversion # # Copyright (c) 2008-2020 by Dreamwidth Studios, LLC. # # This program is free software; you may redistribute it and/or modify it under # the same terms as Perl itself. For a copy of the license, please reference # 'perldoc perlartistic' or 'perldoc perlgpl'. %] [%- page = 0; pages = []; BLOCK addlink; IF pages.size; page = page + 1; link = "editpage?lang=${lang}&items=" _ join( pages ) -%] Page [% page %]
[% pages.0.2 %]
[% pages.-1.2 %]
[%- pages = []; END; END; # BLOCK FOREACH r IN rows; pages.push( r ); IF pages.size >= 10; PROCESS addlink; END; END; PROCESS addlink; IF page == 0; "(No matches)"; END -%]