diff --git a/src/main/webapp/projects/openfire/plugin-archive.jsp b/src/main/webapp/projects/openfire/plugin-archive.jsp
index 18483786..b19ee9ba 100644
--- a/src/main/webapp/projects/openfire/plugin-archive.jsp
+++ b/src/main/webapp/projects/openfire/plugin-archive.jsp
@@ -220,7 +220,12 @@
Built at |
Openfire Version |
- <% if (plugins.isEmpty()) { %>
+ <%
+ final List snapshots =
+ PluginManager.sortByVersionAndReleaseDate(
+ PluginManager.getSnapshots( pluginDir, pluginName ), 20
+ );
+ if (snapshots.isEmpty()) { %>
No snapshots. |
@@ -230,7 +235,7 @@
<% DateFormat formatter = DateFormat.getDateTimeInstance( DateFormat.DEFAULT, DateFormat.DEFAULT );
- for ( PluginManager.Metadata plugin : plugins )
+ for ( PluginManager.Metadata plugin : snapshots )
{
final String snapshotParam = plugin.snapshotQualifier == null ? "" : "?snapshot=" + URLEncoder.encode(plugin.snapshotQualifier, StandardCharsets.UTF_8.name());
try {