left-side-bar.xhtml 17.1 KB
Newer Older
michael.simon's avatar
michael.simon committed
1
2
3
4
5
6
7
8
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
		"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
		xmlns:c="http://java.sun.com/jsp/jstl/core"
		xmlns:f="http://java.sun.com/jsf/core"
		xmlns:h="http://java.sun.com/jsf/html"
		xmlns:ui="http://java.sun.com/jsf/facelets"
9
10
		xmlns:p="http://primefaces.org/ui"
		xmlns:of="http://omnifaces.org/functions">
michael.simon's avatar
michael.simon committed
11
12
13
14
15
<head>
	<title>Left side bar</title>
</head>
<body>
	<ui:composition>
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
	  <ul class="navigation-l1">
		<h:panelGroup rendered="#{sessionManager.isLoggedIn()}">
   			<li class="flyout"><a href="#{request.contextPath}/index.xhtml">#{messages.index}</a>
				<div class="dropdown">
					<ul class="navigation-l2">
						<li class="has-submenu">
							<h:link outcome="#{request.contextPath}/user/index.xhtml" value="#{messages.my_data}" />
						</li>
						<li class="has-submenu">
							<h:link outcome="#{request.contextPath}/user/ssh-keys.xhtml" value="#{messages.my_ssh_keys}" />
						</li>
						<li class="has-submenu">
							<h:link outcome="#{request.contextPath}/user/twofa.xhtml" value="#{messages.my_twofa}" />
						</li>
					</ul>
				</div>   			
   			</li>
			<li class="flyout"><a href="#{request.contextPath}/index.xhtml">#{messages.registered_services}</a>
				<div class="dropdown">
					<ul class="navigation-l2">
						<ui:repeat var="registry" value="#{authorizationBean.userRegistryList}">
							<li class="has-submenu">
								<h:link	outcome="/service/index.xhtml" value="#{registry.service.name}">
									<f:param name="serviceId" value="#{registry.service.id}" />
								</h:link>
								<div class="submenu">
									<ul class="navigation-l3">
										<li class="">
											<h:link outcome="/service/registry-detail.xhtml" value="#{messages.registry_details}">
												<f:param name="regId" value="#{registry.id}" />
											</h:link>
										</li>
									</ul>
									<ul class="navigation-l3">
										<h:panelGroup rendered="#{registry.registryStatus == 'ACTIVE' and authorizationBean.isPasswordCapable(registry.service)}">
											<li class="">
												<h:link outcome="/service/set-password.xhtml" value="#{messages.set_password}">
													<f:param name="registryId" value="#{registry.id}" />
												</h:link>
											</li>
										</h:panelGroup>
									</ul>
									<ul class="navigation-l3">
										<h:panelGroup rendered="#{registry.registryStatus == 'ACTIVE' and authorizationBean.isSshPubKeyCapable(registry.service)}">
											<li class="">
												<h:link outcome="/service/set-sshkey.xhtml" value="#{messages.set_ssh_pub_key}">
													<f:param name="registryId" value="#{registry.id}" />
												</h:link>
											</li>
										</h:panelGroup>
									</ul>
								</div></li>
						</ui:repeat>
					</ul>
				</div>
			</li>
			<li class="flyout"><a href="#{request.contextPath}/index.xhtml">#{messages.services}</a>
   			</li>
michael.simon's avatar
michael.simon committed
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
   			<h:panelGroup rendered="#{authorizationBean.serviceApproverList.size() gt 0}">
				<li class="flyout"><a href="#{request.contextPath}/index.xhtml">#{messages.approver}</a>
					<div class="dropdown">
						<ul class="navigation-l2">
							<li class="has-submenu">
								<a>#{messages.new_approvals}</a>
								<ui:repeat var="service" value="#{authorizationBean.serviceApproverList}">
									<div class="submenu">
										<ul class="navigation-l3">
											<li class="">
												<h:link outcome="/service-approver/index.xhtml" value="#{service.name}">
													<f:param name="serviceId" value="#{service.id}" />
												</h:link>
											</li>
										</ul>
									</div>
								</ui:repeat>
							</li>
						</ul>
					</div>
				</li>
   			</h:panelGroup>
   			<h:panelGroup rendered="#{authorizationBean.serviceAdminList.size() gt 0}">
				<li class="flyout"><a href="#{request.contextPath}/index.xhtml">Admin</a>
					<div class="dropdown">
						<ul class="navigation-l2">
100
							<ui:repeat var="service" value="#{authorizationBean.serviceAdminList}">
michael.simon's avatar
michael.simon committed
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
								<li class="has-submenu">
								<a>#{service.name}</a>
									<div class="submenu">
										<ul class="navigation-l3">
											<li class="">
								    	        <h:link outcome="/service-admin/index.xhtml" value="#{messages.service_props}">
								    	        	<f:param name="serviceId" value="#{service.id}" />
								    	        </h:link>
											</li>
										</ul>
										<ul class="navigation-l3">
											<li class="">
								    	        <h:link outcome="/service-admin/list-service-users.xhtml" value="#{messages.service_users}">
								    	        	<f:param name="serviceId" value="#{service.id}" />
								    	        </h:link>
											</li>
										</ul>
										<ul class="navigation-l3">
											<li class="">
								    	        <h:link outcome="/service-admin/list-service-users-for-depro.xhtml" value="#{messages.service_users_depro}">
								    	        	<f:param name="serviceId" value="#{service.id}" />
								    	        </h:link>
											</li>
										</ul>
										<ul class="navigation-l3">
											<li class="">
								    	        <h:link outcome="/service-admin/service-stats.xhtml" value="#{messages.statistics}">
								    	        	<f:param name="serviceId" value="#{service.id}" />
								    	        </h:link>
											</li>
										</ul>
									</div>
								</li>
							</ui:repeat>
						</ul>
					</div>
				</li>
   			</h:panelGroup>
michael.simon's avatar
michael.simon committed
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162

   			<h:panelGroup rendered="#{authorizationBean.serviceGroupAdminList.size() gt 0}">
				<li class="flyout"><a href="#{request.contextPath}/index.xhtml">#{messages.group_admin}</a>
					<div class="dropdown">
						<ul class="navigation-l2">
							<li class="has-submenu">
								<a>#{messages.group_admin}</a>
									<ui:repeat var="service" value="#{authorizationBean.serviceGroupAdminList}">
									<div class="submenu">
										<ul class="navigation-l3">
											<li class="">
								    	        <h:link outcome="/service-group-admin/index.xhtml" value="#{service.name}">
								    	        	<f:param name="serviceId" value="#{service.id}" />
								    	        </h:link>
											</li>
										</ul>
									</div>
								</ui:repeat>
							</li>
						</ul>
					</div>
				</li>
   			</h:panelGroup>

163
164
165
166
			<li class="home"><a href="#{request.contextPath}/index.xhtml"><span>Startseite</span></a></li>
		</h:panelGroup>
	  </ul>
 <!--   
michael.simon's avatar
michael.simon committed
167
168
169
170
    <h:panelGroup rendered="#{! sessionManager.isLoggedIn()}">
      <div style="color: #e5e5e5;"><h:outputText value="#{messages.login}" /></div>    	
	</h:panelGroup>
      
171
    
michael.simon's avatar
michael.simon committed
172
173
174
      <div class="submenu">
	    <div class="submenu-title">#{messages.user}</div>
		<div class="submenu-content">
ls1947's avatar
ls1947 committed
175
176
177
178
179
180
181
          <div style="padding: 8px;">
	      	#{messages.login_status}:<br/> 
	      	<h:panelGroup rendered="#{empty authorizationBean.loggedInSince}">
	      	  <div>
		      	#{messages.logged_in_since_not_set} 
		      </div>
	      	</h:panelGroup>
ls1947's avatar
ls1947 committed
182
	      	<h:panelGroup rendered="#{not empty authorizationBean.loggedInSince and (authorizationBean.loggedInSince.toMinutes() ge 2)}">
ls1947's avatar
ls1947 committed
183
184
185
186
187
188
189
190
191
	      	  <div>
		      	#{messages.logged_in_since} #{authorizationBean.loggedInSince.toMinutes()} #{messages.minutes}
		      </div>
	      	</h:panelGroup>
	      	<h:panelGroup rendered="#{not empty authorizationBean.loggedInSince and (authorizationBean.loggedInSince.toMinutes() lt 2)}">
	      	  <div>
		      	#{messages.logged_in_since_recently}
		      </div>
	      	</h:panelGroup>
ls1947's avatar
ls1947 committed
192
	      	<h:panelGroup rendered="#{authorizationBean.isTwoFaElevated() and (authorizationBean.twoFaElevatedSince.toMinutes() ge 2)}">
ls1947's avatar
ls1947 committed
193
194
195
196
197
198
199
200
201
202
203
204
	      	  <div>
		      	#{messages.twofa_elevated_since} #{authorizationBean.twoFaElevatedSince.toMinutes()} #{messages.minutes}
		      </div>
	      	</h:panelGroup>
	      	<h:panelGroup rendered="#{authorizationBean.isTwoFaElevated() and (authorizationBean.twoFaElevatedSince.toMinutes() lt 2)}">
	      	  <div>
		      	#{messages.twofa_elevated_since_recently}
		      </div>
	      	</h:panelGroup>
	      	
		  </div>
		  <hr style="border: 1px solid white;"/>
michael.simon's avatar
michael.simon committed
205
206
207
		  <ul>
	        <li><span class="ui-icon ui-icon-home" style="display:inline-block; vertical-align: bottom;" /><a href="#{request.contextPath}/index.xhtml">#{messages.index}</a></li>
            <li><span class="ui-icon ui-icon-star" style="display:inline-block; vertical-align: bottom;" />
208
	    	  <h:link outcome="#{request.contextPath}/user/index.xhtml" value="#{messages.my_data}" />
michael.simon's avatar
michael.simon committed
209
			</li>
210
211
212
213
214
			<h:panelGroup rendered="#{authorizationBean.appConfig.getConfigValue('show_user_attribute_source').equalsIgnoreCase('true')}">
	            <li><span class="ui-icon ui-icon-suitcase" style="display:inline-block; vertical-align: bottom;" />
		    	  <h:link outcome="#{request.contextPath}/user/attribute-sources.xhtml" value="#{messages.my_attribute_sources}" />
				</li>
			</h:panelGroup>				
215
216
217
218
219
			<h:panelGroup rendered="#{authorizationBean.appConfig.getConfigValue('show_ssh_keys').equalsIgnoreCase('true')}">
	            <li><span class="ui-icon ui-icon-suitcase" style="display:inline-block; vertical-align: bottom;" />
		    	  <h:link outcome="#{request.contextPath}/user/ssh-keys.xhtml" value="#{messages.my_ssh_keys}" />
				</li>
			</h:panelGroup>				
ls1947's avatar
ls1947 committed
220
221
222
223
224
			<h:panelGroup rendered="#{authorizationBean.appConfig.getConfigValue('show_twofa').equalsIgnoreCase('true')}">
	            <li><span class="ui-icon ui-icon-suitcase" style="display:inline-block; vertical-align: bottom;" />
		    	  <h:link outcome="#{request.contextPath}/user/twofa.xhtml" value="#{messages.my_twofa}" />
				</li>
			</h:panelGroup>				
michael.simon's avatar
michael.simon committed
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
          </ul>
        </div>
      </div>
	
      <ui:repeat var="registry" value="#{authorizationBean.userRegistryList}">
       <div class="submenu">
        <div class="submenu-title">#{registry.service.name}</div>
        <div class="submenu-content">
		  <div>
		    <ul>
	          <li><span class="ui-icon ui-icon-script" style="display:inline-block; vertical-align: bottom;" />
	    	    <h:link outcome="/service/index.xhtml" value="#{messages.service_desc}">
    	        	<f:param name="serviceId" value="#{registry.service.id}" />
	    	    </h:link>
			  </li>
	          <li>
	              <span class="ui-icon ui-icon-link" style="display:inline-block; vertical-align: bottom;" />
    	          <h:link outcome="/service/registry-detail.xhtml" value="#{messages.registry_details}">
    	        	<f:param name="regId" value="#{registry.id}" />
    	          </h:link>
	          </li>
	          <h:panelGroup rendered="#{registry.registryStatus == 'ACTIVE' and authorizationBean.isPasswordCapable(registry.service)}">
	            <li>
	              <span class="ui-icon ui-icon-locked" style="display:inline-block; vertical-align: bottom;" />
    	          <h:link outcome="/service/set-password.xhtml" value="#{messages.set_password}">
    	        	<f:param name="registryId" value="#{registry.id}" />
    	          </h:link>
	            </li>
   	          </h:panelGroup>
254
255
256
257
258
259
260
261
	          <h:panelGroup rendered="#{registry.registryStatus == 'ACTIVE' and authorizationBean.isSshPubKeyCapable(registry.service)}">
	            <li>
	              <span class="ui-icon ui-icon-locked" style="display:inline-block; vertical-align: bottom;" />
    	          <h:link outcome="/service/set-sshkey.xhtml" value="#{messages.set_ssh_pub_key}">
    	        	<f:param name="registryId" value="#{registry.id}" />
    	          </h:link>
	            </li>
   	          </h:panelGroup>
michael.simon's avatar
michael.simon committed
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
            </ul>
          </div>
        </div>
       </div>
	  </ui:repeat>

      <ui:repeat var="service" value="#{authorizationBean.unregisteredServiceList}">
       <div class="submenu">
        <div class="submenu-title">#{service.name}</div>
        <div class="submenu-content">
		  <div>
		    <ul>
	          <li><span class="ui-icon ui-icon-script" style="display:inline-block; vertical-align: bottom;" />
	    	    <h:link outcome="/service/index.xhtml" value="#{messages.service_desc}">
	   	        	<f:param name="serviceId" value="#{service.id}" />
	    	    </h:link>
			  </li>
            </ul>
          </div>
        </div>
       </div>
	  </ui:repeat>

285
      <ui:repeat var="service" value="#{authorizationBean.serviceAdminList}">
michael.simon's avatar
michael.simon committed
286
       <div class="submenu">
287
        <div class="submenu-title">#{service.name} Admin</div>
michael.simon's avatar
michael.simon committed
288
289
290
291
292
        <div class="submenu-content">
		  <div>
		    <ul>
	          <li><span class="ui-icon ui-icon-carat-1-e" style="display:inline-block; vertical-align: bottom;" />
    	        <h:link outcome="/service-admin/index.xhtml" value="#{messages.service_props}">
293
    	        	<f:param name="serviceId" value="#{service.id}" />
michael.simon's avatar
michael.simon committed
294
295
296
297
    	        </h:link>
			  </li>
	          <li><span class="ui-icon ui-icon-carat-1-e" style="display:inline-block; vertical-align: bottom;" />
    	        <h:link outcome="/service-admin/list-service-users.xhtml" value="#{messages.service_users}">
298
    	        	<f:param name="serviceId" value="#{service.id}" />
299
300
301
302
    	        </h:link>
	          </li>
	          <li><span class="ui-icon ui-icon-carat-1-e" style="display:inline-block; vertical-align: bottom;" />
    	        <h:link outcome="/service-admin/list-service-users-for-depro.xhtml" value="#{messages.service_users_depro}">
303
    	        	<f:param name="serviceId" value="#{service.id}" />
michael.simon's avatar
michael.simon committed
304
305
306
307
    	        </h:link>
	          </li>
	          <li><span class="ui-icon ui-icon-signal" style="display:inline-block; vertical-align: bottom;" />
    	        <h:link outcome="/service-admin/service-stats.xhtml" value="#{messages.statistics}">
308
    	        	<f:param name="serviceId" value="#{service.id}" />
michael.simon's avatar
michael.simon committed
309
310
311
312
313
314
315
    	        </h:link>
	          </li>
            </ul>
          </div>
        </div>
       </div>
	  </ui:repeat>
316

317
      <ui:repeat var="service" value="#{authorizationBean.serviceHotlineList}">
michael.simon's avatar
michael.simon committed
318
       <div class="submenu">
319
        <div class="submenu-title">#{service.name} Hotline</div>
michael.simon's avatar
michael.simon committed
320
321
322
323
324
        <div class="submenu-content">
		  <div>
		    <ul>
	          <li><span class="ui-icon ui-icon-carat-1-e" style="display:inline-block; vertical-align: bottom;" />
    	        <h:link outcome="/service-admin/list-service-users.xhtml" value="#{messages.service_users}">
325
    	        	<f:param name="serviceId" value="#{service.id}" />
michael.simon's avatar
michael.simon committed
326
327
328
329
330
331
332
333
    	        </h:link>
	          </li>
            </ul>
          </div>
        </div>
       </div>
	  </ui:repeat>
	  	
334
      <ui:repeat var="service" value="#{authorizationBean.serviceApproverList}">
michael.simon's avatar
michael.simon committed
335
       <div class="submenu">
336
        <div class="submenu-title">#{service.name} Approver</div>
michael.simon's avatar
michael.simon committed
337
338
339
340
341
        <div class="submenu-content">
		  <div>
		    <ul>
	          <li><span class="ui-icon ui-icon-carat-1-e" style="display:inline-block; vertical-align: bottom;" />
    	        <h:link outcome="/service-approver/index.xhtml" value="#{messages.new_approvals}">
342
    	        	<f:param name="serviceId" value="#{service.id}" />
michael.simon's avatar
michael.simon committed
343
344
345
346
347
348
349
    	        </h:link>
			  </li>
            </ul>
          </div>
        </div>
       </div>
	  </ui:repeat>
350
	  	
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
      <ui:repeat var="service" value="#{authorizationBean.serviceSshPubKeyApproverList}">
       <div class="submenu">
        <div class="submenu-title">#{service.name} Key Approver</div>
        <div class="submenu-content">
		  <div>
		    <ul>
	          <li><span class="ui-icon ui-icon-carat-1-e" style="display:inline-block; vertical-align: bottom;" />
    	        <h:link outcome="/service-approver/list-sshkey-approvals.xhtml" value="#{messages.new_approvals}">
    	        	<f:param name="serviceId" value="#{service.id}" />
    	        </h:link>
			  </li>
            </ul>
          </div>
        </div>
       </div>
	  </ui:repeat>

368
      <ui:repeat var="service" value="#{authorizationBean.serviceGroupAdminList}">
michael.simon's avatar
michael.simon committed
369
       <div class="submenu">
370
        <div class="submenu-title">#{service.name} GroupAdmin</div>
michael.simon's avatar
michael.simon committed
371
372
373
374
375
        <div class="submenu-content">
		  <div>
		    <ul>
	          <li><span class="ui-icon ui-icon-carat-1-e" style="display:inline-block; vertical-align: bottom;" />
    	        <h:link outcome="/service-group-admin/index.xhtml" value="#{messages.groups}">
376
    	        	<f:param name="serviceId" value="#{service.id}" />
michael.simon's avatar
michael.simon committed
377
378
379
380
381
382
383
    	        </h:link>
			  </li>
            </ul>
          </div>
        </div>
       </div>
	  </ui:repeat>
384
	</h:panelGroup>
michael.simon's avatar
michael.simon committed
385
386
387
388
389
390
391
392
393
394
395
396
397
	
	<h:panelGroup>
		<h:form id="languageForm">
			<div class="panel" style="padding: 10px; text-align: center;">
				<p:selectOneMenu value="#{sessionManager.locale}" styleClass="language-label" panelStyleClass="language-list">
					<f:selectItem itemLabel="Browsersprache" itemValue="#{null}"/>
				    <f:selectItems value="#{localeSwitcherBean.localeList}" 
				            		var="loc" itemLabel="#{loc.displayLanguage}" itemValue="#{loc.language}"/>
				    <p:ajax oncomplete="window.location.replace(window.location.href);"/>
				</p:selectOneMenu>
			</div>
		</h:form>
	</h:panelGroup>
398
	   -->	
michael.simon's avatar
michael.simon committed
399
400
401
	</ui:composition>
</body>
</html>