Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Make use of the properly cached static resources.

  • Loading branch information...
commit 53ffd3bd4e78269a8c9c9a786ad0321d7542150d 1 parent ae8120d
Kohsuke Kawaguchi authored March 20, 2012
3  src/main/java/hudson/plugins/git/util/BuildData.java
... ...
@@ -1,5 +1,6 @@
1 1
 package hudson.plugins.git.util;
2 2
 
  3
+import hudson.Functions;
3 4
 import hudson.model.AbstractBuild;
4 5
 import hudson.model.Action;
5 6
 import hudson.model.Api;
@@ -61,7 +62,7 @@ public String getDisplayName() {
61 62
         return "Git Build Data";
62 63
     }
63 64
     public String getIconFileName() {
64  
-        return "/plugin/git/icons/git-32x32.png";
  65
+        return Functions.getResourcePath()+"/plugin/git/icons/git-32x32.png";
65 66
     }
66 67
     public String getUrlName() {
67 68
         return "git";
2  src/main/resources/hudson/plugins/git/util/BuildData/summary.jelly
... ...
@@ -1,7 +1,7 @@
1 1
 <j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler"
2 2
 	xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson"
3 3
 	xmlns:f="/lib/form" xmlns:i="jelly:fmt">
4  
-	<t:summary icon="/plugin/git/icons/git-48x48.png">
  4
+	<t:summary icon="${resURL}/plugin/git/icons/git-48x48.png">
5 5
 
6 6
  	<b>Revision</b>: ${it.lastBuiltRevision.sha1.name()}
7 7
         <j:if test="${it.scmName}"> from <b>SCM:</b> ${it.scmName}</j:if>

0 notes on commit 53ffd3b

Please sign in to comment.
Something went wrong with that request. Please try again.