filecompareinfo.jsp

来自「web版的SVN客户端」· JSP 代码 · 共 171 行

JSP
171
字号
<%--
  - Copyright (c) 2004, 2005 Polarion Software, All rights reserved.
  - Email: community@polarion.org
  -
  - This program and the accompanying materials are made available under the
  - terms of the Apache License, Version 2.0 (the "License"). You may not use
  - this file except in compliance with the License. Copy of the License is
  - located in the file LICENSE.txt in the project distribution. You may also
  - obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
  -
  -
  - POLARION SOFTWARE MAKES NO REPRESENTATIONS OR WARRANTIES
  - ABOUT THE SUITABILITY OF THE SOFTWARE, EITHER EXPRESSED OR IMPLIED,
  - INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY,
  - FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. POLARION SOFTWARE
  - SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT
  - OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
  --%>

<jsp:useBean id="bean" scope="request" type="org.polarion.svnwebclient.web.controller.file.FileCompareBean"/>  
<table cellpadding="0" cellspacing="0" width="100%" border="0">
    <tr> 
		<td width="50%" class="message" style="padding-left:20px;" nowrap="true">    
<%
    if (bean.getStartRevisionInfo() != null) {	    
%>     	
    		 <table class="tabcontent" cellpadding="0" cellspacing="0" width="100%" border="0">
                <tr class="value" nowrap="true">
                    <td class="value" nowrap="true">
                        <b>Revision:</b>&nbsp;
                        <%=bean.getStartRevisionInfo().getDecoratedRevision()%>
<%
        if (bean.getStartRevisionInfo().isHeadRevision()) {
%>
                        &nbsp;[HEAD]
<%
        }                    
%>            
                    </td>    
                    <td class="value" style="padding-left:20px;" nowrap="true">
                        <b>Age:</b>&nbsp;
                        <%=bean.getStartRevisionInfo().getDate()%>
                    </td>        
                    <td class="value" style="padding-left:20px;padding-right:20px;" nowrap="true">
                        <b>Author:</b>&nbsp;
                        <%=bean.getStartRevisionInfo().getAuthor()%>
                    </td>
                    <td width="100%"/>
                </tr>
            </table>   
<%
	} else {
%>  
            <b>No data available</b>
<%
	}
%>
		</td>
		<td width="50%" class="message" style="padding-left:20px;" nowrap="true">     
<%
    if (bean.getEndRevisionInfo() != null) {
%>    
    		<table class="tabcontent" cellpadding="0" cellspacing="0" width="100%" border="0">
                <tr class="value" nowrap="true">
                    <td class="value" nowrap="true">
                        <b>Revision:</b>&nbsp;
                        <%=bean.getEndRevisionInfo().getDecoratedRevision()%>
<%
        if (bean.getEndRevisionInfo().isHeadRevision()) {
%>
                        &nbsp;[HEAD]
<%
        }                    
%>            
                    </td>    
                    <td class="value" style="padding-left:20px;" nowrap="true">
                        <b>Age:</b>&nbsp;
                        <%=bean.getEndRevisionInfo().getDate()%>
                    </td>        
                    <td class="value" style="padding-left:20px;padding-right:20px;" nowrap="true">
                        <b>Author:</b>&nbsp;
                        <%=bean.getEndRevisionInfo().getAuthor()%>
                    </td>
                    <td width="100%"/>
                </tr>
            </table>        
<%
	} else {
%>	
            <b>No data available</b>
<%
	}
%>
		</td>
	</tr>
	
	

	<tr>  	
<%
    if (bean.getStartRevisionInfo() != null) {	    
%>          
        
<%
		if (bean.getStartRevisionInfo().isMultiLineComment()) {
%>            
			<td width="50%" class="message" style="padding-left:25px;" id="left_cell"  onmouseover="xstooltip_show('left_tooltip', 'left_cell');" onmouseout="xstooltip_hide('left_tooltip');"> 
				<div id="left_tooltip" class="xstooltip">
					<%=bean.getStartRevisionInfo().getTooltip()%>	
                </div> 
				<b>Comment:</b>&nbsp;
				<img src="images/multiline_text.gif" style="position:absolute;margin-top:2px" align="middle" width="8" height="9">
				&nbsp;&nbsp;&nbsp;&nbsp;<%=bean.getStartRevisionInfo().getFirstLine()%>
			</td>

<%
		}	else {
%>            
			<td width="50%" class="message" style="padding-left:25px;"> 
				<b>Comment:</b>&nbsp;
				<%=bean.getStartRevisionInfo().getComment()%>
			</td>	
<%
		}
%>                        
<%
	} else {
%>
		<td width="50%" class="message" style="padding-left:25px;" nowrap="true"> 
        </td>    
<%
	}
%>

<%
    if (bean.getEndRevisionInfo() != null) {	    
%>          
        
<%
		if (bean.getEndRevisionInfo().isMultiLineComment()) {
%>            
			<td width="50%" class="message" style="padding-left:25px;" id="right_cell"  onmouseover="xstooltip_show('right_tooltip', 'right_cell');" onmouseout="xstooltip_hide('right_tooltip');"> 
			    <div id="right_tooltip" class="xstooltip">
					<%=bean.getEndRevisionInfo().getTooltip()%>	
                </div> 
				<b>Comment:</b>&nbsp;
				<img src="images/multiline_text.gif" style="position:absolute;margin-top:2px" align="middle" width="8" height="9">
				     &nbsp;&nbsp;&nbsp;&nbsp;<%=bean.getEndRevisionInfo().getFirstLine()%>
			</td>

<%
		}	else {
%>            
			<td width="50%" class="message" style="padding-left:25px;"> 
				<b>Comment:</b>&nbsp;
				<%=bean.getEndRevisionInfo().getComment()%>
			</td>	
<%
		}
%>                        
<%
	} else {
%>
		<td width="50%" class="message" style="padding-left:25px;" nowrap="true"> 
        </td>    
<%
	}
%>
	</tr>	
</table>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?