         """
       tags += content
 
-  shortenedTitle = activityContent.title
-  if shortenedTitle?.length > 150
-    shortenedTitle = activityContent.title.substring(0, 150) + "..."
-  title =
-    """
-      <a href="#{slugWithDomain}">#{shortenedTitle}</a>
-    """
+  marked = require 'marked'
+
+  body = marked body,
+    gfm       : true
+    pedantic  : false
+    sanitize  : true
 
   content  =
     """
-      <div class="kdview activity-item status">
-          <a class="avatarview author-avatar" href="#{uri.address}/#{nickname}" style="width: 70px; height: 70px; background-size: 70px; background-image: none;">
-              #{avatarImage}
+    <div class="kdview kdlistitemview kdlistitemview-activity activity-item status">
+      <div class="activity-content-wrapper static-feed">
+        <a class="avatarview author-avatar" href="#{uri.address}/#{nickname}" style="background-image: none; background-size: 42px;">
+            #{avatarImage}
+        </a>
+
+        <div class="meta">
+          <a href="#{uri.address}/#{nickname}" class="profile">
+            <span>#{fullName}</span>
           </a>
+          <footer>
+            #{createdAt}
+            <span class="location">San Francisco</span>
+          </footer>
 
-          <a class="profile" href="#{uri.address}/#{nickname}">
-            <span data-paths="profile.firstName profile.lastName" itemscope itemtype="http://schema.org/person" title="#{accountName}">
-              #{accountName}
-            </span>
-          </a>
+        </div>
 
-          <article data-paths="body">
-            <p>
-              #{body}
-            </p>
-          </article>
+        <article data-paths="body">
+          <p>
+            #{body}
+          </p>
+        </article>
+        #{likeList}
 
-          <footer>
-              #{userInteractionMeta}
-              <div class="kdview comment-header activity-actions">
-                  <span class="kdview logged-in action-container"><a class="action-link" href="/Login?warning=1&type=like">Like</a>
-                      <a class="count" href="/Login?warning=1&type=like">
-                          <span data-paths="meta.likes">#{likesCount}</span>
-                      </a>
-                  </span>
-                  <span class="logged-in action-container">
-                      <a class="action-link" href="/Login?warning=1&type=comment">Comment</a>
-                      <a class="count" href="/Login?warning=1&type=comment">
-                          <span data-paths="repliesCount" >#{commentsCount}</span>
-                      </a>
-                  </span>
-              </div>
-              #{createdAt}
-          </footer>
-          #{commentsContent}
+        <div class="kdview comment-container fixed-height active-comment commented">
+          <div class="kdview kdlistview kdlistview-comments">
+            #{commentsList}
+          </div>
+        </div>
       </div>
+    </div>
     """
   return content
 
 module.exports = {
-  getSingleActivityPage
+  getAvatarImageUrl
   getSingleActivityContent
 }

createAvatarImage = (hash, avatar)=>
  imgURL = getAvatarImageUrl hash, avatar
  """
  <img width="70" height="70" src="#{imgURL}" style="opacity: 1;" itemprop="image" />
  """

createCreationDate = (createdAt, url="")->
  """
    <a href='#{url}' class=><time>Created at: <span itemprop=\"dateCreated\">#{createdAt}</span></time></a>
  """

createCommentsCount = (numberOfComments)->
  content = ""
  if numberOfComments > 0
    content =  "<span>#{numberOfComments}</span>"
  return content

createLikesCount = (numberOfLikes)->
  content = ""
  if numberOfLikes > 0
    content = "<span>#{numberOfLikes}</span>"
  return content

createAuthor = (accountName, nickname)->
  return "<a href=\"#{uri.address}/#{nickname}\"><span itemprop=\"name\">#{accountName}</span></a>"

createUserInteractionMeta = (numberOfLikes, numberOfComments)->
  userInteractionMeta = "<meta itemprop=\"interactionCount\" content=\"UserLikes:#{numberOfLikes}\"/>"
  userInteractionMeta += "<meta itemprop=\"interactionCount\" content=\"UserComments:#{numberOfComments}\"/>"
  return userInteractionMeta

getSingleActivityContent = (activityContent, model)->
  slugWithDomain = "#{uri.address}/Activity/#{activityContent.slug}"
  body          = activityContent.body
  nickname      = activityContent.nickname
  accountName   = createAccountName activityContent.fullName
  avatarImage   = createAvatarImage activityContent.hash, activityContent.avatar
  createdAt     = createCreationDate activityContent.createdAt, slugWithDomain
  commentsCount = createCommentsCount activityContent.numberOfComments
  likesCount    = createLikesCount activityContent.numberOfLikes
  author        = createAuthor accountName, nickname

  userInteractionMeta = createUserInteractionMeta \
    activityContent.numberOfLikes, activityContent.numberOfComments

  commentsList = ""
  if activityContent?.comments
    for comment in activityContent.comments
      avatarUrl = getAvatarImageUrl comment.authorHash, false
      commentsList +=
        """
          <div class="kdview kdlistitemview kdlistitemview-comment">
            <a class="avatarview online" href="/#{comment.authorNickname}" style="width: 40px; height: 40px; background-size: 40px; background-image: none;"><img class="" width="40" height="40" src="#{avatarUrl}" style="opacity: 1;"></a>
            <div class="comment-contents clearfix" itemscope itemtype="http://schema.org/UserComments">
              <a class="profile" href="/#{comment.authorNickname}" itemprop="name">#{comment.authorName}</a>
              <div class="comment-body-container"><p itemprop="commentText">#{comment.body}</p></div>
            </div>
          </div>
        """

  commentsContent =
    """
      <div class="kdview comment-container commented">
        <div class="kdview listview-wrapper">
          <div class="kdview kdscrollview">
            <div class="kdview kdlistview kdlistview-comments">
              #{commentsList}
            </div>
          </div>
        </div>
      </div>
    """

  tags = ""
  if activityContent?.tags?.length > 0

{argv}              = require 'optimist'
{uri, client}       = require('koding-config-manager').load("main.#{argv.c}")


getAvatarImageUrl = (hash, avatar)->
  imgURL   = "//gravatar.com/avatar/#{hash}?size=90&d=https://koding-cdn.s3.amazonaws.com/images/default.avatar.140.png&r=g"
  if avatar
