Scarab commit: svn commit: r10296 - branches/release/b21/src/webapp/WEB-INF/templates/screens/IssueList.vm

[email protected]
Newsgroups gmane.comp.java.scarab.cvs
Message-ID <[email protected]>
Author: jorgeuriarte
Date: 2006-09-16 16:44:31-0700
New Revision: 10296

Modified:
   branches/release/b21/src/webapp/WEB-INF/templates/screens/IssueList.vm

Log:
When there are no columns in the search results, at least the default-text of the issue will be displayed for every row.

Modified: branches/release/b21/src/webapp/WEB-INF/templates/screens/IssueList.vm
Url: http://scarab.tigris.org/source/browse/scarab/branches/release/b21/src/webapp/WEB-INF/templates/screens/IssueList.vm?view=diff&rev=10296&p1=branches/release/b21/src/webapp/WEB-INF/templates/screens/IssueList.vm&p2=branches/release/b21/src/webapp/WEB-INF/templates/screens/IssueList.vm&r1=10295&r2=10296
==============================================================================
--- branches/release/b21/src/webapp/WEB-INF/templates/screens/IssueList.vm	(original)
+++ branches/release/b21/src/webapp/WEB-INF/templates/screens/IssueList.vm	2006-09-16 16:44:31-0700
@@ -136,7 +136,11 @@
      #end
   </th>
   <!-- Attributes selected to be displayed -->
-  #foreach ($pref in $scarabR.RModuleUserAttributes)	
+  #set ($rmoduleUserAttributes = $scarabR.RModuleUserAttributes)
+  #if (!$rmoduleUserAttributes || $rmoduleUserAttributes.size() == 0)
+    <th>&nbsp;</th>
+  #end
+  #foreach ($pref in $rmoduleUserAttributes)	
     #set ($value = "----")
     #if ($pref.isInternal())
       #set ($value = $pref.getName($l10n))
@@ -191,6 +195,9 @@
   <td>$scarabR.getIssue($record.UniqueId).RModuleIssueType.DisplayName</td> 
   #end
   <td><a href="$link">$record.UniqueId</a></td>
+  #if (!$record.AttributeValuesAsCSV)
+    <td>$scarabR.getIssue($record.UniqueId).DefaultText</td>
+  #end
   #foreach ($value in $record.AttributeValuesAsCSV)
     <td>
     #if ($value.length() == 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.