| | |
| | |
|
| | | if (repository.isPersonalRepository()) {
|
| | | UserModel user = GitBlit.self().getUserModel(repository.projectPath.substring(1));
|
| | | PersonIdent ident = new PersonIdent(user.getDisplayName(), user.emailAddress);
|
| | | PersonIdent ident = new PersonIdent(user.getDisplayName(), user.emailAddress == null ? user.getDisplayName() : user.emailAddress);
|
| | | item.add(new GravatarImage("anAvatar", ident, 20));
|
| | | if (pageRepository.equals(repository)) {
|
| | | // do not link to self
|
| | |
| | | if (user == null) {
|
| | | user = UserModel.ANONYMOUS;
|
| | | }
|
| | | if (user.canViewRepository(repository)) {
|
| | | if (user.canView(repository)) {
|
| | | if (pageRepository.equals(repository)) {
|
| | | // do not link to self
|
| | | item.add(new Label("aFork", StringUtils.stripDotGit(repo)));
|