This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 57
/
home.xhtml
48 lines (45 loc) · 1.93 KB
/
home.xhtml
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
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:s="http://jboss.org/schema/seam/taglib"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
template="../WEB-INF/template/template.xhtml">
<ui:define
name="page_title">#{msgs['jsf.Profile']}:#{msgs['jsf.Profile.User']}:#{profileHome.username}</ui:define>
<ui:define name="center_content">
<div class="g">
<div id="profile-overview" class="g__item w--1-4 w--1-2-m">
<!-- taken from dashboard/home.xhtml and modified -->
<div class="media l--push-bottom-half">
<div class="media__item--right bx--round">
<img
src="#{profileHome.userImageUrl}"
alt="#{profileHome.username}"/>
</div>
<div class="media__body">
<h1 id="profile-displayname"
class="l--push-all-0">#{profileHome.name}</h1>
<ul class="list--no-bullets txt--meta">
<li id="profile-username"><i class="i i--user list__icon"
title="Username"></i>#{profileHome.username}
</li>
<li id="profile-languages"><i class="i i--language list__icon"
title="Spoken languages"></i>#{profileHome.userLanguageTeams}
</li>
</ul>
</div>
</div>
</div>
<!-- user contribution matrix -->
<s:fragment rendered="#{identity.loggedIn}">
<div class="g__item w--3-4 w--1-2-m">
<div id="userMatrixRoot" class="bg--pop-highest l--pad-v-1"
data-base-url="#{request.contextPath}/rest/stats/user/#{profileHome.username}/"></div>
</div>
</s:fragment>
</div>
<script type="text/javascript"
src="#{request.contextPath}/frontend.bundle.min.js"></script>
</ui:define>
</ui:composition>