]> source.dussan.org Git - gitblit.git/commitdiff
Fixed bug in Gravatar Profile page
authorJames Moger <james.moger@gitblit.com>
Fri, 15 Jun 2012 20:01:45 +0000 (16:01 -0400)
committerJames Moger <james.moger@gitblit.com>
Fri, 15 Jun 2012 20:01:45 +0000 (16:01 -0400)
src/com/gitblit/wicket/pages/GravatarProfilePage.java

index e8a96fd1ee5b2105805b7b8d7ec3123ea5777ab8..ee567d756706572d32d7b69f1eedb2a496b5625f 100644 (file)
@@ -18,15 +18,13 @@ package com.gitblit.wicket.pages;
 import java.io.IOException;\r
 import java.text.MessageFormat;\r
 \r
-import org.apache.wicket.AttributeModifier;\r
 import org.apache.wicket.PageParameters;\r
 import org.apache.wicket.markup.html.basic.Label;\r
-import org.apache.wicket.markup.html.image.Image;\r
 import org.apache.wicket.markup.html.link.ExternalLink;\r
-import org.apache.wicket.model.Model;\r
 \r
 import com.gitblit.models.GravatarProfile;\r
 import com.gitblit.utils.ActivityUtils;\r
+import com.gitblit.wicket.ExternalImage;\r
 import com.gitblit.wicket.WicketUtils;\r
 \r
 /**\r
@@ -59,8 +57,7 @@ public class GravatarProfilePage extends RootPage {
                add(new Label("username", profile.preferredUsername));\r
                add(new Label("location", profile.currentLocation));\r
                add(new Label("aboutMe", profile.aboutMe));\r
-               Image image = new Image("profileImage");\r
-               image.add(new AttributeModifier("src", true, new Model<String>(profile.thumbnailUrl + "?s=256&d=identicon")));\r
+               ExternalImage image = new ExternalImage("profileImage", profile.thumbnailUrl + "?s=256&d=identicon");\r
                add(image);\r
                add(new ExternalLink("profileLink", profile.profileUrl));\r
        }\r