Skip to content

Commit

Permalink
[Fixed JENKINS-16420] Fixed invalid link in Jenkins management section
Browse files Browse the repository at this point in the history
  • Loading branch information
vjuranek committed Jan 29, 2013
1 parent e7f7c0d commit ea5d29c
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions src/main/java/hudson/plugins/disk_usage/DiskUsagePlugin.java
Expand Up @@ -31,7 +31,7 @@ public class DiskUsagePlugin extends Plugin {
private static DiskUsage diskUsageSum;

@Extension
public static class DiskUsageManagementLink extends ManagementLink implements RootAction {
public static class DiskUsageManagementLink extends ManagementLink {

public final String[] COLUMNS = new String[]{"Project name", "Builds", "Workspace"};

Expand All @@ -44,14 +44,34 @@ public String getDisplayName() {
}

public String getUrlName() {
return "/plugin/disk-usage/";
return "plugin/disk-usage/";
}

@Override public String getDescription() {
return Messages.Description();
}
}


/**
* Unfortunately, I cannot figure out any other solution to satisfy JENKINS-12917 and at the same time JENKINS-16420
*/
@Extension
public static class DiskUsageRootLink implements RootAction {

public String getIconFileName() {
return "/plugin/disk-usage/icons/diskusage48.png";
}

public String getDisplayName() {
return Messages.DisplayName();
}

public String getUrlName() {
return "/plugin/disk-usage/";
}
}

/**
* @return DiskUsage for given project (shortcut for the view). Never null.
*/
Expand Down

0 comments on commit ea5d29c

Please sign in to comment.