summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2012-06-15 16:01:45 -0400
committerJames Moger <james.moger@gitblit.com>2012-06-15 16:01:45 -0400
commitd9afa9a3e34762bd21b05ada7ea0c1f212ef9dd8 (patch)
tree7e5e8887ab94c97d86d57315f6d239ead4dc5964 /src
parent9adf6283b75a187b96796b892fd128e300f429a4 (diff)
downloadgitblit-d9afa9a3e34762bd21b05ada7ea0c1f212ef9dd8.tar.gz
gitblit-d9afa9a3e34762bd21b05ada7ea0c1f212ef9dd8.zip
Fixed bug in Gravatar Profile page
Diffstat (limited to 'src')
-rw-r--r--src/com/gitblit/wicket/pages/GravatarProfilePage.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/com/gitblit/wicket/pages/GravatarProfilePage.java b/src/com/gitblit/wicket/pages/GravatarProfilePage.java
index e8a96fd1..ee567d75 100644
--- a/src/com/gitblit/wicket/pages/GravatarProfilePage.java
+++ b/src/com/gitblit/wicket/pages/GravatarProfilePage.java
@@ -18,15 +18,13 @@ package com.gitblit.wicket.pages;
import java.io.IOException;
import java.text.MessageFormat;
-import org.apache.wicket.AttributeModifier;
import org.apache.wicket.PageParameters;
import org.apache.wicket.markup.html.basic.Label;
-import org.apache.wicket.markup.html.image.Image;
import org.apache.wicket.markup.html.link.ExternalLink;
-import org.apache.wicket.model.Model;
import com.gitblit.models.GravatarProfile;
import com.gitblit.utils.ActivityUtils;
+import com.gitblit.wicket.ExternalImage;
import com.gitblit.wicket.WicketUtils;
/**
@@ -59,8 +57,7 @@ public class GravatarProfilePage extends RootPage {
add(new Label("username", profile.preferredUsername));
add(new Label("location", profile.currentLocation));
add(new Label("aboutMe", profile.aboutMe));
- Image image = new Image("profileImage");
- image.add(new AttributeModifier("src", true, new Model<String>(profile.thumbnailUrl + "?s=256&d=identicon")));
+ ExternalImage image = new ExternalImage("profileImage", profile.thumbnailUrl + "?s=256&d=identicon");
add(image);
add(new ExternalLink("profileLink", profile.profileUrl));
}