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
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