提交 ebdd1948 编写于 作者: K kohsuke

applied a patch from Adam, with a little modification.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@10860 71c3de6d-444a-0410-be80-ed276b4c234a
上级 9d311b98
......@@ -483,6 +483,14 @@ public final class PluginWrapper {
return null;
}
}
/**
* returns the {@link UpdateCenter.Plugin} object, or null.
*/
public UpdateCenter.Plugin getInfo() {
UpdateCenter uc = Hudson.getInstance().getUpdateCenter();
return uc.getPlugin(getShortName());
}
/**
* Returns true if this plugin has update in the update center.
......
......@@ -35,8 +35,17 @@
</a>
</j:when>
<j:otherwise>
${p.longName}
</j:otherwise>
<j:choose>
<j:when test="${p.info!=null}">
<div>
<a href="${p.info.wiki}"><st:out value="${p.longName}"/></a>
</div>
</j:when>
<j:otherwise>
${p.longName}
</j:otherwise>
</j:choose>
</j:otherwise>
</j:choose>
</h4>
<div stlyle="padding-left: 1em">
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册