summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/wicket/panels/RepositoryUrlPanel.html
blob: 2663f88ecb4b30c1fb1da2d163700d16ce02d242 (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
83
84
85
86
87
88
89
90
91
<!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"> 

<wicket:panel>

	<div wicket:id="repositoryUrlPanel"></div>
	<div wicket:id="applicationMenusPanel"></div>

	
	<wicket:fragment wicket:id="repositoryUrlFragment">
		<div class="btn-toolbar" style="margin: 0px;">
			<div class="btn-group repositoryUrlContainer">
				<img style="vertical-align: middle;padding: 0px 0px 1px 3px;" wicket:id="accessRestrictionIcon"></img>
				<span wicket:id="menu"></span>
   				<span class="repositoryUrl">
   					<span wicket:id="primaryUrl">[repository primary url]</span>
   					<span class="hidden-phone hidden-tablet" wicket:id="copyFunction"></span>
   				</span>
   				<span class="hidden-phone hidden-tablet repositoryUrlRightCap" wicket:id="primaryUrlPermission">[repository primary url permission]</span>
   			</div>
		</div>
	</wicket:fragment>
	
	<wicket:fragment wicket:id="applicationMenusFragment">
		<div class="btn-toolbar" style="margin: 4px 0px 0px 0px;">
			<div class="btn-group" wicket:id="appMenus">
   				<a class="btn btn-mini btn-appmenu" data-toggle="dropdown" href="#">   				
	    			<span wicket:id="applicationName"></span>
    				<span class="caret"></span>
   				</a>
   				<ul class="dropdown-menu applicationMenu">
   					<li>
   						<div class="applicationHeaderMenuItem">
   							<div style="float:right">
   								<img style="padding-right: 5px;vertical-align: middle;" wicket:id="applicationIcon"></img>
   							</div>
   							<span class="applicationTitle" wicket:id="applicationTitle"></span>
   						</div>
   					</li>
	   				<li><div class="applicationHeaderMenuItem"><span wicket:id="applicationDescription"></span></div></li>
   					<li><div class="applicationLegalMenuItem"><span wicket:id="applicationLegal"></span></div></li>
   					
   					<li class="divider" style="margin: 5px 1px 0px 1px;clear:both;" ></li>
   				
   					<li class="action" wicket:id="actionItems">
   						<span wicket:id="actionItem"></span>
   					</li>
   				</ul>
   			</div>
		</div>
	</wicket:fragment>
	
	<wicket:fragment wicket:id="urlProtocolMenuFragment">
		<a class="" data-toggle="dropdown" href="#">   				
    		<span class="repositoryUrlLeftCap" wicket:id="menuText">URLs</span>
	   		<span class="caret" style="vertical-align: middle;"></span>
   		</a>
   		<ul class="dropdown-menu urlMenu">
   			<li class="url" wicket:id="repoUrls"><span wicket:id="repoUrl"></span></li>
	   	</ul>
	</wicket:fragment>
	
	<wicket:fragment wicket:id="actionFragment">
		<span wicket:id="permission" style="margin: 0px 10px 0px 5px;"></span><span wicket:id="content"></span><span class="hidden-phone hidden-tablet" wicket:id="copyFunction"></span>
	</wicket:fragment>

    <!-- Plain JavaScript manual copy & paste -->
    <wicket:fragment wicket:id="jsPanel">
    	<span style="vertical-align:baseline;">
    		<img wicket:id="copyIcon" wicket:message="title:gb.copyToClipboard"></img>
    	</span>
    </wicket:fragment>
    
    <!-- flash-based button-press copy & paste -->
    <wicket:fragment wicket:id="clippyPanel">
   		<object wicket:message="title:gb.copyToClipboard" style="vertical-align:middle;"
   			wicket:id="clippy"
   			width="14" 
   			height="14"
   			bgcolor="#ffffff" 
       		quality="high"
       		wmode="transparent"
       		scale="noscale"
       		allowScriptAccess="always"></object>
	</wicket:fragment>
		
</wicket:panel>
</html>