From 8fe9beb56f11f7aa8c172368e482200a0ffdb050 Mon Sep 17 00:00:00 2001 From: Massimiliano Assante Date: Thu, 9 May 2013 17:18:50 +0000 Subject: [PATCH] 2.14 git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/social-profile@74819 82a268e6-3cf1-43bd-a215-b396298e98cf --- pom.xml | 12 ++++++++++++ .../user/socialprofile/client/ui/DisplayProfile.java | 6 +++--- .../socialprofile/client/ui/DisplayProfile.ui.xml | 4 ++-- src/main/webapp/SocialProfile.css | 5 +---- 4 files changed, 18 insertions(+), 9 deletions(-) diff --git a/pom.xml b/pom.xml index c0b4ff1..bc92161 100644 --- a/pom.xml +++ b/pom.xml @@ -99,6 +99,18 @@ 1.0.0-SNAPSHOT provided + + org.slf4j + slf4j-log4j12 + 1.6.4 + runtime + + + org.slf4j + slf4j-api + 1.6.4 + runtime + junit junit diff --git a/src/main/java/org/gcube/portlets/user/socialprofile/client/ui/DisplayProfile.java b/src/main/java/org/gcube/portlets/user/socialprofile/client/ui/DisplayProfile.java index 94a603d..b8f360d 100644 --- a/src/main/java/org/gcube/portlets/user/socialprofile/client/ui/DisplayProfile.java +++ b/src/main/java/org/gcube/portlets/user/socialprofile/client/ui/DisplayProfile.java @@ -47,16 +47,16 @@ public class DisplayProfile extends Composite { public void onSuccess(UserContext result) { myUserInfo = result.getUserInfo(); avatarImage.getElement().getParentElement().setAttribute("href", myUserInfo.getAccountURL()); - avatarImage.setSize("120px", "120px"); + avatarImage.setSize("100px", "100px"); avatarImage.setUrl(myUserInfo.getAvatarId()); userFullName.setText(myUserInfo.getFullName()); headline.setText(result.getHeadline()); - userFullName.setText(result.getInstitution()); + institution.setText(result.getInstitution()); } @Override public void onFailure(Throwable caught) { Window.alert("Failure: " + caught.getMessage()); - avatarImage.setSize("120px", "120px"); + avatarImage.setSize("100px", "100px"); avatarImage.setUrl(avatar_default); } }); diff --git a/src/main/java/org/gcube/portlets/user/socialprofile/client/ui/DisplayProfile.ui.xml b/src/main/java/org/gcube/portlets/user/socialprofile/client/ui/DisplayProfile.ui.xml index 6257041..1d3c1db 100644 --- a/src/main/java/org/gcube/portlets/user/socialprofile/client/ui/DisplayProfile.ui.xml +++ b/src/main/java/org/gcube/portlets/user/socialprofile/client/ui/DisplayProfile.ui.xml @@ -4,10 +4,10 @@ - diff --git a/src/main/webapp/SocialProfile.css b/src/main/webapp/SocialProfile.css index fee2536..cdc22aa 100644 --- a/src/main/webapp/SocialProfile.css +++ b/src/main/webapp/SocialProfile.css @@ -18,21 +18,18 @@ } .full-name { - padding-top: 5px; font-family: Helvetica, Arial, sans-serif; - font-size: 24px; + font-size: 22px; font-weight: bold; } .headline { - padding-top: 5px; font-family: Helvetica, Arial, sans-serif; font-size: 16px; color: #444444; } .institution { - padding-top: 5px; font-family: Helvetica, Arial, sans-serif; font-size: 12px; color: #444444;
+ + url="" ui:field="avatarImage" width="100" height="100" />