Index: __section_tree__.msn =================================================================== --- __section_tree__.msn (revision 521) +++ __section_tree__.msn (revision 522) @@ -35,6 +35,7 @@ my $sname = decode("utf-8", $sect->name()); if ( defined $width_limit && $offset + length($sname) > $width_limit ) { + $sname =~ s/<[^>]+>//sgi; $sname = substr($sname, 0, $width_limit - $offset); $sname .= ' ...'; } @@ -47,34 +48,18 @@ my $html_sect = 'status ? ' class="hiddensect"' : '').'>'.($section_access ? '' : '').$sname.($section_access ? '' : '') . ' '.($sect->status != 1 && $statname ? ' ('.$statname.')' : '').''; my $style = ($offset == 1) ? ($viewmode ? ' style="font-size:16px;font-weight:bold;"':' style="font-size:14px;"') : ' style="font-size:12px;"'; - $m->out(< - ${$line_ref} Переместить секцию на шаг вверх Переместить секцию на шаг вниз - - - - - - -
 $spacer$html_sect
- -EOT + $m->out( $m->scomp( '.table_row.msn', + sect => $sect, + root => $root, + style => $style, + spacer => $spacer, + viewmode => $viewmode, + html_sect => $html_sect, + line_ref => $line_ref, + section_access => $section_access, + ) + ); - if ($viewmode) { - my $fhref = '/contenido/?set_context=filter-'.$sect->id(); - my $new_doc_class = $sect->default_document_class; - $m->out(qq^\n^); - $m->out(qq^   ^); - $m->out(qq^фильтр^); - $m->out(qq^   доб.докум^) if $section_access == 2 and $new_doc_class; - $m->out(""); - } else { - $m->out(qq^\n^); - $m->out(qq^   ^); - $m->out(""); - } - - $m->out(''); } my $childs = $sect->{children} || []; @@ -109,3 +94,49 @@ my $line = 0; + +<%def .table_row.msn> +<%args> + + $sect => undef + $root => undef + $style => '' + $spacer => '' + $viewmode => undef + $html_sect => '' + $line_ref => undef + $section_access => undef + + +<%init> + + my ($fhref, $new_doc_class); + if ( $viewmode ) { + $fhref = '/contenido/?set_context=filter-'.$sect->id; + $new_doc_class = $sect->default_document_class; + } + + + + <% $$line_ref %> Переместить секцию на шаг вверх Переместить секцию на шаг вниз + + + + + + +
 <% $spacer %>><% $html_sect %>
+ +% if ( $viewmode ) { + +   фильтр\ +% if ( $section_access == 2 and $new_doc_class ) { +   доб.докум\ +% } + +% } else { + +% } + + \ No newline at end of file