Skip to content

Instantly share code, notes, and snippets.

@krams915
Created December 8, 2012 06:00
Show Gist options
  • Select an option

  • Save krams915/4238864 to your computer and use it in GitHub Desktop.

Select an option

Save krams915/4238864 to your computer and use it in GitHub Desktop.
Spring Social Facebook profile.html
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:th="http://www.thymeleaf.org">
<head th:fragment="header">
<meta charset="utf-8" />
<link rel="stylesheet" href="../../../resources/css/style.css" th:href="@{/resources/css/style.css}" />
<title th:text="#{'profile.title.' + ${source}}">Title</title>
</head>
<body>
<div class="skin">
<div class="content">
<div th:include="include :: menu"></div>
<div th:include="include :: logo"></div>
<div class="profile">
<h3 th:text="#{'profile.h3.' + ${source}}">Your Social Media Profile</h3>
<div class="pic">
<img src="#" th:src="@{'http://graph.facebook.com/' + ${profileInfo.id}} + '/picture'" alt="profile image"/>
<span th:text="${profileInfo.name}">John Smith</span>
</div>
<div class="detail">
<dl>
<dt th:text="#{'profile.id.' + ${source}}">Social ID:</dt>
<dd th:text="${profileInfo.id}">12345678</dd>
<dt th:text="#{'profile.name.' + ${source}}">Social Name:</dt>
<dd th:text="${profileInfo.name}">John Smith</dd>
<dt th:text="#{'profile.loc.' + ${source}}">Social Area:</dt>
<dd th:if="${#strings.isEmpty(profileInfo.email)}" th:text="'no email listed'">[email protected]</dd>
<dt th:text="#{'profile.url.' + ${source}}">Profile Url:</dt>
<dd><a href="#" th:href="@{${profileLink}}" th:text="${profileLink}">http://profile-url</a></dd>
</dl>
</div>
<div th:include="include :: disconnect"></div>
</div>
</div>
<div th:include="include :: footer"></div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment