Scarab commit: svn commit: r11321 - branches/scarab_11079_legacy_with_ant_maven1/src/webapp/WEB-INF/templates/viewIssue/ViewIssueTab1.vm

[email protected] Mon, 10 Dec 2012 03:43:23 -0800 (PST)
Newsgroups gmane.comp.java.scarab.cvs
Message-ID <[email protected]>
Author: dabbous
Date: 2012-12-10 03:43:23-0800
New Revision: 11321

Modified:
   branches/scarab_11079_legacy_with_ant_maven1/src/webapp/WEB-INF/templates/viewIssue/ViewIssueTab1.vm

Log:
Added 'sticky:' modifier. When set, forces display of an unset attribute in read-mode (used together with append: modifier)

Modified: branches/scarab_11079_legacy_with_ant_maven1/src/webapp/WEB-INF/templates/viewIssue/ViewIssueTab1.vm
Url: http://scarab.tigris.org/source/browse/scarab/branches/scarab_11079_legacy_with_ant_maven1/src/webapp/WEB-INF/templates/viewIssue/ViewIssueTab1.vm?view=diff&pathrev=11321&r1=11320&r2=11321
==============================================================================
--- branches/scarab_11079_legacy_with_ant_maven1/src/webapp/WEB-INF/templates/viewIssue/ViewIssueTab1.vm	(original)
+++ branches/scarab_11079_legacy_with_ant_maven1/src/webapp/WEB-INF/templates/viewIssue/ViewIssueTab1.vm	2012-12-10 03:43:23-0800
@@ -81,6 +81,14 @@
       #set ($currentRow = $currentRow + 1)
     #end
 
+    #set ($index = $displayValue.indexOf("sticky:") + 7)
+    #if ($index > 6)
+      #set ($displayValue = $displayValue.substring($index))
+      #set ($sticky = true)
+    #else
+      #set ($sticky = false)
+    #end
+
 
     #if ($isEditAttributes && $userCanEditGroup)
       
@@ -129,7 +137,7 @@
         </span>
       #end
 
-    #elseif ($attVal.isSet())
+    #elseif ($attVal.isSet() || $sticky)
       #if ($display)
         #if ($onSameLine)
           #set ($isHidden =  !( $currentIssue.isRequiredAttributeFor($att, $user) || $rma.Visible || $currentColumn==1 ) )
@@ -162,8 +170,8 @@
         <span style="display:inline;margin-left:0px; margin-right:10px;">
           #if ($att.isOptionAttribute())
             #if (!$attVal.AttributeOption)
-	                --
-	            #else
+	        
+	    #else
                 #if ($module.getRModuleOption($attVal.AttributeOption, $issueType).Active)
                   $!module.getRModuleOption($attVal.AttributeOption, $issueType).DisplayValue
                 #else

------------------------------------------------------
http://scarab.tigris.org/ds/viewMessage.do?dsForumId=3577&dsMessageId=3034508