mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-10-30 13:05:19 +00:00
adding the server side code to generate context menu
This commit is contained in:
1 parent
7c58bb4865
commit
30bb3fde5b
5 files changed
+118
-4
No files matched your search
@@ -792,7 +792,8 @@ public class Functions {
|
||||
*/
|
||||
public static String getIconFilePath(Action a) {
|
||||
String name = a.getIconFileName();
|
||||
if(name.startsWith("/"))
|
||||
if (name==null) return null;
|
||||
if (name.startsWith("/"))
|
||||
return name.substring(1);
|
||||
else
|
||||
return "images/24x24/"+name;
|
||||
|
||||
Reference in new issue
Block a user