Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 246dc9f7

Von Cem Aydin vor mehr als 1 Jahr hinzugefügt

  • ID 246dc9f718150010bfcbaf5a2078c92d329fd9e0
  • Vorgänger b406e4ee

Design4.0: Fix Zeilenumbrüche in Reportgenerator Template reduzieren

Behebt Fehler #607

Unterschiede anzeigen:

templates/design40_webpages/report_generator/html_report.html
37 37
    </thead>
38 38
    <tbody>
39 39
    [% FOREACH row = ROWS %]
40
      [% IF row.IS_CONTROL %]
41
        [% IF row.IS_COLSPAN_DATA %]<tr><td colspan="[% row.NUM_COLUMNS %]">[% row.data %]</td></tr>[% END %]
42
      [% ELSE %]
40
      [%- IF row.IS_CONTROL -%]
41
        [%- IF row.IS_COLSPAN_DATA -%]<tr><td colspan="[% row.NUM_COLUMNS %]">[% row.data %]</td></tr>[% END %]
42
      [%- ELSE %]
43 43
        <tr>
44
        [% FOREACH col = row.COLUMNS %]
45
          <td class="[%- IF col.align -%][% col.align %][%- END -%][%- IF col.class -%] [% col.class %][%- END -%]"[% IF col.colspan && col.colspan>1 %] colspan="[% HTML.escape(col.colspan) %]"[% END %]>
46
            [% IF col.raw_data %]
44
        [%- FOREACH col = row.COLUMNS %]
45
          <td class="[%- IF col.align -%][% col.align %][%- END -%][%- IF col.class -%] [% col.class %][%- END -%]"[%- IF col.colspan && col.colspan>1 %] colspan="[% HTML.escape(col.colspan) %]"[%- END -%]>
46
            [%- IF col.raw_data -%]
47 47
              [% col.raw_data %]
48
            [% ELSE %]
49
              [% USE iterator(col.CELL_ROWS) %]
50
              [% FOREACH cell_row = iterator %]
51
                [% IF cell_row.data != '' %]
52
                  [% IF cell_row.link %]<a href="[% HTML.escape(cell_row.link) %]"[% IF cell_row.link_class %] class="[% cell_row.link_class %]"[% END %]>[% END %]
48
            [%- ELSE -%]
49
              [%- USE iterator(col.CELL_ROWS) -%]
50
              [%- FOREACH cell_row = iterator -%]
51
                [%- IF cell_row.data != '' -%]
52
                  [%- IF cell_row.link -%]<a href="[% HTML.escape(cell_row.link) %]"[% IF cell_row.link_class %] class="[% cell_row.link_class %]"[%- END -%]>[%- END -%]
53 53
                  [% cell_row.data %]
54
                  [% IF cell_row.link %]</a>[% END %]
55
                [% END %]
56
                [% UNLESS iterator.last %]<br>[% END %]
57
              [% END %]
58
            [% END %]
54
                  [%- IF cell_row.link -%]</a>[%- END -%]
55
                [%- END -%]
56
                [%- UNLESS iterator.last %]<br>[%- END -%]
57
              [%- END -%]
58
            [%- END -%]
59 59
          </td>
60
        [% END %]
60
        [%- END %]
61 61
        </tr>
62
      [% END %]
62
      [%- END -%]
63 63
    [% END %]
64 64
    </tbody>
65 65
  </table>

Auch abrufbar als: Unified diff