summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/wicket/pages/ComparePage.html
blob: d7df717c11b3932eeb05e984de42021293b0891f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"  
      xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.3-strict.dtd"  
      xml:lang="en"  
      lang="en"> 

<body>
<wicket:extend>

	<div class="tabbable">
    	<ul class="nav nav-pills">
    		<li class="active"><a href="#refs" data-toggle="tab"><wicket:message key="gb.refs"></wicket:message></a></li>
    		<li><a href="#ids" data-toggle="tab"><wicket:message key="gb.manual"></wicket:message></a></li>
    	</ul>
    	<div class="tab-content">
    		<div class="tab-pane active" id="refs">
				<form wicket:id="compareRefsForm" class="form-inline">
					<select wicket:id="fromRef" class="span3" />
					<i class="icon-arrow-right"></i>
					<select wicket:id="toRef" class="span3" />
					<button class="btn" type="submit"><wicket:message key="gb.compare"></wicket:message></button>
				</form>
			</div>
    		<div class="tab-pane" id="ids">
				<form wicket:id="compareIdsForm" class="form-inline">
					<input wicket:id="fromId" type="text" class="span3" />
					<i class="icon-arrow-right"></i>
					<input wicket:id="toId" type="text" class="span3" />
					<button class="btn" type="submit"><wicket:message key="gb.compare"></wicket:message></button>
				</form>
			</div>
		</div>
	</div>

	<div wicket:id="comparison"></div>

	<wicket:fragment wicket:id="comparisonFragment">
	
		<div class="tabbable">
    		<ul class="nav nav-tabs">
    			<li><a href="#commits" data-toggle="tab"><wicket:message key="gb.commits"></wicket:message></a></li>
    			<li class="active"><a href="#diff" data-toggle="tab"><wicket:message key="gb.diff"></wicket:message></a></li>
    		</ul>
    		<div class="tab-content">
    			<div class="tab-pane" id="commits">
					<!-- commit list -->
					<div wicket:id="commitList">[commit list]</div>
    			</div>
	    		<div class="tab-pane active" id="diff">
<!-- 					<div class="page_nav2"> -->
<!-- 						<a wicket:id="patchLink"><wicket:message key="gb.patch"></wicket:message></a> -->
<!-- 					</div>	 -->
	    		
	    			<!-- changed paths -->
					<div>
						<!-- commit legend -->
						<div class="hidden-phone" style="text-align:right;" wicket:id="commitLegend"></div>
						<div class="header"><span wicket:id="diffStat"></span><span style="padding-left:5px;"><wicket:message key="gb.changedFiles">[changed files]</wicket:message></span></div>
					</div>
					<table class="pretty">
						<tr wicket:id="changedPath">
							<td class="changeType"><span wicket:id="changeType">[change type]</span></td>		
							<td class="path"><span wicket:id="pathName">[commit path]</span></td>			
							<td class="hidden-phone rightAlign">
								<span class="hidden-tablet" style="padding-right:20px;" wicket:id="diffStat"></span>
								<span class="link">
									<span class="hidden-tablet"><a wicket:id="patch"><wicket:message key="gb.patch"></wicket:message></a> | </span><a wicket:id="view"><wicket:message key="gb.view"></wicket:message></a> | <span class="hidden-tablet"><a wicket:id="raw"><wicket:message key="gb.raw"></wicket:message></a> | </span><a wicket:id="blame"><wicket:message key="gb.blame"></wicket:message></a> | <a wicket:id="history"><wicket:message key="gb.history"></wicket:message></a>
								</span>
							</td>
						</tr>
					</table>
	    	
					<!--  diff content -->
					<pre style="padding-top:10px;" wicket:id="diffText">[diff text]</pre>
    			</div>
    		</div>
    	</div>
	</wicket:fragment>

</wicket:extend>
</body>
</html>