minor polishing
[teamcity/dotNetPackagesSupport.git] / nuget-server / resources / tool / tools.jsp
1 <%--\r
2   ~ Copyright 2000-2011 JetBrains s.r.o.\r
3   ~\r
4   ~ Licensed under the Apache License, Version 2.0 (the "License");\r
5   ~ you may not use this file except in compliance with the License.\r
6   ~ You may obtain a copy of the License at\r
7   ~\r
8   ~ http://www.apache.org/licenses/LICENSE-2.0\r
9   ~\r
10   ~ Unless required by applicable law or agreed to in writing, software\r
11   ~ distributed under the License is distributed on an "AS IS" BASIS,\r
12   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
13   ~ See the License for the specific language governing permissions and\r
14   ~ limitations under the License.\r
15   --%>\r
16 <%@ include file="/include-internal.jsp" %>\r
17 <jsp:useBean id="tools" type="java.util.Collection<jetbrains.buildServer.nuget.server.toolRegistry.tab.LocalTool>" scope="request"/>\r
18 <jsp:useBean id="installerUrl" type="java.lang.String" scope="request"/>\r
19 \r
20 <c:set var="installedPluginsCount" value="${fn:length(tools)}"/>\r
21 <p>\r
22   TeamCity NuGet plugin requires to configure NuGet.Exe Command Line clients.\r
23   There are\r
24   <strong><c:out value="${installedPluginsCount}"/></strong>\r
25   plugin<bs:s val="${installedPluginsCount}"/> installed.\r
26 </p>\r
27 \r
28 <h2 class="noBorder">Installed NuGet Versions</h2>\r
29 <c:choose>\r
30   <c:when test="${installedPluginsCount eq 0}">\r
31     <div>There are no installed NuGet.exe</div>\r
32   </c:when>\r
33   <c:otherwise>\r
34       <table class="dark borderBottom" cellpadding="0" cellspacing="0" style="width: 30em;">\r
35         <thead>\r
36         <tr>\r
37           <th class="header" style="width: 66%">Version</th>\r
38           <th class="header"></th>\r
39         </tr>\r
40         </thead>\r
41         <tbody>\r
42           <c:forEach var="tool" items="${tools}">\r
43             <tr>\r
44               <td><c:out value="${tool.version}"/></td>\r
45               <td>\r
46                 <c:choose>\r
47                   <c:when test="${tool.state.installed}">\r
48                     <a href="#">Remove</a>\r
49                   </c:when>\r
50                   <c:when test="${tool.state.installing}">\r
51                     <bs:commentIcon text="Messages"/>\r
52                     Installing...\r
53                   </c:when>\r
54                 </c:choose>\r
55               </td>\r
56             </tr>\r
57           </c:forEach>\r
58         </tbody>\r
59     </table>\r
60   </c:otherwise>\r
61 </c:choose>\r
62 \r
63 <div class="addNew">\r
64   <a href="#" onclick="return BS.NuGet.InstallPopup.show();">\r
65     Install\r
66     <c:if test="${installedPluginsCount gt 0}">addintional versions of</c:if>\r
67     NuGet.exe Command Line\r
68     <forms:saving id="nugetInstallLinkSaving"/>\r
69   </a>\r
70 </div>\r
71 \r
72 <bs:modalDialog\r
73         formId="nugetInstallForm"\r
74         title="Install NuGet.exe Command Line"\r
75         action="foo.html"\r
76         closeCommand="BS.NuGet.InstallPopup.close();"\r
77         saveCommand="BS.NuGet.InstallPopup.save();">\r
78   <c:set var="actualInstallerUrl"><c:url value="${installerUrl}"/></c:set>\r
79   <bs:refreshable containerId="nugetInstallFormResresh" pageUrl="${actualInstallerUrl}">\r
80     <jsp:include page="installTool-loading.jsp"/>\r
81   </bs:refreshable>\r
82 \r
83   <div class="popupSaveButtonsBlock">\r
84     <a href="javascript://" onclick="BS.NuGet.InstallPopup.close();" class="cancel">Cancel</a>\r
85     <input class="submitButton" type="button" value="Install" id="agentPoolNameApplyButton" onclick="BS.NuGet.InstallPopup.save();"/>\r
86     <br clear="all"/>\r
87   </div>\r
88 </bs:modalDialog>