Fragment managementLinks;\r
if (showAdmin) {\r
// user is admin\r
- managementLinks = new Fragment("managementPanel", "adminLinks", this);\r
+ managementLinks = new Fragment("managementPanel", "adminLinks", RepositoriesPanel.this);\r
managementLinks.add(new Link<Void>("clearCache") {\r
\r
private static final long serialVersionUID = 1L;\r
add(managementLinks);\r
} else if (showManagement && user != null && user.canCreate()) {\r
// user can create personal repositories\r
- managementLinks = new Fragment("managementPanel", "personalLinks", this);\r
+ managementLinks = new Fragment("managementPanel", "personalLinks", RepositoriesPanel.this);\r
managementLinks.add(new BookmarkablePageLink<Void>("newRepository", app().getNewRepositoryPage()));\r
add(managementLinks);\r
} else {\r
if (entry instanceof GroupRepositoryModel) {\r
GroupRepositoryModel groupRow = (GroupRepositoryModel) entry;\r
currGroupName = entry.name;\r
- Fragment row = new Fragment("rowContent", "groupRepositoryRow", this);\r
+ Fragment row = new Fragment("rowContent", "groupRepositoryRow", RepositoriesPanel.this);\r
item.add(row);\r
\r
String name = groupRow.name;\r
counter = 0;\r
return;\r
}\r
- Fragment row = new Fragment("rowContent", "repositoryRow", this);\r
+ Fragment row = new Fragment("rowContent", "repositoryRow", RepositoriesPanel.this);\r
item.add(row);\r
\r
// show colored repository type icon\r
Fragment iconFragment;\r
if (entry.isMirror) {\r
- iconFragment = new Fragment("repoIcon", "mirrorIconFragment", this);\r
+ iconFragment = new Fragment("repoIcon", "mirrorIconFragment", RepositoriesPanel.this);\r
} else if (entry.isFork()) {\r
- iconFragment = new Fragment("repoIcon", "forkIconFragment", this);\r
+ iconFragment = new Fragment("repoIcon", "forkIconFragment", RepositoriesPanel.this);\r
} else if (entry.isBare) {\r
- iconFragment = new Fragment("repoIcon", "repoIconFragment", this);\r
+ iconFragment = new Fragment("repoIcon", "repoIconFragment", RepositoriesPanel.this);\r
} else {\r
- iconFragment = new Fragment("repoIcon", "cloneIconFragment", this);\r
+ iconFragment = new Fragment("repoIcon", "cloneIconFragment", RepositoriesPanel.this);\r
}\r
if (showSwatch) {\r
WicketUtils.setCssStyle(iconFragment, "color:" + StringUtils.getColor(entry.toString()));\r
if (dp instanceof SortableDataProvider<?,?>) {\r
// add sortable header\r
SortableDataProvider<?,?> sdp = (SortableDataProvider<?,?>) dp;\r
- Fragment fragment = new Fragment("headerContent", "flatRepositoryHeader", this);\r
+ Fragment fragment = new Fragment("headerContent", "flatRepositoryHeader", RepositoriesPanel.this);\r
fragment.add(newSort("orderByRepository", SortBy.repository, sdp, dataView));\r
fragment.add(newSort("orderByDescription", SortBy.description, sdp, dataView));\r
fragment.add(newSort("orderByOwner", SortBy.owner, sdp, dataView));\r
add(fragment);\r
} else {\r
// not sortable\r
- Fragment fragment = new Fragment("headerContent", "groupRepositoryHeader", this);\r
+ Fragment fragment = new Fragment("headerContent", "groupRepositoryHeader", RepositoriesPanel.this);\r
add(fragment);\r
}\r
}\r