Commit d2fa59a9 authored by Derek DeMoro's avatar Derek DeMoro Committed by derek

Fixed minor issues in available plugin.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@4148 b35dd754-fafc-0310-a699-88a17e54d16e
parent 332c7d84
...@@ -1875,12 +1875,13 @@ plugin.available.no_plugin=No new plugins available. ...@@ -1875,12 +1875,13 @@ plugin.available.no_plugin=No new plugins available.
plugin.available.download=Download and Install plugin.available.download=Download and Install
plugin.available.open_source= Open Source Plugins plugin.available.open_source= Open Source Plugins
plugin.available.installation.success = plugin installed successfully. plugin.available.installation.success = plugin installed successfully.
plugin.available.commercial_plugins = Commerical Plugins plugin.available.commercial_plugins = Commercial Plugins
plugin.available.outdated = The list of plugins below requires a newer version of Wildfire. plugin.available.outdated = The list of plugins below requires a newer version of Wildfire.
plugin.available.outdated.update = Update Wildfire Now. plugin.available.outdated.update = Update Wildfire Now.
plugin.available.autoupdate = Available plugins list auto-updated on plugin.available.autoupdate = Available plugins list auto-updated on
plugin.available.autoupdate.on = Auto update is turned on. plugin.available.autoupdate.on = Auto update is turned on.
plugin.available.manual.update = Update list manually. plugin.available.autoupdate.off = Auto update is off.
plugin.available.manual.update = Update Now.
plugin.available.no.list = The list of available plugins has not yet been downloaded. plugin.available.no.list = The list of available plugins has not yet been downloaded.
plugin.available.list = Click here to download the list plugin.available.list = Click here to download the list
plugin.available.no.list.description = In order to install plugins, the list of available plugins must be download \ plugin.available.no.list.description = In order to install plugins, the list of available plugins must be download \
......
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
*/ */
package org.jivesoftware.wildfire.update; package org.jivesoftware.wildfire.update;
import org.jivesoftware.util.Log;
import org.jivesoftware.wildfire.XMPPServer; import org.jivesoftware.wildfire.XMPPServer;
/** /**
...@@ -35,13 +34,6 @@ public class PluginDownloadManager { ...@@ -35,13 +34,6 @@ public class PluginDownloadManager {
} }
} }
try {
updateManager.checkForPluginsUpdates(true);
}
catch (Exception e) {
Log.error(e);
}
return returnUpdate; return returnUpdate;
} }
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<%@ page import="org.jivesoftware.util.JiveGlobals"%> <%@ page import="org.jivesoftware.util.JiveGlobals"%>
<%@ page import="java.util.Date"%> <%@ page import="java.util.Date"%>
<%@ page import="java.text.SimpleDateFormat"%> <%@ page import="java.text.SimpleDateFormat"%>
<%@ page import="org.jivesoftware.util.WebManager"%> <%@ page import="org.jivesoftware.util.WebManager"%><%@ page import="org.jivesoftware.util.LocaleUtils"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %> <%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %> <%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %>
...@@ -85,6 +85,17 @@ ...@@ -85,6 +85,17 @@
padding: 5px; padding: 5px;
} }
.table-header-align-right {
text-align: right;
font-family: verdana, arial, helvetica, sans-serif;
font-size: 8pt;
font-weight: bold;
border-color: #bbb;
border-style: solid;
border-width: 1px 0px 1px 0px;
padding: 5px;
}
.row-header { .row-header {
text-align: left; text-align: left;
font-family: verdana, arial, helvetica, sans-serif; font-family: verdana, arial, helvetica, sans-serif;
...@@ -138,6 +149,10 @@ ...@@ -138,6 +149,10 @@
function downloadPlugin(url, id) { function downloadPlugin(url, id) {
document.getElementById(id + "-image").innerHTML = '<img src="images/working-16x16.gif" border="0"/>'; document.getElementById(id + "-image").innerHTML = '<img src="images/working-16x16.gif" border="0"/>';
document.getElementById(id).style.background = "#FFFFF7"; document.getElementById(id).style.background = "#FFFFF7";
setTimeout("startDownload('"+url+"','"+id+"')", 5000);
}
function startDownload(url, id){
downloader.installPlugin(downloadComplete, url, id); downloader.installPlugin(downloadComplete, url, id);
} }
...@@ -169,11 +184,11 @@ ...@@ -169,11 +184,11 @@
<p> <p>
<%if(plugins.size() == 0){ %> <%if(plugins.size() == 0){ %>
<div style="padding:10px;background:#FFEBB5;border:1px solid #DEB24A;width:600px;"> <div style="padding:10px;background:#FFEBB5;border:1px solid #DEB24A;width:75%;">
<fmt:message key="plugin.available.no.list" />&nbsp;<a href="available-plugins.jsp?autoupdate=true"><fmt:message key="plugin.available.list" /></a> <fmt:message key="plugin.available.no.list" />&nbsp;<a href="available-plugins.jsp?autoupdate=true"><fmt:message key="plugin.available.list" /></a>
</div> </div>
<br/> <br/>
<div style="width:800px;"> <div style="width:75%;">
<p> <p>
<fmt:message key="plugin.available.no.list.description" /> <fmt:message key="plugin.available.no.list.description" />
</p> </p>
...@@ -259,7 +274,7 @@ ...@@ -259,7 +274,7 @@
<td width="15%" nowrap valign="top" class="line-bottom-border"> <td width="15%" nowrap valign="top" class="line-bottom-border">
<%= pluginAuthor != null ? pluginAuthor : "" %> &nbsp; <%= pluginAuthor != null ? pluginAuthor : "" %> &nbsp;
</td> </td>
<td width="15%" nowrap valign="top" class="line-bottom-border"> <td width="15%" nowrap valign="top" class="line-bottom-border" align="right">
<%= fileSize %> <%= fileSize %>
</td> </td>
<td width="1%" align="center" valign="top" class="line-bottom-border"> <td width="1%" align="center" valign="top" class="line-bottom-border">
...@@ -279,12 +294,11 @@ ...@@ -279,12 +294,11 @@
<% } %> <% } %>
</td> </td>
</tr> </tr>
<tr id="<%= plugin.hashCode()%>-row" style="display:none;"> <tr id="<%= plugin.hashCode()%>-row" style="display:none;background: #E7FBDE;">
<td width="1%" class="line-bottom-border"> <td width="1%" class="line-bottom-border">
<img src="<%= plugin.getIcon()%>" width="16" height="16"/> <img src="<%= plugin.getIcon()%>" width="16" height="16"/>
</td> </td>
<td nowrap class="line-bottom-border"><%= plugin.getName()%> <fmt:message key="plugin.available.installation.success" /></td> <td colspan="6" nowrap class="line-bottom-border"><%= plugin.getName()%> <fmt:message key="plugin.available.installation.success" /></td>
<td colspan="5" class="line-bottom-border">&nbsp;</td>
<td class="line-bottom-border" align="center"> <td class="line-bottom-border" align="center">
<img src="images/success-16x16.gif" height="16" width="16"/> <img src="images/success-16x16.gif" height="16" width="16"/>
</td> </td>
...@@ -456,17 +470,21 @@ ...@@ -456,17 +470,21 @@
</div> </div>
<br/> <br/>
<% if(updateManager.isServiceEnabled()){ <%
String time = JiveGlobals.getProperty("update.lastCheck"); String time = JiveGlobals.getProperty("update.lastCheck");
Date date = new Date(Long.parseLong(time)); Date date = new Date(Long.parseLong(time));
SimpleDateFormat format = new SimpleDateFormat("MM/dd/yyyy"); time = JiveGlobals.formatDate(date);
time = format.format(date);
%> %>
<p> <p>
<fmt:message key="plugin.available.autoupdate" /> <%= time%>. <fmt:message key="plugin.available.autoupdate.on"/><a href="available-plugins.jsp?autoupdate=true"><fmt:message key="plugin.available.manual.update" /></a> <fmt:message key="plugin.available.autoupdate" /> <%= time%>.
<% if(!updateManager.isServiceEnabled()){%>
<fmt:message key="plugin.available.autoupdate.on" />
<% } else { %>
<fmt:message key="plugin.available.autoupdate.off" />
<% } %>
&nbsp;<a href="available-plugins.jsp?autoupdate=true"><fmt:message key="plugin.available.manual.update" /></a>
</p> </p>
<% } %> <% } %>
<%}%>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -427,7 +427,7 @@ else if ("false".equals(request.getParameter("deletesuccess"))) { %> ...@@ -427,7 +427,7 @@ else if ("false".equals(request.getParameter("deletesuccess"))) { %>
</tr> </tr>
<tbody> <tbody>
<tr><td colspan="8"><br/></td></tr>
<% <%
// If only the admin plugin is installed, show "none". // If only the admin plugin is installed, show "none".
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment