Skip to content

Commit

Permalink
OF-2892: admin console Plugins pages: fix column width
Browse files Browse the repository at this point in the history
  • Loading branch information
stokito committed Oct 18, 2024
1 parent 93442de commit c875de4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
12 changes: 6 additions & 6 deletions xmppserver/src/main/webapp/available-plugins.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@
<c:otherwise>
<c:forEach items="${notInstalledPlugins}" var="notInstalledPlugin">
<tr id="${notInstalledPlugin.hashCode}">
<td style="width: 1%" class="line-bottom-border">
<td class="line-bottom-border" style="width: 1%">
<c:choose>
<c:when test="${not empty notInstalledPlugin.icon}">
<img src="${fn:escapeXml(notInstalledPlugin.icon)}" width="16" height="16" alt="Plugin">
Expand All @@ -267,7 +267,7 @@
</c:otherwise>
</c:choose>
</td>
<td class="line-bottom-border">
<td class="line-bottom-border" style="width: 60%;">
<c:if test="${not empty notInstalledPlugin.name}">
<b><c:out value="${notInstalledPlugin.name}"/></b><br/>
</c:if>
Expand All @@ -281,7 +281,7 @@
</a>
</c:if>
</td>
<td style="width: 5%" nowrap class="line-bottom-border">
<td class="line-bottom-border" style="width: 10%; white-space: nowrap;">
<c:if test="${not empty notInstalledPlugin.version}">
<c:out value="${notInstalledPlugin.version}"/><br/>
</c:if>
Expand All @@ -295,15 +295,15 @@
</a>
</c:if>
</td>
<td style="width: 15%" nowrap class="line-bottom-border">
<td class="line-bottom-border" style="width: 10%;">
<c:if test="${not empty notInstalledPlugin.author}">
<c:out value="${notInstalledPlugin.author}"/>
</c:if>
</td>
<td style="width: 15%; text-align: right" nowrap class="line-bottom-border">
<td class="line-bottom-border" style="width: 5%; white-space: nowrap; text-align: right;">
<c:out value="${admin:byteFormat( notInstalledPlugin.fileSize )}"/>
</td>
<td style="width: 1%; text-align: center" class="line-bottom-border">
<td class="line-bottom-border" style="width: 1%; text-align: center;">
<a href="javascript:downloadPlugin('${fn:escapeXml(notInstalledPlugin.downloadURL)}', '${notInstalledPlugin.version}', '${notInstalledPlugin.hashCode}')">
<span id="${notInstalledPlugin.hashCode}-image">
<img src="images/add-16x16.gif" alt="<fmt:message key="plugin.available.download" />">
Expand Down
12 changes: 4 additions & 8 deletions xmppserver/src/main/webapp/plugin-admin.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ tr.lowerhalf > td:last-child {
</a>
</c:if>
</td>
<td style="width: 10%; white-space: nowrap; vertical-align: top">
<td style="width: 10%; white-space: nowrap;">
<c:if test="${not empty plugin.version}">
<span <c:if test="${not empty update}">id="${update.hashCode()}-version"</c:if>>
<c:out value="${plugin.version}"/>
Expand All @@ -457,19 +457,19 @@ tr.lowerhalf > td:last-child {
</a>
</c:if>
</td>
<td style="width: 15%; white-space: nowrap; vertical-align: top">
<td style="width: 10%;">
<c:if test="${not empty plugin.author}">
<c:out value="${plugin.author}"/>
</c:if>
</td>
<td style="width: 1%; text-align: center; vertical-align: top">
<td style="width: 1%; text-align: center;">
<c:if test="${pluginManager.isLoaded(plugin.canonicalName)}">
<a href="plugin-admin.jsp?csrf=${csrf}&reloadplugin=${admin:urlEncode( plugin.canonicalName )}"
title="<fmt:message key="plugin.admin.click_reload" />"
><img src="images/refresh-16x16.gif" alt="<fmt:message key="global.refresh" /> ${plugin.name}"></a>
</c:if>
</td>
<td style="width: 1%; text-align: center; vertical-align: top">
<td style="width: 1%; text-align: center;">
<a href="#" onclick="if (confirm('<fmt:message key="plugin.admin.confirm" />')) { location.replace('plugin-admin.jsp?csrf=${csrf}&deleteplugin=${admin:urlEncode( plugin.canonicalName )}'); } "
title="<fmt:message key="global.click_delete" />"
><img src="images/delete-16x16.gif" alt="<fmt:message key="global.delete" /> ${plugin.name}"></a>
Expand All @@ -489,11 +489,7 @@ tr.lowerhalf > td:last-child {
</c:if>
</span>
</td>
<td style="${overrideStyle}">&nbsp;</td>
</tr>

<tr><td></td></tr>

<!-- End of unsupported section -->
</c:if>

Expand Down

0 comments on commit c875de4

Please sign in to comment.