only show personality changes
authorAndrew Dunstan <andrew@dunslane.net>
Sat, 16 Oct 2010 16:54:35 +0000 (16:54 +0000)
committerAndrew Dunstan <andrew@dunslane.net>
Sat, 16 Oct 2010 16:54:35 +0000 (16:54 +0000)
templates/members.tt

index 68aafb4733a29d83b50e80af49d0022667f6d636..d55e7a56b1bbc4acbfaf2390d875e6a94d1a5269 100644 (file)
 [% END %]
     </td>
     <td>[% row.operating_system %]<br />[% row.os_version %]
 [% END %]
     </td>
     <td>[% row.operating_system %]<br />[% row.os_version %]
-       [% FOREACH personality IN row.personalities %]
+       [% prev_osver = row.osversion; 
+           FOREACH personality IN row.personalities;
+          IF personality.os_version != prev_osver
+         %]
         <br / > w.e.f. [% personality.effective_date %]: [% personality.os_version %]
         <br / > w.e.f. [% personality.effective_date %]: [% personality.os_version %]
-        [% END %]
+        [% prev_osver = personality.os_version; END; END %]
     </td>
     <td>[% row.compiler %]<br />[% row.compiler_version %]
     </td>
     <td>[% row.compiler %]<br />[% row.compiler_version %]
-       [% FOREACH personality IN row.personalities %]
+       [% prev_compver = row.compiler_version; 
+          FOREACH personality IN row.personalities;
+          IF personality.compiler_version != prev_compver
+        %]
         <br / > w.e.f. [% personality.effective_date %]: [% personality.compiler_version %]
         <br / > w.e.f. [% personality.effective_date %]: [% personality.compiler_version %]
-        [% END %]
+        [% prev_compver = personality.compiler_version; END; END %]
     </td>
     <td>[% row.arch %]</td>
     <td class="branch">[% IF ! row.branches ; '&nbsp;' ; END -%]
     </td>
     <td>[% row.arch %]</td>
     <td class="branch">[% IF ! row.branches ; '&nbsp;' ; END -%]