SF.net SVN: gar:[23955] csw/mgar/gar/v2/go/src/promote-packages/ report-template.html

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sun Aug 10 11:01:35 CEST 2014


Revision: 23955
          http://sourceforge.net/p/gar/code/23955
Author:   wahwah
Date:     2014-08-10 09:01:33 +0000 (Sun, 10 Aug 2014)
Log Message:
-----------
package-promotions: Correct a template bug

The documentation[1] says that you can do:
{{ if x }} ... {{ else if y }} ... {{ else }} ... {{ end }}

In practice, it doesn't work.

[1] http://godoc.org/text/template

Modified Paths:
--------------
    csw/mgar/gar/v2/go/src/promote-packages/report-template.html

Modified: csw/mgar/gar/v2/go/src/promote-packages/report-template.html
===================================================================
--- csw/mgar/gar/v2/go/src/promote-packages/report-template.html	2014-08-10 08:30:10 UTC (rev 23954)
+++ csw/mgar/gar/v2/go/src/promote-packages/report-template.html	2014-08-10 09:01:33 UTC (rev 23955)
@@ -14,7 +14,7 @@
     {{ range $ccg := .CrossCatGroups }}
     <li>
       <a href="#{{ $ccg.Key }}"
-        class="key {{ if not $ccg.Evaluated }}not-evaluated{{ else if $ccg.NeedsAttention }}needs-attention{{ else if $ccg.CanBeIntegratedNow }}can-be-integrated{{ end }}" colspan="2"
+        class="key {{ if not $ccg.Evaluated }}not-evaluated{{ else }}{{ if $ccg.NeedsAttention }}needs-attention{{ else }}{{ if $ccg.CanBeIntegratedNow }}can-be-integrated{{ end }}{{ end }}{{ end }}"
         >{{ $ccg.Key }}</a>
       {{ if $ccg.Bugs }}
       (blocking bugs!)
@@ -35,7 +35,8 @@
           </td>
         </tr>
       <tr>
-        <th class="key {{ if not $ccg.Evaluated }}not-evaluated{{ else if $ccg.NeedsAttention }}needs-attention{{ else if $ccg.CanBeIntegratedNow }}can-be-integrated{{ end }}"
+        <th
+          class="key {{ if not $ccg.Evaluated }}not-evaluated{{ else }}{{ if $ccg.NeedsAttention }}needs-attention{{ else }}{{ if $ccg.CanBeIntegratedNow }}can-be-integrated{{ end }}{{ end }}{{ end }}"
           colspan="2">
           {{ $ccg.Key }}
         </th>

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list