James Moger
2015-11-22 ed552ba47c02779c270ffd62841d6d1048dade70
commit | author | age
fdd82f 1 /*
JM 2  * Copyright 2014 gitblit.com.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 package com.gitblit.wicket.panels;
17
18 import org.apache.wicket.markup.html.basic.Label;
19
20 import com.gitblit.models.UserModel;
21
22 public class UserTitlePanel extends BasePanel {
23
24     private static final long serialVersionUID = 1L;
25
26     public UserTitlePanel(String wicketId, UserModel user, String title) {
27         super(wicketId);
b57b9e 28         add(new AvatarImage("userGravatar", user, "gravatar", 36, false));
fdd82f 29         add(new Label("userDisplayName", user.getDisplayName()));
JM 30         add(new Label("userTitle", title));
31     }
32 }