<h2 style='color: #999999; margin: -19px 0 35px 0; font-weight: normal; font-size: 18px; font-family: Helvetica, Arial, sans-serif;'>
Updates for ${dateHeader}
</h2>



<#if (statusEnabled)>
<h3 style='color: #666666; margin-bottom: 10px; font-weight: normal; font-size: 20px; font-family: Helvetica, Arial, sans-sarif;'>
Your Status
</h3>

<#if (currentStatus?exists)>
<p style="font-size: 14px; margin-bottom: 5px; color: #666666; font-family: Helvetica, Arial, sans-serif; line-height: 20px;">
Last status update: <span style="color:#333333">"${currentStatus}"</span>
</p>
<p style="font-size: 14px; margin-bottom: 5px; color: #666666; font-family: Helvetica, Arial, sans-serif;">
<a href="${EmailNotificationHelper.generateTrackableURL(emailTemplateName, statusUpdateURL)}">Update your status</a>
</p>
<#else>
<p style="font-size: 14px; margin-bottom: 5px; color: #666666; font-family: Helvetica, Arial, sans-serif;">
You haven't set a status update. <a href="${EmailNotificationHelper.generateTrackableURL(emailTemplateName, statusUpdateURL)}"><span>Log in and set your status</a>.
</p>
</#if>
<br><br>
</#if>

<#if (digestActivityBeans.size() > 0)>
<h3 style='color: #666666; margin-bottom: 10px; font-weight: normal; font-size: 20px; font-family: Helvetica, Arial, sans-sarif;'>
Latest Activity
</h3>

<h4 style='color: #666666; margin-bottom: 10px; font-weight: normal; font-size: 14px; font-family: Helvetica, Arial, sans-serif'>
Activity from the people, places, and content you are following
</h4>

<table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tbody>
<#list digestActivityBeans as digestActivity>

<#if digestActivity.activityContainerViewBean?? && digestActivity.activityContainerViewBean.jiveObject??>
<tr>
    <td valign="top" style='color: #666666; font-size: 14px; line-height: 20px; font-family: Helvetica, Arial, sans-serif;'>
<#if (digestActivity.activityContainerViewBean.jiveObject.objectType == statics["com.jivesoftware.eae.constants.ActivityConstants"].SOCIAL_NEWS)>
Social News:
<#elseif (digestActivity.activityContainerViewBean.jiveObject.objectType == statics["com.jivesoftware.eae.constants.ActivityConstants"].LATEST_LIKES)>
Latest Likes:
<#elseif (digestActivity.activityContainerViewBean.jiveObject.objectType == statics["com.jivesoftware.eae.constants.ActivityConstants"].EAE_ACCLAIM)>
Latest Acclaim:
<#else>
<img src="${jiveURL}/${digestActivity.activityContainerViewBean.jiveObject.getJiveObjectIcon(false, 0)!""}" border="0" valign="middle" alt="" height="12" width="12" style="margin: 0px 4px 0px 0px;" />
<a href="${EmailNotificationHelper.generateTrackableURL(emailTemplateName, jiveURL + digestActivity.activityContainerViewBean.jiveObject.jiveObjectURL!"")}" style='color: #3778C7; text-decoration: none;'><span style='color: #3778C7;'>${digestActivity.activityContainerViewBean.jiveObject.subject!""}</span></a>
</#if>

							<#assign numberOfUsers=digestActivity.uniqueUsers?size>
							<#assign listOfUsers>
								<#list digestActivity.uniqueUsers as user>
                                    <#if (user_index > 0)>, </#if><#if (user_index == 5)><#break/></#if>
									<#if (user.visible)>
										<a href="${EmailNotificationHelper.generateTrackableURL(emailTemplateName, jiveURL + "/people/" + user.username)}" style='color: #3778C7; text-decoration: none;'>
											<span style='color: #3778C7;'>${user.displayName}</span>
										</a>
									<#else>
										<span style='color: #3778C7;'>${user.displayName}</span>
									</#if>								</#list>
							</#assign>

							<#if (numberOfUsers > 5)>   
							   new activity by ${listOfUsers} and more.
							<#else>
							   new activity by ${listOfUsers}
							</#if>


</#if>
</#list>

    </tbody>
</table>

<br><br>

 </#if>

<h3 style='color: #666666; margin-bottom: 10px; font-weight: normal; font-size: 20px; font-family: Helvetica, Arial, sans-sarif;'>
Your Content
</h3>

<h4 style='color: #666666; margin-bottom: 10px; font-weight: normal; font-size: 14px; font-family: Helvetica, Arial, sans-serif'>
Recent stats for content you've created or contributed to
</h4>

<#if (yourContentHtml?exists && yourContentHtml.hasNext())>

<table border="0" cellpadding="0" cellspacing="0" width="100%">
	<tbody>
<#assign num = 0 />
<#list yourContentHtml as content>

<#if ( (content.getObjectType() == JiveConstants.THREAD) || (content.commentDelegator??) ) >
    <tr>
        <td valign="top" style='color: #666666; font-size: 14px; line-height: 20px; font-family: Helvetica, Arial, sans-serif;'>
            <img src="${jiveURL}/${SkinUtils.getJiveObjectIcon(content, false, 0)}" border="0" valign="middle" alt="" height="12" width="12" style="margin: 0px 4px 0px 0px;" />
            <#if (content.getObjectType() == JiveConstants.THREAD)>
                <#if ((content.viewCount!0) == 1) && (content.messageCount == 2) >
                    <a href="${EmailNotificationHelper.generateTrackableURL(emailTemplateName, JiveResourceResolver.getJiveObjectURL(content, true))}" style='color: #3778C7; text-decoration: none;'><span style='color: #3778C7;'>${content.subject}</span></a> was viewed <strong>1 time</strong> and replied to by <strong>1 person</strong>
                <#elseif ((content.viewCount!0) != 1) && (content.messageCount == 2) >
                    <a href="${EmailNotificationHelper.generateTrackableURL(emailTemplateName, JiveResourceResolver.getJiveObjectURL(content, true))}" style='color: #3778C7; text-decoration: none;'><span style='color: #3778C7;'>${content.subject}</span></a> was viewed <strong>${content.viewCount!0} times</strong> and replied to by <strong>1 person</strong>
                <#elseif ((content.viewCount!0) != 1) && (content.messageCount != 2) >
                    <a href="${EmailNotificationHelper.generateTrackableURL(emailTemplateName, JiveResourceResolver.getJiveObjectURL(content, true))}" style='color: #3778C7; text-decoration: none;'><span style='color: #3778C7;'>${content.subject}</span></a> was viewed <strong>${content.viewCount!0} times</strong> and replied to by <strong>${content.messageCount-1} people</strong>
                <#elseif ((content.viewCount!0) == 1) && (content.messageCount != 2) >
                    <a href="${EmailNotificationHelper.generateTrackableURL(emailTemplateName, JiveResourceResolver.getJiveObjectURL(content, true))}" style='color: #3778C7; text-decoration: none;'><span style='color: #3778C7;'>${content.subject}</span></a> was viewed <strong>1 time</strong> and replied to by <strong>${content.messageCount-1} people</strong>
                </#if>
            <#else>
                <#if ((content.viewCount!0) == 1) && (content.commentDelegator.commentCount == 1) >
                    <a href="${EmailNotificationHelper.generateTrackableURL(emailTemplateName, JiveResourceResolver.getJiveObjectURL(content, true))}" style='color: #3778C7; text-decoration: none;'><span style='color: #3778C7;'>${content.subject}</span></a> was viewed <strong>1 time</strong> and commented on by <strong>1 person</strong>
                <#elseif ((content.viewCount!0) != 1) && (content.commentDelegator.commentCount == 1) >
                    <a href="${EmailNotificationHelper.generateTrackableURL(emailTemplateName, JiveResourceResolver.getJiveObjectURL(content, true))}" style='color: #3778C7; text-decoration: none;'><span style='color: #3778C7;'>${content.subject}</span></a> was viewed <strong>${content.viewCount!0} times</strong> and commented on by <strong>1 person</strong>
                <#elseif ((content.viewCount!0) != 1) && (content.commentDelegator.commentCount != 1) >
                    <a href="${EmailNotificationHelper.generateTrackableURL(emailTemplateName, JiveResourceResolver.getJiveObjectURL(content, true))}" style='color: #3778C7; text-decoration: none;'><span style='color: #3778C7;'>${content.subject}</span></a> was viewed <strong>${content.viewCount!0} times</strong> and commented on by <strong>${content.commentDelegator.commentCount} people</strong>
                <#elseif ((content.viewCount!0) == 1) && (content.commentDelegator.commentCount != 1) >
                    <a href="${EmailNotificationHelper.generateTrackableURL(emailTemplateName, JiveResourceResolver.getJiveObjectURL(content, true))}" style='color: #3778C7; text-decoration: none;'><span style='color: #3778C7;'>${content.subject}</span></a> was viewed <strong>1 time</strong> and commented on by <strong>${content.commentDelegator.commentCount} people</strong>
                </#if>
            </#if>
        </td>
    </tr>
    <#assign num = (num+1) />
</#if>

<#if (num >= 10) >
<#break/>
</#if>
</#list>
    </tbody>
</table>

<br><br>

<#else>
<p style='color: #666666; margin-bottom: 20px; font-size: 14px; line-height: 20px; font-family: Helvetica, Arial, sans-serif;'>
It's easy to start participating in the community. <a href="${EmailNotificationHelper.generateTrackableURL(emailTemplateName, jiveURL)}" style='color: #3778C7; text-decoration: none;'><span style='color: #3778C7;'>Log in to get started</span></a>.
</p>
</#if>

<h3 style='color: #666666; margin-bottom: 10px; font-weight: normal; font-size: 20px; font-family: Helvetica, Arial, sans-sarif;'>
Tips and tricks
</h3>

<h4 style='color: #666666; margin-bottom: 10px; font-weight: normal; font-size: 14px; font-family: Helvetica, Arial, sans-serif'>
${quickTipTitle}
</h4>

<div style='color: #666666; margin-bottom: 20px; font-size: 14px; line-height: 20px; font-family: Helvetica, Arial, sans-serif;'>
${quickTipBody}
</div>