Scarab commit: svn commit: r10917 - branches/release/0.22/src/webapp/WEB-INF/templates/viewIssue/ViewIssueTab4Dep.vm

Johannes Höchstädter <[email protected]>
Newsgroups gmane.comp.java.scarab.cvs
Message-ID <[email protected]>
Author: jhoech
Date: 2010-02-24 03:55:58-0800
New Revision: 10917

Modified:
   branches/release/0.22/src/webapp/WEB-INF/templates/viewIssue/ViewIssueTab4Dep.vm

Log:
FIX - Related issues will not be checked for their issue type any longer for state check in dependency tab. Cannot see purpose. 
  ADD - Some comments added.
  ENH - Code layout revised.

Modified: branches/release/0.22/src/webapp/WEB-INF/templates/viewIssue/ViewIssueTab4Dep.vm
Url: http://scarab.tigris.org/source/browse/scarab/branches/release/0.22/src/webapp/WEB-INF/templates/viewIssue/ViewIssueTab4Dep.vm?view=diff&pathrev=10917&r1=10916&r2=10917
==============================================================================
--- branches/release/0.22/src/webapp/WEB-INF/templates/viewIssue/ViewIssueTab4Dep.vm	(original)
+++ branches/release/0.22/src/webapp/WEB-INF/templates/viewIssue/ViewIssueTab4Dep.vm	2010-02-24 03:55:58-0800
@@ -70,23 +70,35 @@
 ## ===========================================
 #macro (addBackground $blockingStatus $status)
   #if ($status.equals(""))
-    
+    ## use default grey background
   #else
-    #if($status.equals($blockingStatus)) style="background:#FE9292"
-    #else style="background:#C0FE92"
+    #if($status.equals($blockingStatus)) 
+		style="background:#FE9292"
+		## light red
+    #else 
+		style="background:#C0FE92"
+		## light green
     #end
   #end
 #end
 
 ## ===========================================
-## macro relationTable
+## macro relationTable : Displays relationships of one type (blocking, duplicates, non-blocking) for an issue.
+##                       For the related issues the conditions of theses issues can be evaluated additionally. 
+## ===========================================
+## $thisIssue : Currently selected issue.
+## $indentLevel : Depth of recursion.
+## $entries : Related issues to $thisIssue according to one specific type of relationship.
+## $blockers : Related issues to $thisIssue according to one specific type of relationship and where any condition is matched.
+## $blockingStatus : Blocking state of relationship.
 ## ===========================================
-#macro (relationTable $thisIssue $indentLevel $entries $blockers $blockingStatus)
+#macro (relationTable $thisIssue $indentLevel $entries $blockers $blockingStatus)   
+      
       #set ($allBlockersDisplayed = true)
       #foreach ($depend in $entries)
 
          #set ($status="")      
-         #if ($depend.TypeId == 1 && $indentLevel==0)
+         #if ($indentLevel==0)
            #set ($isDependant=false)
            ##depend:$depend.UniqueId 
            #foreach ($bi in $blockers)

------------------------------------------------------
http://scarab.tigris.org/ds/viewMessage.do?dsForumId=3577&dsMessageId=2451487
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.