Changeset 636

Show
Ignore:
Timestamp:
03/05/10 11:36:06 (2 years ago)
Author:
mgalloy
Message:

Adding message if there are not routines with complexity warnings.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/templates/warnings.tt

    r616 r636  
    9696                 
    9797        <dl> 
    98         [% FOREACH r IN complex_routines %][% SCOPE r %] 
    99           <dt><a href="[% url %][% local_url %]">[% location %][% basename %]</a>: <a href="[% url %][% local_url %]#[% name %]">[% name %]</a></dt> 
    100           <dd><div class="box [% n_lines_color %]"></div> [% n_lines %] lines, <div class="box [% complexity_color %]"></div> [% complexity %] complexity</dd>         
    101         [% END %][% END %] 
     98        [% IF n_complex_routines gt 0 %] 
     99          [% FOREACH r IN complex_routines %][% SCOPE r %] 
     100            <dt><a href="[% url %][% local_url %]">[% location %][% basename %]</a>: <a href="[% url %][% local_url %]#[% name %]">[% name %]</a></dt> 
     101            <dd><div class="box [% n_lines_color %]"></div> [% n_lines %] lines, <div class="box [% complexity_color %]"></div> [% complexity %] complexity</dd>         
     102          [% END %][% END %] 
     103        [% ELSE %]No routines with warnings[% END %] 
    102104        </dl>  
    103105        </div>