Scarab commit: svn commit: r10130 - trunk/src/webapp/WEB-INF/templates/macros/MITListMacro.vm

[email protected]
Newsgroups gmane.comp.java.scarab.cvs
Message-ID <[email protected]>
Author: dabbous
Date: 2006-06-01 03:13:08-0700
New Revision: 10130

Modified:
   trunk/src/webapp/WEB-INF/templates/macros/MITListMacro.vm

Log:
updated columns-rows switch for the query matrix
according to SCB1710



optimized the output

Modified: trunk/src/webapp/WEB-INF/templates/macros/MITListMacro.vm
Url: http://scarab.tigris.org/source/browse/scarab/trunk/src/webapp/WEB-INF/templates/macros/MITListMacro.vm?view=diff&rev=10130&p1=trunk/src/webapp/WEB-INF/templates/macros/MITListMacro.vm&p2=trunk/src/webapp/WEB-INF/templates/macros/MITListMacro.vm&r1=10129&r2=10130
==============================================================================
--- trunk/src/webapp/WEB-INF/templates/macros/MITListMacro.vm	(original)
+++ trunk/src/webapp/WEB-INF/templates/macros/MITListMacro.vm	2006-06-01 03:13:08-0700
@@ -69,59 +69,47 @@
 <table class="" width="100%" border="1" cellspacing="2" cellpadding="3" >
   <tr>
     <th style="text-align:left"></th>
-    <th nowrap="nowrap" style="text-align:left">$l10n.AllForAttribute
+    <th nowrap="nowrap" style="text-align:right">
+
       #if ($isMoreThanOne)
       <input type="checkbox" name="allit" value="true" onclick="uncheck(document.issuetypelist.rmitid)"
              #checked($checked) />
       #end
-    </th>
-    #foreach ($rmit in $currentRmits)
-      <th nowrap="nowrap" style="text-align:left">
-      #set ($mitItem = $scarabR.convertToMITListItem($rmit) )
-      <a href="$link.setPage("Search.vm").addPathInfo("rmitid", $rmit.QueryKey).addPathInfo("eventSubmit_do$event", "foo").setAction("DefineXModuleList")">$rmit.DisplayName</a>
-      #if ($isMoreThanOne)
-      <input type="checkbox" name="rmitid" value="$rmit.QueryKey" 
-          onclick="allit.checked=false" #checked($checked) />
-      #end
-      </th>
-    #end
-    ##<th>$l10n.Description</th>
-  </tr>
+        
+      $l10n.AllForAttribute
 
- #set ($checked = false)
- #indexedRows($rowIndex)
- #set ($rowIndex = $rowIndex + 1)
- <td style="text-align:left">&Sigma;</td>
- <td>
       #set ($itemCount = $module.getIssueCount($user))
       #if ($itemCount == 0)
-      -
+      
       #else
       <a href="$link.setPage("IssueList.vm").addPathInfo("eventSubmit_doGetissues","foo").setAction("Search").toString()">$itemCount</a>
-      #end
- </td>
+      #end      
+    
+    </th>
     #foreach ($rmit in $currentRmits)
-    <td>
+      <th nowrap="nowrap" style="text-align:right">
+      #if ($isMoreThanOne)
+      <input type="checkbox" name="rmitid" value="$rmit.QueryKey" 
+          onclick="allit.checked=false" #checked($checked) />
+      #end
+      <a href="$link.setPage("Search.vm").addPathInfo("rmitid", $rmit.QueryKey).addPathInfo("eventSubmit_do$event", "foo").setAction("DefineXModuleList")">$rmit.DisplayName</a>
       #set ($mitItem = $scarabR.convertToMITListItem($rmit) )
       #set ($itemCount = $mitItem.getIssueCount($user))
-      #if ($itemCount == 0)
-      -
-      #else
+      #if ($itemCount > 0)
       <a href="$link.setPage("IssueList.vm").addPathInfo("eventSubmit_doGetissues", "foo").addPathInfo("issueType", $mitItem.getIssueTypeId()).setAction("Search").toString()">$itemCount</a>
       #end
-    </td>
+      </th>
     #end
- </tr>
- 
- 
- 
+    ##<th>$l10n.Description</th>
+  </tr>
+
  
  #set ($checked = !$isMoreThanOne)
  #foreach ($attrOption in $currentAttributeOptions)
   #indexedRows($rowIndex)
   #set ($rowIndex = $rowIndex + 1)
   <td>$attrOption.name</td>
-    <td>
+    <td style="text-align:right">
       #set ($itemCount = $module.getIssueCount($user, $attrOption))
       #if ($itemCount == 0)
       -
@@ -131,7 +119,7 @@
       #end
     </td>
     #foreach ($rmit in $currentRmits)
-    <td>
+    <td style="text-align:right">
       #set ($mitItem = $scarabR.convertToMITListItem($rmit) )
       #set ($itemCount = $mitItem.getIssueCount($user, $attrOption))
       #if ($itemCount == 0)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.