| | |
| | | public static ContextImage getPullStatusImage(String wicketId, FederationPullStatus status) {
|
| | | String filename = null;
|
| | | switch (status) {
|
| | | case MIRRORED:
|
| | | case PULLED:
|
| | | filename = "bullet_green.png";
|
| | | break;
|
| | |
| | | filename = "bullet_white.png";
|
| | | break;
|
| | | case PENDING:
|
| | | case NOCHANGE: |
| | | default:
|
| | | filename = "bullet_black.png";
|
| | | }
|
| | |
| | | return new ContextRelativeResource(file);
|
| | | }
|
| | |
|
| | | public static String getHostURL(Request request) {
|
| | | public static String getGitblitURL(Request request) {
|
| | | HttpServletRequest req = ((WebRequest) request).getHttpServletRequest();
|
| | | return HttpUtils.getHostURL(req);
|
| | | return HttpUtils.getGitblitURL(req);
|
| | | }
|
| | |
|
| | | public static HeaderContributor syndicationDiscoveryLink(final String feedTitle,
|