Modified:
trunk/soashable-web/src/main/java/com/soashable/web/servlet/SoashableBlogServlet.java
trunk/soashable-web/src/main/webapp/index.html
trunk/soashable-web/src/main/webapp/style/soashable.css
Log:
added live support link and made blog only display 1 entry
Modified: trunk/soashable-web/src/main/java/com/soashable/web/servlet/SoashableBlogServlet.java
==============================================================================
---
trunk/soashable-web/src/main/java/com/soashable/web/servlet/SoashableBlogServlet.java (original)
+++
trunk/soashable-web/src/main/java/com/soashable/web/servlet/SoashableBlogServlet.java
Mon Aug 4 12:40:29 2008
@@ -20,6 +20,8 @@
import com.sun.syndication.io.SyndFeedInput;
import com.sun.syndication.io.SyndFeedOutput;
import com.sun.syndication.io.XmlReader;
+import java.util.Arrays;
+import java.util.List;
/**
* @TODO Describe the purpose of the class here.
@@ -38,6 +40,10 @@
SyndFeedOutput output = new SyndFeedOutput();
SyndFeed feed = input.build(new XmlReader(ATOM_URL));
+
+ // crop it down to just 1 entry
+ List entries = Arrays.asList(new Object[] {
feed.getEntries().get(0) });
+ feed.setEntries( entries );
VelocityEngine ve = new VelocityEngine();
Context context = new VelocityContext();
Modified: trunk/soashable-web/src/main/webapp/index.html
==============================================================================
--- trunk/soashable-web/src/main/webapp/index.html (original)
+++ trunk/soashable-web/src/main/webapp/index.html Mon Aug 4 12:40:29 2008
@@ -37,6 +37,13 @@
</head>
<body>
+ <div id="support_link">
+ <p>Please contact support if you have issues</p>
+ <a
href="http://support.soashable.com/webchat/start.jsp?workgroup=sup...@workgroup.soashable.com" target="support">
+ <img
src="http://support.soashable.com/webchat/live?action=isAvailable&workgroup=sup...@workgroup.soashable.com" title="Status"/>
+ </a>
+ </div>
+
<div id="info_links">
Did you know we're <strong>open source</strong>?
<br/>
Modified: trunk/soashable-web/src/main/webapp/style/soashable.css
==============================================================================
--- trunk/soashable-web/src/main/webapp/style/soashable.css (original)
+++ trunk/soashable-web/src/main/webapp/style/soashable.css Mon Aug 4
12:40:29 2008
@@ -186,6 +186,15 @@
text-decoration: underline;
}
+#support_link {
+ font-family:verdana,arial,sans-serif;
+ font-size:13px;
+ line-height:18px;
+ font-weight: bold;
+ float: right;
+ text-align: right;
+}
+
#info_links {
position: fixed;
bottom: 15px;