Scarab commit: svn commit: r10731 - trunk/src/webapp/WEB-INF/templates/viewIssue/ViewIssueTab5.vm

Hussayn Dabbous <[email protected]>
Newsgroups gmane.comp.java.scarab.cvs
Message-ID <[email protected]>
Author: dabbous
Date: 2009-05-25 07:00:39-0700
New Revision: 10731

Modified:
   trunk/src/webapp/WEB-INF/templates/viewIssue/ViewIssueTab5.vm

Log:
SCB2853: Handle history output for attachments and user attributes when they got deleted.

Modified: trunk/src/webapp/WEB-INF/templates/viewIssue/ViewIssueTab5.vm
Url: http://scarab.tigris.org/source/browse/scarab/trunk/src/webapp/WEB-INF/templates/viewIssue/ViewIssueTab5.vm?view=diff&pathrev=10731&r1=10730&r2=10731
==============================================================================
--- trunk/src/webapp/WEB-INF/templates/viewIssue/ViewIssueTab5.vm	(original)
+++ trunk/src/webapp/WEB-INF/templates/viewIssue/ViewIssueTab5.vm	2009-05-25 07:00:39-0700
@@ -22,13 +22,17 @@
               #if($currentIssue.isAttributeVisible($act.attribute, $user))
                 #set ($newValue = $act.getNewValue($l10n).trim())
                 #set ($oldValue = $act.getOldValue($l10n).trim())
-                <th>$act.getDisplayName($l10n)</th>
+                <th style="width:12em;">$act.getDisplayName($l10n)</th>
                 #if( $oldValue.length()>0 )
                   <td>$!scarabG.textToHTML($oldValue, $link, $scarabR.CurrentModule)</td>
                   <td style="vertical-align:middle;" ><img name="change to" src="$staticLink.setPath('/images/icon_rightarrow_long.jpg')"/></td>
-                  <td>$!scarabG.textToHTML($newValue, $link, $scarabR.CurrentModule)</td>
+                  #if ( $newValue.length() > 0 )
+                    <td>$!scarabG.textToHTML($newValue, $link, $scarabR.CurrentModule)</td>
+                  #else
+                    <td>[$l10n.Deleted]</td>
+                  #end
                 #else
-                  <td colspan="3" width="*" style="white-space:normal;">$!scarabG.textToHTML($newValue, $link, $scarabR.CurrentModule)</td>
+                  <td colspan="3">$!scarabG.textToHTML($newValue, $link, $scarabR.CurrentModule)</td>
                 #end
                 <td width="*"> &nbsp; </td>
               #else
@@ -40,9 +44,8 @@
           #set ($reason = $activitySet.getCommentForHistory($currentIssue))
           #if($reason.length()>0)
             <tr>
-              <th>$l10n.Comment</th>
-              <td colspan="3" width="*" style="white-space:normal;">$!scarabG.textToHTML($reason, $link, $scarabR.CurrentModule)</td>
-              <td width="*"> &nbsp; </td>
+              <th style="width:12em;">$l10n.Comment</th>
+              <td colspan="4" width="*" style="white-space:normal;">$!scarabG.textToHTML($reason, $link, $scarabR.CurrentModule)</td>
             </tr>
           #end
         </table>

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