We're trying to add a new tab on the top of teamcity's main page next to the Projects/My Changes/Agents/Build Queue area.
我们正在尝试在Projects / My Changes / Agents / Build Queue区域旁边的teamcity主页面顶部添加一个新选项卡。
Is there any way to do this with the current API?
有没有办法用当前的API做到这一点?
1 个解决方案
#1
0
This is not a part of OpenAPI. But you can try the following Javascript code:
这不是OpenAPI的一部分。但您可以尝试以下Javascript代码:
topNavPane.addTab("customTab", {
caption: "Tab title",
url: "<c:url value="/your_controller.html"/>"
});
You'll have to wright implementation of your_controller, obviously. In your JSP view, you'll probably want to use page.tag, which is common base for TeamCity pages.
显然,你必须谨慎实施your_controller。在JSP视图中,您可能希望使用page.tag,这是TeamCity页面的通用基础。
#1
0
This is not a part of OpenAPI. But you can try the following Javascript code:
这不是OpenAPI的一部分。但您可以尝试以下Javascript代码:
topNavPane.addTab("customTab", {
caption: "Tab title",
url: "<c:url value="/your_controller.html"/>"
});
You'll have to wright implementation of your_controller, obviously. In your JSP view, you'll probably want to use page.tag, which is common base for TeamCity pages.
显然,你必须谨慎实施your_controller。在JSP视图中,您可能希望使用page.tag,这是TeamCity页面的通用基础。